RTI Connext Modern C++ API Version 7.2.0
dds::core::xtypes::PrimitiveType Class Reference

<<value-type>> Represents and IDL primitive type More...

#include <dds/core/xtypes/PrimitiveTypes.hpp>

Inheritance diagram for dds::core::xtypes::PrimitiveType:

Related Functions

(Note that these are not member functions.)

template<typename T >
const PrimitiveType< T > & primitive_type ()
 Obtains a singleton of PrimitiveType<T> More...

Additional Inherited Members

- Public Member Functions inherited from dds::core::xtypes::DynamicType
dds::core::xtypes::TypeKind kind () const
 Gets the type kind. More...
std::string name () const
 Gets the name. More...

Detailed Description

<<value-type>> Represents and IDL primitive type

Template Parameters
TThe C++ primitive type for which to obtain a DynamicType. These are the possible types:
C++ type (T) IDL type
char char
bool boolean
uint8_t octet
(u)int16_t (unsigned) short
(u)int32_t (unsigned) long
(u)int64_t (unsigned) long long
float float
double double
rti::core::LongDouble long double
wchar_t wchar

Instead of instantiating this class it is recommended to obtain a singleton for each primitive type T using primitive_type.

Note: this class doesn't have any members other than those inherited from DynamicType.

See also

Friends And Related Function Documentation

◆ primitive_type()

template<typename T >
const PrimitiveType< T > & primitive_type ( )

Obtains a singleton of PrimitiveType<T>