24 #include "cheetah/data/DmTime.h" 25 #include <type_traits> 35 template <
typename DmTrialsType>
38 typedef std::shared_ptr<DmTrialsType> ElementType;
39 bool operator()(
const ElementType &lhs,
const ElementType &rhs)
const;
42 template <
typename DmTrialsType>
45 return lhs->start_time() < rhs->start_time();
50 template <
typename DmTrialsType>
55 template <
typename DmTrialsType>
60 template <
typename DmTrialsType>
67 _data.insert(it,data);
70 template <
typename DmTrialsType>
76 template <
typename DmTrialsType>
79 return Iterator(0, number_dms_per_slice, this->shared_from_this());
82 template <
typename DmTrialsType>
85 return ConstIterator(0, number_dms_per_slice, this->shared_from_this());
88 template <
typename DmTrialsType>
92 return Iterator(0,0,this->shared_from_this());
93 return Iterator(_data.front()->size(),0,this->shared_from_this());
96 template <
typename DmTrialsType>
101 return ConstIterator(_data.front()->size(),0,this->shared_from_this());
104 template <
typename DmTrialsType>
110 template <
typename DmTrialsType>
Functor to support comparison of start times in DmTime objects.
Iterator begin(std::size_t number_dms_per_slice)
Get an iterator pointing to the first DM trial that iterates over slices of DMs.
void clear()
Clear the DmTime.
Provides an iterator over a DmTime in slices of DMs.
Iterator end()
Get an iterator that points to the last DM trial in the buffer.
ContainerType const & blocks() const
Get a reference to the underlying list.
Some limits and constants for FLDO.
A wrapper class for a list of DmTime instances.
void add(ValueType data)
Insert a new DmTime object into the buffer.