ADTF  3.18.2
PredefinedDataTypes

Predefined types of the DataDefinition. More...

Classes

struct  PredefInfo
 

Public Member Functions

std::shared_ptr< dd::datamodel::DataTypegetPredefinedType (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 PredefinedDataTypesgetInstance ()
 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
 

Detailed Description

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.

Member Function Documentation

◆ getAliasTypes()

std::vector<std::string> getAliasTypes ( const std::string &  name) const

Get the aliases for this type to determine similar type (like tBool and bool)

Parameters
[in]nameType name to search the aliases for
Returns
Vector object of strings containing all aliases for name

◆ getDefaultAlignment()

dd::OptionalSize getDefaultAlignment ( const std::string &  name) const

Get the default alignment of a Predefined Type by name.

Parameters
[in]nameType name to search the default alignment for
Returns
dd::OptionalSize

Referenced by DDFromXMLFactory< DOM_NODE_TYPE >::createDataType().

◆ getInstance()

static const PredefinedDataTypes& getInstance ( )
static

Get the Instance object.

Returns
PredefinedDataTypes&

Referenced by DDFromXMLFactory< DOM_NODE_TYPE >::createDataType().

◆ getPredefinedType()

std::shared_ptr<dd::datamodel::DataType> getPredefinedType ( const std::string &  name) const

Get the Predefined Type object by name.

Parameters
[in]nameName of the predefined type to look for
Returns
std::shared_ptr<dd::datamodel::DataType>

◆ getPredefinedTypes()

std::vector<std::shared_ptr<dd::datamodel::DataType> > getPredefinedTypes ( ) const

Gets a vector of all the predefined data types.

Returns
std::vector<std::shared_ptr<dd::datamodel::DataType>> The predefined data types.