P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
P4::AutoCompileContext Struct Reference

#include <compile_context.h>

Public Member Functions

 AutoCompileContext (ICompileContext *context)
 

Detailed Description

A RAII helper which pushes a compilation context onto the stack when it's created and pops it off when it's destroyed. To ensure the compilation stack is always nested correctly, this is the only interface for pushing or popping compilation contexts.