Holds sample data intended for transmission. More...
Public Member Functions | |
WriteSample () | |
Default constructor. | |
WriteSample (const WriteSample< T > &other) | |
Copy constructor. Allocates a new instance, and copies from 'other'. | |
WriteSample (const T &data) | |
Constructor. Allocates a new instance, and copies from 'data'. | |
WriteSample (const WriteSampleRef< T > &wsref) | |
Constructor. Allocates a new instance, and copies from the data referenced in 'wsref'. | |
~WriteSample () | |
Destructor. Deletes any contained data. | |
WriteSample & | operator= (const WriteSampleRef< T > &wsref) |
Assignment operator (from WriteSampleRef) | |
WriteSample & | operator= (const WriteSample< T > &ws) |
Assignment operator. | |
const T & | data () const |
Const access to the contained data instance. | |
T & | data () |
Access to the contained data instance. May allocate a new 'T' if hasn't yet. | |
void | set_data (const T &data) |
Assign the data. Copies 'data' into internal state. | |
void | set_identity (const DDS::SampleIdentity_t &id) |
Assign the identity of the Sample. | |
void | swap (WriteSample &other) throw () |
Swap the contents of this with 'other'. | |
DDS::SampleIdentity_t | identity () const |
Access the identity of this Sample. | |
Friends | |
class | DDS::DataReader |
class | DDS::DataWriter |
template<typename TReq , typename TRep > | |
class | DDS::rpc::Requester |
template<typename TReq , typename TRep > | |
class | DDS::rpc::Replier |
Holds sample data intended for transmission.