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

Manager of the Trait backends. More...

#include <PWrapperTraitBackendManager.h>

Public Member Functions

template<class Backend>
void addTraitBackend ()
 Add a trait backend into the PWrapperTraitBackendManager.
 
void classMethodDeclaration (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Declaration of class method.
 
void classMethodImplementation (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Implementation of class method.
 
void clear ()
 Clear the PWrapperTraitBackendManager.
 
void headerExtraInclude (std::ofstream &fs, const GeneratorMode &mode) const
 Add extra include on the header.
 
 PWrapperTraitBackendManager ()
 Default constructor of PWrapperTraitBackendManager.
 
void registerClassGetterSetter (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Register class getter and setter.
 
void registerClassMember (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Register class member.
 
void registerClassMethod (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
 Register class method.
 
void setupAddDependency (std::ofstream &fs, const GeneratorMode &mode) const
 Add dependency in the setup.py.
 
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 ~PWrapperTraitBackendManager ()
 Destructor of PWrapperTraitBackendManager.
 

Private Member Functions

void initialisationPWrapperTraitBackendManager ()
 Initialisation function of the class PWrapperTraitBackendManager.
 

Private Attributes

PVecWrapperTraitBackend p_vecTrait
 Vector of the Trait backend.
 

Detailed Description

Manager of the Trait backends.

Definition at line 15 of file PWrapperTraitBackendManager.h.

Constructor & Destructor Documentation

◆ PWrapperTraitBackendManager()

PWrapperTraitBackendManager::PWrapperTraitBackendManager ( )

Default constructor of PWrapperTraitBackendManager.

Definition at line 11 of file PWrapperTraitBackendManager.cpp.

11 {
13}
void initialisationPWrapperTraitBackendManager()
Initialisation function of the class PWrapperTraitBackendManager.

References initialisationPWrapperTraitBackendManager().

+ Here is the call graph for this function:

◆ ~PWrapperTraitBackendManager()

PWrapperTraitBackendManager::~PWrapperTraitBackendManager ( )
virtual

Destructor of PWrapperTraitBackendManager.

Definition at line 16 of file PWrapperTraitBackendManager.cpp.

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

References clear().

+ Here is the call graph for this function:

Member Function Documentation

◆ addTraitBackend()

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

Add a trait backend into the PWrapperTraitBackendManager.

Definition at line 22 of file PWrapperTraitBackendManager.h.

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

References p_vecTrait.

Referenced by simple_project_generate_source().

+ Here is the caller graph for this function:

◆ classMethodDeclaration()

void PWrapperTraitBackendManager::classMethodDeclaration ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Declaration of class method.

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

Definition at line 35 of file PWrapperTraitBackendManager.cpp.

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

References p_vecTrait.

Referenced by wrapper_generator_class_header().

+ Here is the caller graph for this function:

◆ classMethodImplementation()

void PWrapperTraitBackendManager::classMethodImplementation ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Implementation of class method.

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

Definition at line 46 of file PWrapperTraitBackendManager.cpp.

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

References p_vecTrait.

Referenced by wrapper_generator_class_source().

+ Here is the caller graph for this function:

◆ clear()

void PWrapperTraitBackendManager::clear ( )

Clear the PWrapperTraitBackendManager.

Definition at line 118 of file PWrapperTraitBackendManager.cpp.

118 {
119 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
120 delete *it;
121 }
122 p_vecTrait.clear();
123}

References p_vecTrait.

Referenced by ~PWrapperTraitBackendManager().

+ Here is the caller graph for this function:

◆ headerExtraInclude()

void PWrapperTraitBackendManager::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 PWrapperTraitBackendManager.cpp.

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

References p_vecTrait.

Referenced by wrapper_generator_class_headerFile().

+ Here is the caller graph for this function:

◆ initialisationPWrapperTraitBackendManager()

void PWrapperTraitBackendManager::initialisationPWrapperTraitBackendManager ( )
private

Initialisation function of the class PWrapperTraitBackendManager.

Definition at line 126 of file PWrapperTraitBackendManager.cpp.

126 {
127
128}

Referenced by PWrapperTraitBackendManager().

+ Here is the caller graph for this function:

◆ registerClassGetterSetter()

void PWrapperTraitBackendManager::registerClassGetterSetter ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Register class getter and setter.

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

Definition at line 68 of file PWrapperTraitBackendManager.cpp.

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

References p_vecTrait.

Referenced by wrapper_generator_class_source().

+ Here is the caller graph for this function:

◆ registerClassMember()

void PWrapperTraitBackendManager::registerClassMember ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Register class member.

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

Definition at line 57 of file PWrapperTraitBackendManager.cpp.

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

References p_vecTrait.

Referenced by wrapper_generator_class_source().

+ Here is the caller graph for this function:

◆ registerClassMethod()

void PWrapperTraitBackendManager::registerClassMethod ( std::ofstream & fs,
const PClassConfig & classConfig,
const GeneratorMode & mode ) const

Register class method.

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

Definition at line 79 of file PWrapperTraitBackendManager.cpp.

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

References p_vecTrait.

Referenced by wrapper_generator_class_source().

+ Here is the caller graph for this function:

◆ setupAddDependency()

void PWrapperTraitBackendManager::setupAddDependency ( std::ofstream & fs,
const GeneratorMode & mode ) const

Add dependency in the setup.py.

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

Definition at line 111 of file PWrapperTraitBackendManager.cpp.

111 {
112 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
113 (*it)->setupAddDependency(fs, mode);
114 }
115}

References p_vecTrait.

Referenced by project_wrapper_generator_setuppy().

+ Here is the caller graph for this function:

◆ testCallFunction()

void PWrapperTraitBackendManager::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 101 of file PWrapperTraitBackendManager.cpp.

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

References p_vecTrait.

◆ testFunction()

void PWrapperTraitBackendManager::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 90 of file PWrapperTraitBackendManager.cpp.

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

References p_vecTrait.

Referenced by project_wrapper_classTest().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_vecTrait


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