PhoenixGenerator  2.0.4
Set of tools to generate code
Loading...
Searching...
No Matches
PTraitBackendManager Class Reference

Manager of the Trait backends. More...

#include <PTraitBackendManager.h>

Public Member Functions

template<class Backend>
void addTraitBackend ()
 Add a trait backend into the PTraitBackendManager.
 
void classExtraFunctionDeclaration (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Declaration of extra functions.
 
void classExtraFunctionImplementation (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Implementation of extra functions.
 
void clear ()
 Clear the PTraitBackendManager.
 
void headerExtraInclude (std::ofstream &fs, const GeneratorMode &mode) const
 Add extra include on the header.
 
void privateMethodDeclaration (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Declaration of private methods.
 
void privateMethodImplementation (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Implementation of private methods.
 
void protectedMethodDeclaration (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Declaration of protected methods.
 
void protectedMethodImplementation (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Implementation of protected methods.
 
 PTraitBackendManager ()
 Default constructor of PTraitBackendManager.
 
void publicMethodDeclaration (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Declaration of public methods.
 
void publicMethodImplementation (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Implementation of public methods.
 
void testCallFunction (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Call of the test function.
 
void testFunction (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Implementation of test function.
 
virtual ~PTraitBackendManager ()
 Destructor of PTraitBackendManager.
 

Private Member Functions

void initialisationPTraitBackendManager ()
 Initialisation function of the class PTraitBackendManager.
 

Private Attributes

PVecTraitBackend p_vecTrait
 Vector of the Trait backend.
 

Detailed Description

Manager of the Trait backends.

Definition at line 15 of file PTraitBackendManager.h.

Constructor & Destructor Documentation

◆ PTraitBackendManager()

PTraitBackendManager::PTraitBackendManager ( )

Default constructor of PTraitBackendManager.

Definition at line 11 of file PTraitBackendManager.cpp.

11 {
13}
void initialisationPTraitBackendManager()
Initialisation function of the class PTraitBackendManager.

References initialisationPTraitBackendManager().

+ Here is the call graph for this function:

◆ ~PTraitBackendManager()

PTraitBackendManager::~PTraitBackendManager ( )
virtual

Destructor of PTraitBackendManager.

Definition at line 16 of file PTraitBackendManager.cpp.

16 {
17 clear();
18}
void clear()
Clear the PTraitBackendManager.

References clear().

+ Here is the call graph for this function:

Member Function Documentation

◆ addTraitBackend()

template<class Backend>
void PTraitBackendManager::addTraitBackend ( )
inline

Add a trait backend into the PTraitBackendManager.

Definition at line 22 of file PTraitBackendManager.h.

22 {
23 p_vecTrait.push_back(new Backend);
24 }
PVecTraitBackend p_vecTrait
Vector of the Trait backend.

References p_vecTrait.

Referenced by simple_project_generate_source().

+ Here is the caller graph for this function:

◆ classExtraFunctionDeclaration()

void PTraitBackendManager::classExtraFunctionDeclaration ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Declaration of extra functions.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 102 of file PTraitBackendManager.cpp.

102 {
103 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
104 (*it)->classExtraFunctionDeclaration(fs, classConfig, mode);
105 }
106}

References p_vecTrait.

Referenced by generator_class_cpp_header(), and generator_enum_cpp_header().

+ Here is the caller graph for this function:

◆ classExtraFunctionImplementation()

void PTraitBackendManager::classExtraFunctionImplementation ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Implementation of extra functions.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 113 of file PTraitBackendManager.cpp.

113 {
114 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
115 (*it)->classExtraFunctionImplementation(fs, classConfig, mode);
116 }
117}

References p_vecTrait.

Referenced by generator_class_cpp_source().

+ Here is the caller graph for this function:

◆ clear()

void PTraitBackendManager::clear ( )

Clear the PTraitBackendManager.

Definition at line 143 of file PTraitBackendManager.cpp.

143 {
144 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
145 delete *it;
146 }
147 p_vecTrait.clear();
148}

References p_vecTrait.

Referenced by ~PTraitBackendManager().

+ Here is the caller graph for this function:

◆ headerExtraInclude()

void PTraitBackendManager::headerExtraInclude ( std::ofstream & fs,
const GeneratorMode & mode ) const

Add extra include on the header.

Parameters
[out]fs: file to be completed
mode: mode of the generator

Definition at line 24 of file PTraitBackendManager.cpp.

24 {
25 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
26 (*it)->headerExtraInclude(fs, mode);
27 }
28}

References p_vecTrait.

Referenced by generator_class_cpp_headerFile().

+ Here is the caller graph for this function:

◆ initialisationPTraitBackendManager()

void PTraitBackendManager::initialisationPTraitBackendManager ( )
private

Initialisation function of the class PTraitBackendManager.

Definition at line 151 of file PTraitBackendManager.cpp.

151 {
152
153}

Referenced by PTraitBackendManager().

+ Here is the caller graph for this function:

◆ privateMethodDeclaration()

void PTraitBackendManager::privateMethodDeclaration ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Declaration of private methods.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 79 of file PTraitBackendManager.cpp.

79 {
80 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
81 (*it)->privateMethodDeclaration(fs, classConfig, mode);
82 }
83}

References p_vecTrait.

Referenced by generator_class_cpp_header().

+ Here is the caller graph for this function:

◆ privateMethodImplementation()

void PTraitBackendManager::privateMethodImplementation ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Implementation of private methods.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 90 of file PTraitBackendManager.cpp.

90 {
91 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
92 (*it)->privateMethodImplementation(fs, classConfig, mode);
93 }
94}

References p_vecTrait.

Referenced by generator_class_cpp_source().

+ Here is the caller graph for this function:

◆ protectedMethodDeclaration()

void PTraitBackendManager::protectedMethodDeclaration ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Declaration of protected methods.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 57 of file PTraitBackendManager.cpp.

57 {
58 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
59 (*it)->protectedMethodDeclaration(fs, classConfig, mode);
60 }
61}

References p_vecTrait.

Referenced by generator_class_cpp_header().

+ Here is the caller graph for this function:

◆ protectedMethodImplementation()

void PTraitBackendManager::protectedMethodImplementation ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Implementation of protected methods.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 68 of file PTraitBackendManager.cpp.

68 {
69 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
70 (*it)->protectedMethodImplementation(fs, classConfig, mode);
71 }
72}

References p_vecTrait.

Referenced by generator_class_cpp_source().

+ Here is the caller graph for this function:

◆ publicMethodDeclaration()

void PTraitBackendManager::publicMethodDeclaration ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Declaration of public methods.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 35 of file PTraitBackendManager.cpp.

35 {
36 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
37 (*it)->publicMethodDeclaration(fs, classConfig, mode);
38 }
39}

References p_vecTrait.

Referenced by generator_class_cpp_header().

+ Here is the caller graph for this function:

◆ publicMethodImplementation()

void PTraitBackendManager::publicMethodImplementation ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Implementation of public methods.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 46 of file PTraitBackendManager.cpp.

46 {
47 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
48 (*it)->publicMethodImplementation(fs, classConfig, mode);
49 }
50}

References p_vecTrait.

Referenced by generator_class_cpp_source().

+ Here is the caller graph for this function:

◆ testCallFunction()

void PTraitBackendManager::testCallFunction ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Call of the test function.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 135 of file PTraitBackendManager.cpp.

135 {
136 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
137 (*it)->testCallFunction(fs, classConfig, mode);
138 }
139}

References p_vecTrait.

Referenced by generator_class_testMain().

+ Here is the caller graph for this function:

◆ testFunction()

void PTraitBackendManager::testFunction ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Implementation of test function.

Parameters
[out]fs: file to be completed
classConfig: PClassConfig to be used
mode: mode of the generator

Definition at line 124 of file PTraitBackendManager.cpp.

124 {
125 for(PVecTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
126 (*it)->testFunction(fs, classConfig, mode);
127 }
128}

References p_vecTrait.

Referenced by generator_class_testMain().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_vecTrait


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