ADTF
Loading...
Searching...
No Matches
ddl::PredefinedDataTypes Class Reference

Predefined types of the DataDefinition. These types can be used without explicitely adding it to a dd::DataDefinition! More...

#include <dd_predefined_datatypes.h>

Public Member Functions

std::shared_ptr< dd::datamodel::DataTypegetPredefinedType (const std::string &name) const
 Get the Predefined Type object by name.
 
dd::OptionalSize getDefaultAlignment (const std::string &name) const
 Get the default alignment of a Predefined Type by name.
 
std::vector< std::string > getAliasTypes (const std::string &name) const
 Get the aliases for this type to determine similar type (like tBool and bool)
 
std::vector< std::shared_ptr< dd::datamodel::DataType > > getPredefinedTypes () const
 Gets a vector of all the predefined data types.
 

Static Public Member Functions

static const PredefinedDataTypesgetInstance ()
 Get the Instance object.
 

Detailed Description

Predefined types of the DataDefinition. These types can be used without explicitely adding it to a dd::DataDefinition!

Following types are possible:

Member Function Documentation

◆ getAliasTypes()

std::vector< std::string > ddl::PredefinedDataTypes::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 ddl::PredefinedDataTypes::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

◆ getInstance()

static const PredefinedDataTypes & ddl::PredefinedDataTypes::getInstance ( )
static

Get the Instance object.

Returns
PredefinedDataTypes&

◆ getPredefinedType()

std::shared_ptr< dd::datamodel::DataType > ddl::PredefinedDataTypes::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 > > ddl::PredefinedDataTypes::getPredefinedTypes ( ) const

Gets a vector of all the predefined data types.

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

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