![]() |
|
PhoenixGenerator
3.4.0
Generate code from template files and projects in C++, Rust, Python and wrapped C++ to Python
|
Manager of the Rust trait backends. More...
#include <PRustTraitBackendManager.h>
Public Member Functions | |
| template<class Backend> | |
| void | addTraitBackend () |
| Add a trait backend into the PRustTraitBackendManager. | |
| void | classExtraDeclaration (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const |
| Implementation of extra declarations. | |
| void | clear () |
| Clear the PRustTraitBackendManager. | |
| void | headerExtraInclude (std::ofstream &fs, const GeneratorMode &mode) const |
| Add extra include on the header. | |
| void | implMethodDeclaration (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const |
| Implementation of the impl block methods. | |
| PRustTraitBackendManager () | |
| Default constructor of PRustTraitBackendManager. | |
| void | testFunction (std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const |
| Implementation of test function. | |
| virtual | ~PRustTraitBackendManager () |
| Destructor of PRustTraitBackendManager. | |
Private Member Functions | |
| void | initialisationPRustTraitBackendManager () |
| Initialisation function of the class PRustTraitBackendManager. | |
Private Attributes | |
| PVecRustTraitBackend | p_vecTrait |
| Vector of the Trait backend. | |
Manager of the Rust trait backends.
Definition at line 15 of file PRustTraitBackendManager.h.
| PRustTraitBackendManager::PRustTraitBackendManager | ( | ) |
Default constructor of PRustTraitBackendManager.
Definition at line 10 of file PRustTraitBackendManager.cpp.
References initialisationPRustTraitBackendManager().
|
virtual |
Destructor of PRustTraitBackendManager.
Definition at line 15 of file PRustTraitBackendManager.cpp.
References clear().
|
inline |
Add a trait backend into the PRustTraitBackendManager.
Definition at line 22 of file PRustTraitBackendManager.h.
References p_vecTrait.
Referenced by generateRustClassesFull().
| void PRustTraitBackendManager::classExtraDeclaration | ( | std::ofstream & | fs, |
| const PClassConfig & | classConfig, | ||
| const GeneratorMode & | mode ) const |
Implementation of extra declarations.
| [out] | fs | : file to be completed |
| classConfig | : PClassConfig to be used | |
| mode | : mode of the generator |
Definition at line 45 of file PRustTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_rust_class_file().
| void PRustTraitBackendManager::clear | ( | ) |
Clear the PRustTraitBackendManager.
Definition at line 63 of file PRustTraitBackendManager.cpp.
References p_vecTrait.
Referenced by ~PRustTraitBackendManager().
| void PRustTraitBackendManager::headerExtraInclude | ( | std::ofstream & | fs, |
| const GeneratorMode & | mode ) const |
Add extra include on the header.
| [out] | fs | : file to be completed |
| mode | : mode of the generator |
Definition at line 23 of file PRustTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_rust_class().
| void PRustTraitBackendManager::implMethodDeclaration | ( | std::ofstream & | fs, |
| const PClassConfig & | classConfig, | ||
| const GeneratorMode & | mode ) const |
Implementation of the impl block methods.
| [out] | fs | : file to be completed |
| classConfig | : PClassConfig to be used | |
| mode | : mode of the generator |
Definition at line 34 of file PRustTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_rust_class_file().
|
private |
Initialisation function of the class PRustTraitBackendManager.
Definition at line 71 of file PRustTraitBackendManager.cpp.
Referenced by PRustTraitBackendManager().
| void PRustTraitBackendManager::testFunction | ( | std::ofstream & | fs, |
| const PClassConfig & | classConfig, | ||
| const GeneratorMode & | mode ) const |
Implementation of test function.
| [out] | fs | : file to be completed |
| classConfig | : PClassConfig to be used | |
| mode | : mode of the generator |
Definition at line 56 of file PRustTraitBackendManager.cpp.
References p_vecTrait.
Referenced by generator_rust_class_test().
|
private |
Vector of the Trait backend.
Definition at line 37 of file PRustTraitBackendManager.h.
Referenced by addTraitBackend(), classExtraDeclaration(), clear(), headerExtraInclude(), implMethodDeclaration(), and testFunction().