P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
CompileContext< OptionsType > Class Template Reference
Inheritance diagram for CompileContext< OptionsType >:
[legend]

Public Member Functions

template<typename OptionsDerivedType>
 CompileContext (CompileContext< OptionsDerivedType > &context)
 
OptionsType & options ()
 
- Public Member Functions inherited from P4::BaseCompileContext
virtual ErrorReportererrorReporter ()
 
virtual DiagnosticAction getDefaultErrorDiagnosticAction ()
 
virtual DiagnosticAction getDefaultInfoDiagnosticAction ()
 
virtual DiagnosticAction getDefaultWarningDiagnosticAction ()
 

Static Public Member Functions

static CompileContextget ()
 
- Static Public Member Functions inherited from P4::BaseCompileContext
static BaseCompileContextget ()
 

Additional Inherited Members

- Protected Member Functions inherited from P4::BaseCompileContext
 BaseCompileContext (const BaseCompileContext &other)=default
 
BaseCompileContextoperator= (const BaseCompileContext &other)=default
 

Member Function Documentation

◆ get()

template<typename OptionsType>
static CompileContext & CompileContext< OptionsType >::get ( )
inlinestatic
Returns
the current compilation context, which must be of type CompileContext<OptionsType>.

◆ options()

template<typename OptionsType>
OptionsType & CompileContext< OptionsType >::options ( )
inline
Returns
the compiler options for this compilation context.