|
Peano
|
Simple generator mapping a DaStGen2 object onto a plain C++ class. More...


Public Member Functions | |
| __init__ (self, data) | |
| get_stack_container (self) | |
| get_header_file_include (self) | |
| construct_output (self, output) | |
| Finally construct the output. | |
Protected Attributes | |
| _data = data | |
Simple generator mapping a DaStGen2 object onto a plain C++ class.
The generator is very similar to DaStGen2Generator, but it has to take extra care as we assume that some objects host smart pointers. Therefore, we do two things: We dump the smart pointer version, and we create a flattene version, too.
Definition at line 94 of file DaStGen2.py.
| peano4.api.datamodel.DaStGen2.DaStGen2GeneratorForObjectsWithSmartPointers.__init__ | ( | self, | |
| data ) |
Definition at line 105 of file DaStGen2.py.
| peano4.api.datamodel.DaStGen2.DaStGen2GeneratorForObjectsWithSmartPointers.construct_output | ( | self, | |
| output ) |
Finally construct the output.
Pass in an instance of the output object. We use this output object only to register the generated C++ file with the build environment. This part is exactly the same as for a plain 1:1 translation.
Further to the default generator, this routine does a little bit more:
Definition at line 118 of file DaStGen2.py.
References convert::input::PeanoTextPatchFileReader._data, peano4.api.datamodel.DaStGen2.DaStGen2Generator._data, and _data.
| peano4.api.datamodel.DaStGen2.DaStGen2GeneratorForObjectsWithSmartPointers.get_header_file_include | ( | self | ) |
Definition at line 113 of file DaStGen2.py.
References convert::input::PeanoTextPatchFileReader._data, peano4.api.datamodel.DaStGen2.DaStGen2Generator._data, and _data.
| peano4.api.datamodel.DaStGen2.DaStGen2GeneratorForObjectsWithSmartPointers.get_stack_container | ( | self | ) |
Definition at line 109 of file DaStGen2.py.
References convert::input::PeanoTextPatchFileReader._data, peano4.api.datamodel.DaStGen2.DaStGen2Generator._data, and _data.
|
protected |
Definition at line 106 of file DaStGen2.py.
Referenced by construct_output(), peano4.api.toolbox.particles.ParticleSet.ParticleSetGenerator_ContinuousPerVertex.construct_output(), peano4.api.toolbox.particles.ParticleSet.ParticleSetGenerator_GlobalContinuous.construct_output(), peano4.api.toolbox.particles.ParticleSet.ParticleSetGenerator_ScatteredOnHeap_IndexByList.construct_output(), peano4.api.toolbox.particles.ParticleSet.ParticleSetGenerator_ScatteredOnHeap_IndexByVector.construct_output(), get_header_file_include(), peano4.api.toolbox.particles.ParticleSet.AbstractParticleSetGenerator.get_header_file_include(), get_stack_container(), peano4.api.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector.get_stack_container(), and peano4.api.toolbox.particles.ParticleSet.AbstractParticleSetGenerator.get_stack_container().