CppClass Class Reference

#include <ArmarXCore/libraries/cppgen/CppClass.h>

+ Inheritance diagram for CppClass:

Public Member Functions

void addCtor (const CppCtorPtr &)
 
CppCtorPtr addCtor (const std::string &arguments)
 
CppCtorPtr addCtor (const std::string &arguments, const CppBlockPtr &b)
 
void addInclude (const std::string include)
 
void addInherit (const std::string &inherit)
 
void addInnerClass (const CppClassPtr inner)
 
CppClassPtr addInnerClass (const std::string &name)
 
void addInnerEnum (const CppEnumPtr inner)
 
CppEnumPtr addInnerEnum (const std::string &name)
 
void addPrivateField (const CppFieldPtr &field)
 
void addProtectedField (const CppFieldPtr &field)
 
void addPublicField (const CppFieldPtr &field)
 
void addPublicMethod (const CppMethodPtr method)
 
CppMethodPtr addPublicMethod (const std::string &header, const std::string &doc="", const bool enforceBlockGeneration=false)
 
 CppClass (const std::vector< std::string > &namespaces, const std::string &name, const std::string &templates="")
 
bool hasInclude (const std::string include)
 
void setTemplates (const std::string &)
 
virtual void write (const MetaWriterPtr &writer) override
 
void writeCpp (const CppWriterPtr &writer)
 
- Public Member Functions inherited from MetaClass
void addClassDoc (const std::string &doc)
 
std::string getName () const
 
 MetaClass (const std::string &name)
 

Static Public Member Functions

static void WriteCpp (const std::vector< CppClassPtr > &classes, const CppWriterPtr &writer)
 
- Static Public Member Functions inherited from MetaClass
static void Write (const std::vector< MetaClassPtr > &classes, const MetaWriterPtr &writer)
 

Additional Inherited Members

- Protected Attributes inherited from MetaClass
std::string docString
 
std::string name
 

Detailed Description

Definition at line 38 of file CppClass.h.

Constructor & Destructor Documentation

◆ CppClass()

CppClass ( const std::vector< std::string > &  namespaces,
const std::string &  name,
const std::string &  templates = "" 
)

Definition at line 36 of file CppClass.cpp.

+ Here is the caller graph for this function:

Member Function Documentation

◆ addCtor() [1/3]

void addCtor ( const CppCtorPtr ctor)

Definition at line 208 of file CppClass.cpp.

◆ addCtor() [2/3]

CppCtorPtr addCtor ( const std::string &  arguments)

Definition at line 213 of file CppClass.cpp.

+ Here is the call graph for this function:

◆ addCtor() [3/3]

CppCtorPtr addCtor ( const std::string &  arguments,
const CppBlockPtr b 
)

Definition at line 220 of file CppClass.cpp.

+ Here is the call graph for this function:

◆ addInclude()

void addInclude ( const std::string  include)

Definition at line 276 of file CppClass.cpp.

◆ addInherit()

void addInherit ( const std::string &  inherit)

Definition at line 271 of file CppClass.cpp.

◆ addInnerClass() [1/2]

void addInnerClass ( const CppClassPtr  inner)

Definition at line 252 of file CppClass.cpp.

◆ addInnerClass() [2/2]

CppClassPtr addInnerClass ( const std::string &  name)

Definition at line 245 of file CppClass.cpp.

+ Here is the call graph for this function:

◆ addInnerEnum() [1/2]

void addInnerEnum ( const CppEnumPtr  inner)

Definition at line 257 of file CppClass.cpp.

◆ addInnerEnum() [2/2]

CppEnumPtr addInnerEnum ( const std::string &  name)

Definition at line 264 of file CppClass.cpp.

◆ addPrivateField()

void addPrivateField ( const CppFieldPtr field)

Definition at line 227 of file CppClass.cpp.

◆ addProtectedField()

void addProtectedField ( const CppFieldPtr field)

Definition at line 233 of file CppClass.cpp.

◆ addPublicField()

void addPublicField ( const CppFieldPtr field)

Definition at line 239 of file CppClass.cpp.

◆ addPublicMethod() [1/2]

void addPublicMethod ( const CppMethodPtr  method)

Definition at line 195 of file CppClass.cpp.

◆ addPublicMethod() [2/2]

CppMethodPtr addPublicMethod ( const std::string &  header,
const std::string &  doc = "",
const bool  enforceBlockGeneration = false 
)

Definition at line 201 of file CppClass.cpp.

◆ hasInclude()

bool hasInclude ( const std::string  include)

Definition at line 281 of file CppClass.cpp.

◆ setTemplates()

void setTemplates ( const std::string &  s)

Definition at line 287 of file CppClass.cpp.

+ Here is the call graph for this function:

◆ write()

void write ( const MetaWriterPtr writer)
overridevirtual

Implements MetaClass.

Definition at line 43 of file CppClass.cpp.

+ Here is the call graph for this function:

◆ writeCpp()

void writeCpp ( const CppWriterPtr writer)

Definition at line 57 of file CppClass.cpp.

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

◆ WriteCpp()

void WriteCpp ( const std::vector< CppClassPtr > &  classes,
const CppWriterPtr writer 
)
static

Definition at line 49 of file CppClass.cpp.

+ Here is the caller graph for this function:

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