CppParser
Loading...
Searching...
No Matches
CppObjFactory Class Reference

Factory class to create various CppObj instances. More...

#include <cppobjfactory.h>

Collaboration diagram for CppObjFactory:
Collaboration graph

Public Member Functions

virtual CppCompoundCreateCompound (std::string name, CppAccessType accessType, CppCompoundType type) const
 
virtual CppCompoundCreateCompound (CppAccessType accessType, CppCompoundType type=CppCompoundType::kUnknownCompound) const
 
virtual CppCompoundCreateCompound (std::string name, CppCompoundType type) const
 
virtual CppCompoundCreateCompound (CppCompoundType type) const
 
virtual CppConstructorCreateConstructor (CppAccessType accessType, std::string name, CppParamVector *params, CppMemInits memInits, unsigned int attr) const
 
virtual CppDestructorCreateDestructor (CppAccessType accessType, std::string name, unsigned int attr) const
 
virtual CppFunctionCreateFunction (CppAccessType accessType, std::string name, CppVarType *retType, CppParamVector *params, unsigned int attr) const
 
virtual CppTypeConverterCreateTypeConverter (CppVarType *type, std::string name) const
 

Detailed Description

Factory class to create various CppObj instances.

Ideally this factory class should be used to create any CppObj object so that clients of CppParser can supply its own type. At present creation of only few are added as per the requirement of CIB, https://github.com/satya-das/cib.

Definition at line 36 of file cppobjfactory.h.

Member Function Documentation

◆ CreateCompound() [1/4]

CppCompound * CppObjFactory::CreateCompound ( CppAccessType  accessType,
CppCompoundType  type = CppCompoundType::kUnknownCompound 
) const
virtual

Definition at line 31 of file cppobjfactory.cpp.

Here is the call graph for this function:

◆ CreateCompound() [2/4]

CppCompound * CppObjFactory::CreateCompound ( CppCompoundType  type) const
virtual

Definition at line 41 of file cppobjfactory.cpp.

◆ CreateCompound() [3/4]

CppCompound * CppObjFactory::CreateCompound ( std::string  name,
CppAccessType  accessType,
CppCompoundType  type 
) const
virtual

Definition at line 26 of file cppobjfactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateCompound() [4/4]

CppCompound * CppObjFactory::CreateCompound ( std::string  name,
CppCompoundType  type 
) const
virtual

Definition at line 36 of file cppobjfactory.cpp.

Here is the call graph for this function:

◆ CreateConstructor()

CppConstructor * CppObjFactory::CreateConstructor ( CppAccessType  accessType,
std::string  name,
CppParamVector params,
CppMemInits  memInits,
unsigned int  attr 
) const
virtual

Definition at line 46 of file cppobjfactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateDestructor()

CppDestructor * CppObjFactory::CreateDestructor ( CppAccessType  accessType,
std::string  name,
unsigned int  attr 
) const
virtual

Definition at line 55 of file cppobjfactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateFunction()

CppFunction * CppObjFactory::CreateFunction ( CppAccessType  accessType,
std::string  name,
CppVarType retType,
CppParamVector params,
unsigned int  attr 
) const
virtual

Definition at line 60 of file cppobjfactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateTypeConverter()

CppTypeConverter * CppObjFactory::CreateTypeConverter ( CppVarType type,
std::string  name 
) const
virtual

Definition at line 69 of file cppobjfactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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