20 #ifndef OMG_SUB_DETAIL_LOANED_SAMPLES_IMPL_HPP_ 21 #define OMG_SUB_DETAIL_LOANED_SAMPLES_IMPL_HPP_ 40 typedef std::vector< dds::sub::Sample<T, dds::sub::detail::Sample> > LoanedSamplesContainer;
41 typedef typename std::vector< dds::sub::Sample<T, dds::sub::detail::Sample> >::iterator iterator;
42 typedef typename std::vector< dds::sub::Sample<T, dds::sub::detail::Sample> >::const_iterator const_iterator;
56 return samples_.begin();
59 const_iterator begin()
const 61 return samples_.begin();
64 const_iterator end()
const 66 return samples_.end();
69 uint32_t length()
const 71 return static_cast<uint32_t
>(samples_.size());
74 void reserve(uint32_t s)
79 void resize(uint32_t s)
86 return this->samples_[i];
90 return this->samples_.
data();
95 LoanedSamplesContainer samples_;
const DataType & data() const
This class encapsulates the data and info meta-data associated with DDS samples.