replicode
Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
r_comp::Preprocessor Class Reference

#include <preprocessor.h>

Collaboration diagram for r_comp::Preprocessor:
Collaboration graph

Public Member Functions

 Preprocessor ()
 
 ~Preprocessor ()
 
RepliStructprocess (const char *file, std::string &error, Metadata *metadata=NULL)
 

Public Attributes

RepliStructroot
 

Private Types

enum  ClassType { T_CLASS = 0, T_SYS_CLASS = 1, T_SET = 2 }
 

Private Member Functions

void instantiateClass (RepliStruct *tpl_class, std::vector< RepliStruct * > &tpl_args, std::string &instantiated_class_name)
 
bool isSet (std::string className)
 
bool isTemplateClass (RepliStruct *replistruct)
 
void getMember (std::vector< StructureMember > &members, RepliStruct *m, std::list< RepliStruct * > &tpl_args, bool instantiate)
 
void getMembers (RepliStruct *s, std::vector< StructureMember > &members, std::list< RepliStruct * > &tpl_args, bool instantiate)
 
ReturnType getReturnType (RepliStruct *s)
 
void initialize (Metadata *metadata)
 

Private Attributes

Metadatam_metadata
 
uint16_t m_classOpcode
 
std::unordered_map< std::string, RepliStruct * > m_templateClasses
 

Member Enumeration Documentation

Enumerator
T_CLASS 
T_SYS_CLASS 
T_SET 

Constructor & Destructor Documentation

r_comp::Preprocessor::Preprocessor ( )
r_comp::Preprocessor::~Preprocessor ( )

Member Function Documentation

void r_comp::Preprocessor::getMember ( std::vector< StructureMember > &  members,
RepliStruct m,
std::list< RepliStruct * > &  tpl_args,
bool  instantiate 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void r_comp::Preprocessor::getMembers ( RepliStruct s,
std::vector< StructureMember > &  members,
std::list< RepliStruct * > &  tpl_args,
bool  instantiate 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

ReturnType r_comp::Preprocessor::getReturnType ( RepliStruct s)
private

Here is the caller graph for this function:

void r_comp::Preprocessor::initialize ( Metadata metadata)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void r_comp::Preprocessor::instantiateClass ( RepliStruct tpl_class,
std::vector< RepliStruct * > &  tpl_args,
std::string &  instantiated_class_name 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

bool r_comp::Preprocessor::isSet ( std::string  className)
private

Here is the caller graph for this function:

bool r_comp::Preprocessor::isTemplateClass ( RepliStruct replistruct)
private

Here is the caller graph for this function:

RepliStruct * r_comp::Preprocessor::process ( const char *  file,
std::string &  error,
Metadata metadata = NULL 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

uint16_t r_comp::Preprocessor::m_classOpcode
private
Metadata* r_comp::Preprocessor::m_metadata
private
std::unordered_map<std::string, RepliStruct *> r_comp::Preprocessor::m_templateClasses
private
RepliStruct* r_comp::Preprocessor::root

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