TAO::DCPS::ZeroCopyDataSeq< Sample_T, DEF_MAX >::ZeroCopyVector Class Reference

List of all members.

Public Types

typedef ACE_Vector< OpenDDS::DCPS::ReceivedDataElement *,
DEF_MAX > 
BASE

Public Member Functions

 ZeroCopyVector (const size_t init_size=DEF_MAX, ACE_Allocator *alloc=0)
void swap (ZeroCopyVector &)

Detailed Description

template<class Sample_T, size_t DEF_MAX = DCPS_ZERO_COPY_SEQ_DEFAULT_SIZE>
class TAO::DCPS::ZeroCopyDataSeq< Sample_T, DEF_MAX >::ZeroCopyVector

In some versions of ACE, ACE_Vector doesn't have a working swap() function, so we have to provide our own.

Definition at line 150 of file ZeroCopySeq_T.h.


Member Typedef Documentation

template<class Sample_T, size_t DEF_MAX = DCPS_ZERO_COPY_SEQ_DEFAULT_SIZE>
typedef ACE_Vector<OpenDDS::DCPS::ReceivedDataElement*, DEF_MAX> TAO::DCPS::ZeroCopyDataSeq< Sample_T, DEF_MAX >::ZeroCopyVector::BASE

Definition at line 157 of file ZeroCopySeq_T.h.


Constructor & Destructor Documentation

template<class Sample_T, size_t DEF_MAX>
ACE_INLINE TAO::DCPS::ZeroCopyDataSeq< Sample_T, DEF_MAX >::ZeroCopyVector::ZeroCopyVector ( const size_t  init_size = DEF_MAX,
ACE_Allocator alloc = 0 
)

Definition at line 23 of file ZeroCopySeq_T.inl.

00026   : ACE_Vector<OpenDDS::DCPS::ReceivedDataElement*, DEF_MAX> (init_size, alloc)
00027 {
00028 }


Member Function Documentation

template<class Sample_T, size_t DEF_MAX>
ACE_INLINE void TAO::DCPS::ZeroCopyDataSeq< Sample_T, DEF_MAX >::ZeroCopyVector::swap ( ZeroCopyVector  ) 

Definition at line 32 of file ZeroCopySeq_T.inl.

References OpenDDS::DCPS::swap().

Referenced by TAO::DCPS::ZeroCopyDataSeq< Sample_T, DEF_MAX >::swap().

00033 {
00034   //Later versions of ACE do have a working ACE_Vector<T,MAX>::swap so we must
00035   //delegate up to ACE_Array<T> to get consistent swap behavior.
00036   ACE_Array<OpenDDS::DCPS::ReceivedDataElement*>::swap(rhs);
00037   std::swap(this->length_, rhs.length_);
00038   std::swap(this->curr_max_size_, rhs.curr_max_size_);
00039 }


The documentation for this class was generated from the following files:
Generated on Fri Feb 12 20:06:52 2016 for OpenDDS by  doxygen 1.4.7