![]() |
|
PhoenixGenerator
2.2.0
Set of tools to generate code
|
Manager of the Trait backends. More...
#include <PNanobindTraitBackendManager.h>
Public Member Functions | |
| template<class Backend> | |
| void | addTraitBackend () |
| Add a trait backend into the PTraitBackendManager. | |
| void | clear () |
| Clear the PNanobindTraitBackendManager. | |
| virtual void | headerExtraInclude (std::set< std::string > &setInclude, const PClassConfig &classConfig, const GeneratorMode &mode) const |
| Add extra include on the header. | |
| virtual void | headerTestInclude (std::ofstream &fs, const GeneratorMode &mode, const PString &baseFileName) const |
| Add extra include on the test header. | |
| PNanobindTraitBackendManager () | |
| Default constructor of PNanobindTraitBackendManager. | |
| virtual void | registerConstructor (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const |
| Registration of constructor. | |
| virtual void | registerMethod (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const |
| Registration of method. | |
| virtual void | registerProperty (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const |
| Registration of property. | |
| virtual void | registerStaticMethod (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const |
| Registration of static method. | |
| virtual void | testCallFunction (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const |
| Call of the test function. | |
| virtual void | testFunction (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode, const PString &baseFileName) const |
| Implementation of test function. | |
| virtual | ~PNanobindTraitBackendManager () |
| Destructor of PNanobindTraitBackendManager. | |
Private Member Functions | |
| void | initialisationPNanobindTraitBackendManager () |
| Initialisation function of the class PNanobindTraitBackendManager. | |
Private Attributes | |
| bool | isLastDef |
| True if the property or function is the last one to be declared. | |
| PVecNanobindTraitBackend | p_vecTrait |
| Vector of the Trait backend. | |
Manager of the Trait backends.
Definition at line 16 of file PNanobindTraitBackendManager.h.
| PNanobindTraitBackendManager::PNanobindTraitBackendManager | ( | ) |
Default constructor of PNanobindTraitBackendManager.
Definition at line 10 of file PNanobindTraitBackendManager.cpp.
References initialisationPNanobindTraitBackendManager().
Here is the call graph for this function:
|
virtual |
Destructor of PNanobindTraitBackendManager.
Definition at line 15 of file PNanobindTraitBackendManager.cpp.
References clear().
Here is the call graph for this function:
|
inline |
Add a trait backend into the PTraitBackendManager.
Definition at line 23 of file PNanobindTraitBackendManager.h.
References p_vecTrait.
Referenced by generateNanobindClassesFull().
Here is the caller graph for this function:| void PNanobindTraitBackendManager::clear | ( | ) |
Clear the PNanobindTraitBackendManager.
Definition at line 107 of file PNanobindTraitBackendManager.cpp.
References p_vecTrait.
Referenced by ~PNanobindTraitBackendManager().
Here is the caller graph for this function:
|
virtual |
Add extra include on the header.
| [out] | setInclude | : set of all includes |
| [out] | fs | : file to be completed |
| mode | : mode of the generator |
Definition at line 24 of file PNanobindTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_nanobind_class().
Here is the caller graph for this function:
|
virtual |
Add extra include on the test header.
| [out] | fs | : file to be completed |
| mode | : mode of the generator |
Definition at line 34 of file PNanobindTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_nanobind_test().
Here is the caller graph for this function:
|
private |
Initialisation function of the class PNanobindTraitBackendManager.
Definition at line 115 of file PNanobindTraitBackendManager.cpp.
Referenced by PNanobindTraitBackendManager().
Here is the caller graph for this function:
|
virtual |
Registration of constructor.
| [out] | fs | : file to be completed |
| classConfig | : PClassConfig to be used | |
| mode | : mode of the generator |
Definition at line 78 of file PNanobindTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_nanobind_class().
Here is the caller graph for this function:
|
virtual |
Registration of method.
| [out] | fs | : file to be completed |
| classConfig | : PClassConfig to be used | |
| mode | : mode of the generator |
Definition at line 56 of file PNanobindTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_nanobind_class().
Here is the caller graph for this function:
|
virtual |
Registration of property.
| [out] | fs | : file to be completed |
| classConfig | : PClassConfig to be used | |
| mode | : mode of the generator |
Definition at line 45 of file PNanobindTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_nanobind_class().
Here is the caller graph for this function:
|
virtual |
Registration of static method.
| [out] | fs | : file to be completed |
| classConfig | : PClassConfig to be used | |
| mode | : mode of the generator |
Definition at line 67 of file PNanobindTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_nanobind_class().
Here is the caller graph for this function:
|
virtual |
Call of the test function.
| [out] | fs | : file to be completed |
| classConfig | : PClassConfig to be used | |
| mode | : mode of the generator |
Definition at line 100 of file PNanobindTraitBackendManager.cpp.
References p_vecTrait.
|
virtual |
Implementation of test function.
| [out] | fs | : file to be completed |
| classConfig | : PClassConfig to be used | |
| mode | : mode of the generator |
Definition at line 89 of file PNanobindTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_nanobind_test().
Here is the caller graph for this function:
|
private |
True if the property or function is the last one to be declared.
Definition at line 43 of file PNanobindTraitBackendManager.h.
|
private |
Vector of the Trait backend.
Definition at line 45 of file PNanobindTraitBackendManager.h.
Referenced by addTraitBackend(), clear(), headerExtraInclude(), headerTestInclude(), registerConstructor(), registerMethod(), registerProperty(), registerStaticMethod(), testCallFunction(), and testFunction().