PandA-2024.02
Public Member Functions | Private Member Functions | Private Attributes
CInitializationParser Class Reference

#include <c_initialization_parser.hpp>

Collaboration diagram for CInitializationParser:
Collaboration graph
[legend]

Public Member Functions

 CInitializationParser (const ParameterConstRef parameters)
 Constructor. More...
 
void Parse (CInitializationParserFunctorRef c_initialization_parser_functor, const std::string &initialization_string) const
 Parse a string to generate the corresponding memory initialization. More...
 

Private Member Functions

void YYParse (const CInitializationParserFunctorRef c_initialization_parser_functor, const CInitializationFlexLexerRef lexer) const
 Wrapper to yyparse. More...
 

Private Attributes

const ParameterConstRef parameters
 The set of input parameters. More...
 
int debug_level
 The debug level. More...
 

Detailed Description

Definition at line 53 of file c_initialization_parser.hpp.

Constructor & Destructor Documentation

◆ CInitializationParser()

CInitializationParser::CInitializationParser ( const ParameterConstRef  parameters)

Constructor.

utility include

Parameters
parametersis the set of input parameters

Definition at line 60 of file c_initialization_parser.cpp.

References debug_level, GET_CLASS, and parameters.

Member Function Documentation

◆ Parse()

void CInitializationParser::Parse ( CInitializationParserFunctorRef  c_initialization_parser_functor,
const std::string &  initialization_string 
) const

Parse a string to generate the corresponding memory initialization.

Parameters
c_initialization_parser_functoris the functor used during parsing
initialization_stringis the C initialization string of a variable

Definition at line 65 of file c_initialization_parser.cpp.

References DATA_SIZE_THRESHOLD, debug_level, DEBUG_LEVEL_VERY_PEDANTIC, fileIO_istream_open_from_string(), refcount< T >::get(), INDENT_DBG_MEX, parameters, and YYParse().

Here is the call graph for this function:

◆ YYParse()

void CInitializationParser::YYParse ( const CInitializationParserFunctorRef  c_initialization_parser_functor,
const CInitializationFlexLexerRef  lexer 
) const
private

Wrapper to yyparse.

Parameters
c_initialization_parser_functoris the functor used during the parsing
lexeris the lexer used to process the initiation string

Referenced by Parse().

Here is the caller graph for this function:

Field Documentation

◆ debug_level

int CInitializationParser::debug_level
private

The debug level.

Definition at line 60 of file c_initialization_parser.hpp.

Referenced by CInitializationParser(), and Parse().

◆ parameters

const ParameterConstRef CInitializationParser::parameters
private

The set of input parameters.

Definition at line 57 of file c_initialization_parser.hpp.

Referenced by CInitializationParser(), and Parse().


The documentation for this class was generated from the following files:

Generated on Mon Feb 12 2024 13:03:47 for PandA-2024.02 by doxygen 1.8.13