21 #ifndef OSPL_DDS_SUB_DETAIL_SHARED_SAMPLES_HPP_ 22 #define OSPL_DDS_SUB_DETAIL_SHARED_SAMPLES_HPP_ 44 typedef typename std::vector< dds::sub::Sample<T, Sample> >::iterator iterator;
45 typedef typename std::vector< dds::sub::Sample<T, Sample> >::const_iterator const_iterator;
61 return samples_->begin();
64 const_iterator begin()
const 66 return samples_.begin();
69 const_iterator end()
const 71 return samples_.end();
74 uint32_t length()
const 77 return static_cast<uint32_t
>(samples_.length());
80 void resize(uint32_t s)
This class encapsulates and automates the management of loaned samples.