| Line | Branch | Exec | Source |
|---|---|---|---|
| 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 | |||
| 12 | ///Constructor of NanobindTraitMethod | ||
| 13 | 1 | NanobindTraitMethod::NanobindTraitMethod() | |
| 14 | 1 | : PAbstractNanobindTraitBackend() | |
| 15 | 1 | {} | |
| 16 | |||
| 17 | ///Destructor of NanobindTraitMethod | ||
| 18 | 2 | NanobindTraitMethod::~NanobindTraitMethod(){} | |
| 19 | |||
| 20 | ///Registration of constructor | ||
| 21 | /// @param fs stream to write to | ||
| 22 | /// @param classConfig config of the class | ||
| 23 | /// @param mode generator mode | ||
| 24 | 2 | void NanobindTraitMethod::registerConstructor(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const{ | |
| 25 |
1/2✗ Branch 0 (3→4) not taken.
✓ Branch 1 (3→5) taken 2 times.
|
2 | if(classConfig.getIsEnum()){return;} |
| 26 | |||
| 27 | 2 | fs << std::endl << std::endl << "\t\t//Constructor"; | |
| 28 | 2 | fs << std::endl << "\t\t.def(nb::init<>())"; | |
| 29 | } | ||
| 30 |