ADTF
|
Predefined types of the DataDefinition. More...
Classes | |
struct | PredefInfo |
Public Member Functions | |
std::shared_ptr< dd::datamodel::DataType > | getPredefinedType (const std::string &name) const |
Get the Predefined Type object by name. More... | |
dd::OptionalSize | getDefaultAlignment (const std::string &name) const |
Get the default alignment of a Predefined Type by name. More... | |
std::vector< std::string > | getAliasTypes (const std::string &name) const |
Get the aliases for this type to determine similar type (like tBool and bool) More... | |
std::vector< std::shared_ptr< dd::datamodel::DataType > > | getPredefinedTypes () const |
Gets a vector of all the predefined data types. More... | |
Static Public Member Functions | |
static const PredefinedDataTypes & | getInstance () |
Get the Instance object. More... | |
Private Member Functions | |
PredefinedDataTypes () | |
Construct a new Predefined Data Types object. | |
~PredefinedDataTypes () | |
Destructor. | |
Private Attributes | |
const std::unordered_map< std::string, PredefInfo > | _defined_types |
Predefined types of the DataDefinition.
These types can be used without explicitely adding it to a dd::DataDefinition!
Following types are possible:
Definition at line 271 of file dd_predefined_datatypes.h.
std::vector<std::string> getAliasTypes | ( | const std::string & | name | ) | const |
Get the aliases for this type to determine similar type (like tBool and bool)
[in] | name | Type name to search the aliases for |
name
dd::OptionalSize getDefaultAlignment | ( | const std::string & | name | ) | const |
Get the default alignment of a Predefined Type by name.
[in] | name | Type name to search the default alignment for |
Referenced by DDFromXMLFactory< DOM_NODE_TYPE >::createDataType().
|
static |
Get the Instance object.
Referenced by DDFromXMLFactory< DOM_NODE_TYPE >::createDataType().
std::shared_ptr<dd::datamodel::DataType> getPredefinedType | ( | const std::string & | name | ) | const |
Get the Predefined Type object by name.
[in] | name | Name of the predefined type to look for |
std::vector<std::shared_ptr<dd::datamodel::DataType> > getPredefinedTypes | ( | ) | const |
Gets a vector of all the predefined data types.