RefleX
Build DDS Applications in Modern C++ without IDL
|
Typesafe, exception-safe, poulated DynamicData. More...
#include <reflex_fwd.h>
Public Member Functions | |
SafeDynamicData (DDSDynamicDataTypeSupport *type_support, const T &src) | |
Create a new SafeDynamicData object from a source object of type T. More... | |
void | swap (SafeDynamicData< T > &rhs) throw () |
Swap two SafeDynamicData objects. Does not throw. More... | |
Public Member Functions inherited from reflex::AutoDynamicData | |
AutoDynamicData (DDSDynamicDataTypeSupport *typeSupport) | |
Create an initialized but unpopulated DynamicData instance from the given type-support. More... | |
AutoDynamicData (const AutoDynamicData &) | |
Create a deep copy. More... | |
AutoDynamicData & | operator= (const AutoDynamicData &src) |
Deep copy of the contents of src in to this. More... | |
~AutoDynamicData () | |
Destructor. More... | |
AutoDynamicData (AutoDynamicData &&src) | |
Moves the ownership of DynamicData from src to a newly created AutoDynamicData object. More... | |
AutoDynamicData & | operator= (AutoDynamicData &&src) |
Moves the ownership of DynamicData from src to this. More... | |
void | swap (AutoDynamicData &) throw () |
Swap two AutoDynamicData objects. Does not throw. More... | |
DDS_DynamicData * | get () |
Return the underlying DynamicData instance. More... | |
const DDS_DynamicData * | get () const |
Return the underlying DynamicData instance. More... | |
Typesafe, exception-safe, poulated DynamicData.
The objects of SafeDynamicData are guaranteed to contain an initialized and fully populated DynamicData instance of type T. SafeDynamicData is a value-type, which means copying SafeDynamicData would result in a deep copy of the underlying DynamicData instance.
|
inline |
Create a new SafeDynamicData object from a source object of type T.
type_support | Type support object that represents T |
src | The source object |
|
inline |
Swap two SafeDynamicData objects. Does not throw.