PandA-2024.02
|
#include <parser_flow_step.hpp>
Public Member Functions | |
ParserFlowStep (const DesignFlowManagerConstRef design_flow_manager, const ParserFlowStep_Type parser_step_type, const std::string &file_name, const ParameterConstRef parameters) | |
Constructor. More... | |
~ParserFlowStep () override | |
Destructor. More... | |
std::string | GetSignature () const override |
Return the signature of this step. More... | |
std::string | GetName () const override |
Return the name of this design step. More... | |
bool | HasToBeExecuted () const override |
Check if this step has actually to be executed. More... | |
void | ComputeRelationships (DesignFlowStepSet &relationship, const DesignFlowStep::RelationshipType relationship_type) override |
Compute the relationships of a step with other steps. More... | |
DesignFlowStepFactoryConstRef | CGetDesignFlowStepFactory () const override |
Return the factory to create this type of steps. More... | |
Public Member Functions inherited from DesignFlowStep | |
DesignFlowStep (const DesignFlowManagerConstRef design_flow_manager, const ParameterConstRef parameters) | |
Constructor. More... | |
virtual | ~DesignFlowStep () |
Destructor. More... | |
virtual DesignFlowStep_Status | Exec ()=0 |
Execute the step. More... | |
virtual void | Initialize () |
Initialize the step (i.e., like a constructor, but executed just before exec. More... | |
DesignFlowStep_Status | GetStatus () const |
Return the status of this design step. More... | |
virtual void | WriteDot (std::ostream &out) const |
Write the label for a dot graph. More... | |
bool | IsComposed () const |
Returns if this step is composed. More... | |
int | CGetDebugLevel () const |
Return the debug level of the step. More... | |
virtual void | PrintInitialIR () const |
Dump the initial intermediate representation. More... | |
virtual void | PrintFinalIR () const |
Dump the final intermediate representation. More... | |
Static Public Member Functions | |
static const std::string | ComputeSignature (const ParserFlowStep_Type parser_step_type, const std::string &file_name) |
Compute the signature of a parser flow step. More... | |
Protected Member Functions | |
virtual std::string | GetKindText () const final |
Return the name of the type of this frontend flow step. More... | |
Static Protected Member Functions | |
static const std::string | EnumToKindText (const ParserFlowStep_Type parser_step_type) |
Given a parser step type, return the name of the type. More... | |
Protected Attributes | |
const ParserFlowStep_Type | parser_step_type |
The type of the parse. More... | |
const std::string | file_name |
The name of the file to be parsed. More... | |
Protected Attributes inherited from DesignFlowStep | |
bool | composed |
True if this step represents a composition of design flow steps (e.g., a flow); must be set by specialized constructors. More... | |
const Wrefcount< const DesignFlowManager > | design_flow_manager |
The design flow manager. More... | |
const ParameterConstRef | parameters |
Set of input parameters. More... | |
int | debug_level |
The debug level. More... | |
const int | output_level |
The output level. More... | |
Additional Inherited Members | |
Public Types inherited from DesignFlowStep | |
enum | RelationshipType { DEPENDENCE_RELATIONSHIP, INVALIDATION_RELATIONSHIP, PRECEDENCE_RELATIONSHIP } |
The relationship type. More... | |
Definition at line 57 of file parser_flow_step.hpp.
ParserFlowStep::ParserFlowStep | ( | const DesignFlowManagerConstRef | _design_flow_manager, |
const ParserFlowStep_Type | _parser_step_type, | ||
const std::string & | _file_name, | ||
const ParameterConstRef | _parameters | ||
) |
Constructor.
Header include.
design_flow_manager | is the design flow manager |
parser_step_type | is the type of the parser |
file_name | is the name of the file |
parameters | is the set of input parameters |
design_flows include
Definition at line 50 of file parser_flow_step.cpp.
References ~ParserFlowStep().
|
overridedefault |
|
overridevirtual |
Return the factory to create this type of steps.
Implements DesignFlowStep.
Definition at line 106 of file parser_flow_step.cpp.
References DesignFlowStep::design_flow_manager, and Wrefcount< T >::lock().
|
overridevirtual |
Compute the relationships of a step with other steps.
dependencies | is where relationships will be stored |
relationship_type | is the type of relationship to be computed |
Implements DesignFlowStep.
Definition at line 102 of file parser_flow_step.cpp.
|
static |
Compute the signature of a parser flow step.
parser_step_type | is the type of parser |
file_name | is the file name |
Definition at line 69 of file parser_flow_step.cpp.
References file_name, and STR.
Referenced by create_tree_manager::ComputeRelationships(), and GetSignature().
|
staticprotected |
Given a parser step type, return the name of the type.
type | is the type to be considered |
Definition at line 80 of file parser_flow_step.cpp.
References THROW_UNREACHABLE.
Referenced by GetKindText().
|
finalprotectedvirtual |
Return the name of the type of this frontend flow step.
Definition at line 75 of file parser_flow_step.cpp.
References EnumToKindText(), and parser_step_type.
Referenced by GetName().
|
overridevirtual |
Return the name of this design step.
Implements DesignFlowStep.
Definition at line 64 of file parser_flow_step.cpp.
References file_name, and GetKindText().
|
overridevirtual |
Return the signature of this step.
Implements DesignFlowStep.
Definition at line 59 of file parser_flow_step.cpp.
References ComputeSignature(), file_name, and parser_step_type.
|
overridevirtual |
Check if this step has actually to be executed.
Implements DesignFlowStep.
Definition at line 97 of file parser_flow_step.cpp.
|
protected |
The name of the file to be parsed.
Definition at line 64 of file parser_flow_step.hpp.
Referenced by ComputeSignature(), AsnParser::Exec(), AadlParser::Exec(), GetName(), and GetSignature().
|
protected |
The type of the parse.
Definition at line 61 of file parser_flow_step.hpp.
Referenced by GetKindText(), and GetSignature().