IntEnumClass Class Reference

#include <RobotAPI/libraries/aron/codegeneration/codegenerator/codewriter/cpp/generator/toplevel/IntEnumClass.h>

+ Inheritance diagram for IntEnumClass:

Public Member Functions

CppBlockPtr getEqualsBlock (const std::string &, const std::string &) const final
 
std::vector< CppFieldPtrgetPublicVariableDeclarations (const std::string &) const final
 
CppBlockPtr getReadBlock (const std::string &cppAccessor, const std::string &variantAccessor) const final
 
CppBlockPtr getResetHardBlock (const std::string &cppAccessor) const final
 
CppBlockPtr getResetSoftBlock (const std::string &cppAccessor) const final
 
CppBlockPtr getWriteBlock (const std::string &cppAccessor, const Path &, std::string &variantAccessor) const final
 
CppBlockPtr getWriteTypeBlock (const std::string &typeAccessor, const std::string &cppAccessor, const Path &, std::string &variantAccessor) const final
 
 IntEnumClass (const type::IntEnum &)
 
CppMethodPtr toCopyAssignmentMethod () const
 
CppMethodPtr toEnumAssignmentMethod () const
 
CppCtorPtr toEnumCtor (const std::string &) const
 
std::vector< CppEnumFieldPtrtoEnumFields () const
 
CppMethodPtr toFromStringMethod () const
 
CppMethodPtr toIntAssignmentMethod () const
 
CppMethodPtr toIntMethod () const
 
CppMethodPtr toToStringMethod () const
 
virtual ~IntEnumClass ()=default
 
- Public Member Functions inherited from SpecializedGeneratorBase< type::IntEnum, IntEnumClass >
virtual const type::VariantgetType () const override
 
 SpecializedGeneratorBase (const std::string &instantiatedCppTypename, const std::string &classCppTypename, const std::string &aronDataTypename, const std::string &aronTypeTypename, const type::IntEnum &t)
 
virtual ~SpecializedGeneratorBase ()=default
 
- Public Member Functions inherited from Generator
 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
 
std::string getFullClassCppTypename () const
 
std::string getFullInstantiatedCppTypename () const
 
std::string getFullInstantiatedCppTypenameGenerator () const
 
std::string getInstantiatedCppTypename () const
 
virtual std::vector< std::string > getRequiredIncludes () const
 
virtual const type::VariantgetType () 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
 

Additional Inherited Members

- Public Types inherited from Generator
using PointerType = GeneratorPtr
 
- Static Public Member Functions inherited from Generator
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< GeneratorFromAronType (const type::Variant &)
 
- Protected Member Functions inherited from Generator
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
 
- Protected Attributes inherited from SpecializedGeneratorBase< type::IntEnum, IntEnumClass >
type::IntEnum type
 
- Static Protected Attributes inherited from Generator
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"
 

Detailed Description

Definition at line 34 of file IntEnumClass.h.

Constructor & Destructor Documentation

◆ IntEnumClass()

IntEnumClass ( const type::IntEnum n)

Definition at line 32 of file IntEnumClass.cpp.

+ Here is the call graph for this function:

◆ ~IntEnumClass()

virtual ~IntEnumClass ( )
virtualdefault

Member Function Documentation

◆ getEqualsBlock()

CppBlockPtr getEqualsBlock ( const std::string &  accessor,
const std::string &  otherInstanceAccessor 
) const
finalvirtual

Reimplemented from Generator.

Definition at line 192 of file IntEnumClass.cpp.

◆ getPublicVariableDeclarations()

std::vector< CppFieldPtr > getPublicVariableDeclarations ( const std::string &  className) const
finalvirtual

Reimplemented from Generator.

Definition at line 51 of file IntEnumClass.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getReadBlock()

CppBlockPtr getReadBlock ( const std::string &  cppAccessor,
const std::string &  variantAccessor 
) const
finalvirtual

Implements Generator.

Definition at line 170 of file IntEnumClass.cpp.

+ Here is the call graph for this function:

◆ getResetHardBlock()

CppBlockPtr getResetHardBlock ( const std::string &  cppAccessor) const
finalvirtual

Reimplemented from Generator.

Definition at line 128 of file IntEnumClass.cpp.

◆ getResetSoftBlock()

CppBlockPtr getResetSoftBlock ( const std::string &  cppAccessor) const
finalvirtual

Reimplemented from Generator.

Definition at line 120 of file IntEnumClass.cpp.

◆ getWriteBlock()

CppBlockPtr getWriteBlock ( const std::string &  cppAccessor,
const Path p,
std::string &  variantAccessor 
) const
finalvirtual

Implements Generator.

Definition at line 159 of file IntEnumClass.cpp.

+ Here is the call graph for this function:

◆ getWriteTypeBlock()

CppBlockPtr getWriteTypeBlock ( const std::string &  typeAccessor,
const std::string &  cppAccessor,
const Path p,
std::string &  variantAccessor 
) const
finalvirtual

Implements Generator.

Definition at line 136 of file IntEnumClass.cpp.

+ Here is the call graph for this function:

◆ toCopyAssignmentMethod()

CppMethodPtr toCopyAssignmentMethod ( ) const

Definition at line 246 of file IntEnumClass.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toEnumAssignmentMethod()

CppMethodPtr toEnumAssignmentMethod ( ) const

Definition at line 264 of file IntEnumClass.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toEnumCtor()

CppCtorPtr toEnumCtor ( const std::string &  name) const

Definition at line 211 of file IntEnumClass.cpp.

+ Here is the caller graph for this function:

◆ toEnumFields()

std::vector< CppEnumFieldPtr > toEnumFields ( ) const

Definition at line 221 of file IntEnumClass.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toFromStringMethod()

CppMethodPtr toFromStringMethod ( ) const

Definition at line 319 of file IntEnumClass.cpp.

+ Here is the caller graph for this function:

◆ toIntAssignmentMethod()

CppMethodPtr toIntAssignmentMethod ( ) const

Definition at line 281 of file IntEnumClass.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toIntMethod()

CppMethodPtr toIntMethod ( ) const

Definition at line 232 of file IntEnumClass.cpp.

+ Here is the caller graph for this function:

◆ toToStringMethod()

CppMethodPtr toToStringMethod ( ) const

Definition at line 305 of file IntEnumClass.cpp.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: