|
|
#include <RobotAPI/libraries/aron/codegeneration/codegenerator/codewriter/cpp/generator/Generator.h>
Inheritance diagram for Generator:Public Types | |
| using | PointerType = GeneratorPtr |
Public Member Functions | |
| Generator ()=delete | |
| Generator (const std::string &instantiatedCppTypename, const std::string &classCppTypename, const std::string &aronDataTypename, const std::string &aronTypeTypename) | |
| std::string | getClassCppTypename () const |
| virtual CppBlockPtr | getCopyCtorBlock (const std::string &) const |
| virtual std::pair< std::vector< std::pair< std::string, std::string > >, bool > | getCopyCtorInitializers (const std::string &) const |
| virtual CppBlockPtr | getCtorBlock (const std::string &) const |
| virtual std::pair< std::vector< std::pair< std::string, std::string > >, bool > | getCtorInitializers (const std::string &) const |
| virtual CppBlockPtr | getDtorBlock (const std::string &) const |
| virtual CppBlockPtr | getEqualsBlock (const std::string &cppAccessorThis, const std::string &cppAccessorOther) const |
| std::string | getFullClassCppTypename () const |
| std::string | getFullInstantiatedCppTypename () const |
| std::string | getFullInstantiatedCppTypenameGenerator () const |
| std::string | getInstantiatedCppTypename () const |
| virtual std::vector< CppFieldPtr > | getPublicVariableDeclarations (const std::string &) const |
| virtual CppBlockPtr | getReadBlock (const std::string &cppAccessor, const std::string &variantAccessor) const =0 |
| virtual std::vector< std::string > | getRequiredIncludes () const |
| virtual CppBlockPtr | getResetHardBlock (const std::string &cppAccessor) const |
| virtual CppBlockPtr | getResetSoftBlock (const std::string &cppAccessor) const |
| virtual const type::Variant & | getType () const =0 |
| virtual CppBlockPtr | getWriteBlock (const std::string &cppAccessor, const Path &, std::string &variantAccessor) const =0 |
| virtual CppBlockPtr | getWriteTypeBlock (const std::string &typeAccessor, const std::string &cppAccessor, const Path &, std::string &variantAccessor) const =0 |
| CppCtorPtr | toCopyCtor (const std::string &) const |
| CppCtorPtr | toCtor (const std::string &) const |
| CppMethodPtr | toDtor (const std::string &) const |
| CppMethodPtr | toEqualsMethod () const |
| CppMethodPtr | toReadMethod () const |
| CppMethodPtr | toResetHardMethod () const |
| CppMethodPtr | toResetSoftMethod () const |
| CppMethodPtr | toSpecializedDataReaderMethod (const ReaderInfo &info) const |
| CppMethodPtr | toSpecializedDataWriterMethod (const WriterInfo &info) const |
| CppMethodPtr | toSpecializedStaticDataReaderMethod (const StaticReaderInfo &info) const |
| CppMethodPtr | toSpecializedTypeWriterMethod (const WriterInfo &info) const |
| CppMethodPtr | toWriteMethod () const |
| CppMethodPtr | toWriteTypeMethod () const |
| virtual | ~Generator ()=default |
Static Public Member Functions | |
| static std::string | EscapeAccessor (const std::string &) |
| static std::string | ExtractCppTypename (const type::Variant &) |
| static std::vector< std::string > | ExtractCppTypenames (const std::vector< type::VariantPtr > &) |
| static std::unique_ptr< Generator > | FromAronType (const type::Variant &) |
| static std::string | OptionalFloatLiteral (const std::optional< float > &) |
Protected Member Functions | |
| std::string | nextEl () const |
| std::string | resolveMaybeAccessor (const std::string &) const |
| CppBlockPtr | resolveMaybeEqualsBlock (const CppBlockPtr &, const std::string &, const std::string &) const |
| std::string | resolveMaybeGenerator (const std::string &args="") const |
| std::string | resolveMaybeGeneratorWithSetter (const std::string &, const std::string &args="") const |
| CppBlockPtr | resolveMaybeReadBlock (const CppBlockPtr &, const std::string &, const std::string &) const |
| CppBlockPtr | resolveMaybeResetHardBlock (const CppBlockPtr &, const std::string &) const |
| CppBlockPtr | resolveMaybeResetSoftBlock (const CppBlockPtr &, const std::string &) const |
| CppBlockPtr | resolveMaybeWriteBlock (const CppBlockPtr &, const std::string &) const |
| std::string | toPointerAccessor (const std::string &) const |
Static Protected Attributes | |
| static const std::string | ARON_MAYBE_TYPE_ACCESSOR |
| static const std::string | ARON_OTHER_ACCESSOR = Generator::ARON_VARIABLE_PREFIX + "_o" |
| static const std::string | ARON_PATH_ACCESSOR = Generator::ARON_VARIABLE_PREFIX + "_p" |
| static const std::string | ARON_READER_ACCESSOR = Generator::ARON_VARIABLE_PREFIX + "_r" |
| static const std::string | ARON_TEMPLATE_INSTANTIATIONS_ACCESSOR |
| static const std::string | ARON_VARIABLE_PREFIX = "aron" |
| static const std::string | ARON_VARIANT_RETURN_ACCESSOR |
| static const std::string | ARON_WRITER_ACCESSOR = Generator::ARON_VARIABLE_PREFIX + "_w" |
Definition at line 63 of file Generator.h.
| using PointerType = GeneratorPtr |
Definition at line 66 of file Generator.h.
|
delete |
Here is the caller graph for this function:| Generator | ( | const std::string & | instantiatedCppTypename, |
| const std::string & | classCppTypename, | ||
| const std::string & | aronDataTypename, | ||
| const std::string & | aronTypeTypename ) |
Definition at line 118 of file Generator.cpp.
|
virtualdefault |
|
static |
|
static |
Definition at line 93 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 101 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| std::string getClassCppTypename | ( | ) | const |
|
virtual |
|
virtual |
Reimplemented in ObjectClass.
Definition at line 522 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
Reimplemented in Bool, Double, Float, Image, Int, IntEnum, Long, Matrix, NDArray, ObjectClass, PointCloud, Quaternion, and String.
Definition at line 510 of file Generator.cpp.
Here is the caller graph for this function:
|
virtual |
|
virtual |
Reimplemented in Image, IntEnumClass, Matrix, ObjectClass, PointCloud, and Quaternion.
Definition at line 568 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string getFullClassCppTypename | ( | ) | const |
Definition at line 189 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string getFullInstantiatedCppTypename | ( | ) | const |
Definition at line 137 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string getFullInstantiatedCppTypenameGenerator | ( | ) | const |
Definition at line 160 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string getInstantiatedCppTypename | ( | ) | const |
|
virtual |
Reimplemented in IntEnumClass, and ObjectClass.
Definition at line 503 of file Generator.cpp.
Here is the call graph for this function:
|
pure virtual |
Implemented in AnyObject, PrimitiveGenerator< typeT, DerivedT >, PrimitiveGenerator< type::Bool, Bool >, PrimitiveGenerator< type::Double, Double >, PrimitiveGenerator< type::Float, Float >, PrimitiveGenerator< type::Int, Int >, PrimitiveGenerator< type::Long, Long >, PrimitiveGenerator< type::String, String >, Dict, Image, IntEnum, IntEnumClass, List, Matrix, NDArray, Object, ObjectClass, Pair, PointCloud, Quaternion, and Tuple.
Here is the caller graph for this function:
|
virtual |
Reimplemented in AnyObject, Dict, Image, List, Matrix, Object, ObjectClass, Pair, PointCloud, Quaternion, and Tuple.
Definition at line 497 of file Generator.cpp.
Here is the caller graph for this function:
|
virtual |
Reimplemented in Bool, Double, Float, Image, Int, IntEnum, IntEnumClass, Long, Matrix, Object, ObjectClass, Quaternion, and String.
Definition at line 550 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in Bool, Dict, Double, Float, Image, Int, IntEnum, IntEnumClass, List, Long, Matrix, NDArray, Object, ObjectClass, Pair, PointCloud, Quaternion, String, and Tuple.
Definition at line 559 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtual |
Implemented in SpecializedGeneratorBase< TypeT, DerivedT >, SpecializedGeneratorBase< type::AnyObject, AnyObject >, SpecializedGeneratorBase< type::Bool, Bool >, SpecializedGeneratorBase< type::Dict, Dict >, SpecializedGeneratorBase< type::Double, Double >, SpecializedGeneratorBase< type::Float, Float >, SpecializedGeneratorBase< type::Image, Image >, SpecializedGeneratorBase< type::Int, Int >, SpecializedGeneratorBase< type::IntEnum, IntEnum >, SpecializedGeneratorBase< type::IntEnum, IntEnumClass >, SpecializedGeneratorBase< type::List, List >, SpecializedGeneratorBase< type::Long, Long >, SpecializedGeneratorBase< type::Matrix, Matrix >, SpecializedGeneratorBase< type::NDArray, NDArray >, SpecializedGeneratorBase< type::Object, ObjectClass >, SpecializedGeneratorBase< type::Pair, Pair >, SpecializedGeneratorBase< type::PointCloud, PointCloud >, SpecializedGeneratorBase< type::Quaternion, Quaternion >, SpecializedGeneratorBase< type::String, String >, SpecializedGeneratorBase< type::Tuple, Tuple >, and SpecializedGeneratorBase< typeT, DerivedT >.
Here is the caller graph for this function:
|
pure virtual |
Implemented in AnyObject, PrimitiveGenerator< typeT, DerivedT >, PrimitiveGenerator< type::Bool, Bool >, PrimitiveGenerator< type::Double, Double >, PrimitiveGenerator< type::Float, Float >, PrimitiveGenerator< type::Int, Int >, PrimitiveGenerator< type::Long, Long >, PrimitiveGenerator< type::String, String >, Dict, Image, IntEnum, IntEnumClass, List, Matrix, NDArray, Object, ObjectClass, Pair, PointCloud, Quaternion, and Tuple.
Here is the caller graph for this function:
|
pure virtual |
Implemented in AnyObject, Bool, Dict, Double, Float, Image, Int, IntEnum, IntEnumClass, List, Long, Matrix, NDArray, Object, ObjectClass, Pair, PointCloud, Quaternion, String, and Tuple.
Here is the caller graph for this function:
|
protected |
Definition at line 634 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
protected |
Definition at line 584 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 756 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 600 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 623 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 732 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 676 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 698 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 715 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| CppCtorPtr toCopyCtor | ( | const std::string & | name | ) | const |
Definition at line 230 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| CppCtorPtr toCtor | ( | const std::string & | name | ) | const |
Definition at line 212 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| CppMethodPtr toDtor | ( | const std::string & | name | ) | const |
Definition at line 250 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| CppMethodPtr toEqualsMethod | ( | ) | const |
Definition at line 477 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| CppMethodPtr toReadMethod | ( | ) | const |
Definition at line 360 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| CppMethodPtr toResetHardMethod | ( | ) | const |
Definition at line 285 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| CppMethodPtr toResetSoftMethod | ( | ) | const |
Definition at line 268 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| CppMethodPtr toSpecializedDataReaderMethod | ( | const ReaderInfo & | info | ) | const |
Definition at line 416 of file Generator.cpp.
| CppMethodPtr toSpecializedDataWriterMethod | ( | const WriterInfo & | info | ) | const |
Definition at line 395 of file Generator.cpp.
| CppMethodPtr toSpecializedStaticDataReaderMethod | ( | const StaticReaderInfo & | info | ) | const |
Definition at line 437 of file Generator.cpp.
| CppMethodPtr toSpecializedTypeWriterMethod | ( | const WriterInfo & | info | ) | const |
Definition at line 458 of file Generator.cpp.
| CppMethodPtr toWriteMethod | ( | ) | const |
Definition at line 329 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| CppMethodPtr toWriteTypeMethod | ( | ) | const |
Definition at line 302 of file Generator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Definition at line 164 of file Generator.h.
|
staticprotected |
Definition at line 170 of file Generator.h.
|
staticprotected |
Definition at line 165 of file Generator.h.
|
staticprotected |
Definition at line 166 of file Generator.h.
|
staticprotected |
Definition at line 168 of file Generator.h.
|
staticprotected |
Definition at line 162 of file Generator.h.
|
staticprotected |
Definition at line 169 of file Generator.h.
|
staticprotected |
Definition at line 167 of file Generator.h.