RefleX
Build DDS Applications in Modern C++ without IDL
|
The top-level namespace for all the RefleX APIs. More...
Namespaces | |
codegen | |
RefleX macros in adapt_macros.h expand static information of user-defined types to this namespace. | |
match | |
Contains types to adapt types of members of structured type to an existing TypeCode. | |
meta | |
Includes C++ compile-time meta-programming facilities. | |
pub | |
Contains generic data publisher for adapted types. | |
sub | |
Contains generic data subscriber for adapted types. | |
type_traits | |
Contains customizable type traits for user-defined types. | |
Classes | |
class | AutoDynamicData |
Automatically manages the memory of a DynamicData instance. More... | |
class | SafeDynamicData |
Typesafe, exception-safe, poulated DynamicData. More... | |
class | SafeTypeCode |
A type-safe, exception-safe wrapper for DDS TypeCode. More... | |
class | TypeManager |
Manage type-specific context, such as typecode, type-support, and dynamic data properties. More... | |
Functions | |
template<class T > | |
void | write_dynamicdata (DDS_DynamicData &dest, const T &src) |
Copies source data into the destination DDS_DynamicData instance. More... | |
template<class T > | |
void | write_dynamicdata (AutoDynamicData &dest, const T &src) |
Copies source data into the destination DDS_DynamicData instance. More... | |
template<class T > | |
SafeTypeCode< T > | make_typecode (const char *name=0) |
Creates a TypeCode for structured type T. More... | |
template<class T > | |
void | read_dynamicdata (T &dest, const DDS_DynamicData &src) |
Extracts data out from the source DDS_DynamicData instance and copies into the destination object of type T. More... | |
template<class T > | |
void | read_dynamicdata (T &dest, const AutoDynamicData &src) |
Extracts data out from the AutoDynamicData instance and copies into the destinatin object of type T. More... | |
void | swap (AutoDynamicData &lhs, AutoDynamicData &rhs) throw () |
Swap the contents of two AutoDynamicData instances. Never throws. More... | |
template<class T > | |
void | swap (SafeDynamicData< T > &lhs, SafeDynamicData< T > &rhs) throw () |
Swap the contents of two SafeDynamicData objects. Never throws. More... | |
template<class T > | |
void | swap (SafeTypeCode< T > &lhs, SafeTypeCode< T > &rhs) throw () |
Swap the contents of two SafeTypeCode objects. Never throws. More... | |
The top-level namespace for all the RefleX APIs.
SafeTypeCode< T > reflex::make_typecode | ( | const char * | name = 0 | ) |
Creates a TypeCode for structured type T.
name | Optional name for the top-level struct type. If none is provided, the unqualified name of type T is used. |
void reflex::read_dynamicdata | ( | T & | dest, |
const DDS_DynamicData & | src | ||
) |
Extracts data out from the source DDS_DynamicData instance and copies into the destination object of type T.
src | The source DDS_DynamicData. |
dest | The destination object of type T. |
void reflex::read_dynamicdata | ( | T & | dest, |
const AutoDynamicData & | src | ||
) |
Extracts data out from the AutoDynamicData instance and copies into the destinatin object of type T.
src | The source DDS_DynamicData. |
dest | The destination object of type T. |
void reflex::swap | ( | SafeDynamicData< T > & | lhs, |
SafeDynamicData< T > & | rhs | ||
) | |||
throw | ( | ||
) |
Swap the contents of two SafeDynamicData objects. Never throws.
void reflex::swap | ( | SafeTypeCode< T > & | lhs, |
SafeTypeCode< T > & | rhs | ||
) | |||
throw | ( | ||
) |
Swap the contents of two SafeTypeCode objects. Never throws.
REFLEX_INLINE void reflex::swap | ( | AutoDynamicData & | lhs, |
AutoDynamicData & | rhs | ||
) | |||
throw | ( | ||
) |
Swap the contents of two AutoDynamicData instances. Never throws.
Swap contents. Never throws.
void reflex::write_dynamicdata | ( | DDS_DynamicData & | dest, |
const T & | src | ||
) |
Copies source data into the destination DDS_DynamicData instance.
src | The source object |
dest | The DDS_DynamicData instance that will be populated |
void reflex::write_dynamicdata | ( | AutoDynamicData & | dest, |
const T & | src | ||
) |
Copies source data into the destination DDS_DynamicData instance.
src | The source object |
dest | The instance that will be populated |