PhoenixGenerator  2.2.0
Set of tools to generate code
Loading...
Searching...
No Matches
NanobindTraitMethod.cpp
Go to the documentation of this file.
1
2
3
4/***************************************
5 Auteur : Thibaut Oprinsen
6 Mail : thibaut.oprinsen@lapp.in2p3.fr
7 Licence : CeCILL-C
8****************************************/
9
10#include "NanobindTraitMethod.h"
11
16
19
24void NanobindTraitMethod::registerConstructor(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const{
25 if(classConfig.getIsEnum()){return;}
26
27 fs << std::endl << std::endl << "\t\t//Constructor";
28 fs << std::endl << "\t\t.def(nb::init<>())";
29}
virtual void registerConstructor(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
virtual ~NanobindTraitMethod()
Destructor of NanobindTraitMethod.
NanobindTraitMethod()
Constructor of NanobindTraitMethod.
Class to describe a basic class.
bool getIsEnum() const
Say if the current PClassConfig is an enum.
All the genertor modes.