21 #ifndef _RECORD_VECTOR_
22 #define _RECORD_VECTOR_
37 std::vector<T> m_data;
43 T
get(
size_t index)
const {
44 if (m_data.size() > 0) {
45 if (index >= m_data.size())
50 throw std::invalid_argument(
"Trying to get from empty RecordVector");
55 m_data.push_back(value);
58 typename std::vector<T>::const_iterator
begin()
const {
59 return m_data.begin();
63 typename std::vector<T>::const_iterator
end()
const {
std::vector< T >::const_iterator end() const
Definition: RecordVector.hpp:63
std::vector< T >::const_iterator begin() const
Definition: RecordVector.hpp:58
size_t size() const
Definition: RecordVector.hpp:39
Definition: RecordVector.hpp:35
void push_back(T value)
Definition: RecordVector.hpp:54