CoreDX DDS C++ Reference Manual
Public Member Functions | Friends | List of all members
DDS::WriteSample< T > Class Template Reference

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.
 
WriteSampleoperator= (const WriteSampleRef< T > &wsref)
 Assignment operator (from WriteSampleRef)
 
WriteSampleoperator= (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
 

Detailed Description

template<typename T>
class DDS::WriteSample< T >

Holds sample data intended for transmission.


© 2009-2017 Twin Oaks Computing, Inc
Castle Rock, CO 80108
All rights reserved.