#include <QueryableVector.h>
Public Types | |
typedef RangeIterator< Tp > | iterator |
typedef const Tp & | reference |
typedef RangeReverseIterator< Tp > | reverse_iterator |
typedef std::vector< std::pair < size_t, Tp > > | store_base_type |
Public Member Functions | |
size_t | backIndex () const |
iterator | begin () const |
iterator | end () const |
size_t | frontIndex () const |
Range & | operator= (const Range &rhs) |
Range () | |
Range (boost::shared_ptr< store_base_type > &data) | |
Range (const Range &rhs) | |
reverse_iterator | rbegin () const |
reverse_iterator | rend () const |
size_t | size () const |
virtual | ~Range () |
Private Attributes | |
boost::shared_ptr < store_base_type > | m_data |
Definition at line 105 of file QueryableVector.h.
typedef RangeIterator<Tp> ora::Range< Tp >::iterator |
Definition at line 108 of file QueryableVector.h.
typedef const Tp& ora::Range< Tp >::reference |
Definition at line 107 of file QueryableVector.h.
typedef RangeReverseIterator<Tp> ora::Range< Tp >::reverse_iterator |
Definition at line 109 of file QueryableVector.h.
typedef std::vector<std::pair<size_t,Tp> > ora::Range< Tp >::store_base_type |
Definition at line 110 of file QueryableVector.h.
ora::Range< Tp >::Range | ( | ) |
Definition at line 108 of file QueryableVectorImpl.h.
:m_data(new store_base_type ){ }
ora::Range< Tp >::Range | ( | boost::shared_ptr< store_base_type > & | data | ) | [explicit] |
Definition at line 111 of file QueryableVectorImpl.h.
ora::Range< Tp >::Range | ( | const Range< Tp > & | rhs | ) |
Definition at line 114 of file QueryableVectorImpl.h.
:m_data(rhs.m_data){ }
ora::Range< Tp >::~Range | ( | ) | [virtual] |
Definition at line 117 of file QueryableVectorImpl.h.
{ }
size_t ora::Range< Tp >::backIndex | ( | ) | const |
Definition at line 151 of file QueryableVectorImpl.h.
{ return m_data->back().first; }
ora::Range< Tp >::iterator ora::Range< Tp >::begin | ( | void | ) | const |
Definition at line 127 of file QueryableVectorImpl.h.
{ return RangeIterator<Tp>(m_data->begin()); }
ora::Range< Tp >::iterator ora::Range< Tp >::end | ( | void | ) | const |
Definition at line 131 of file QueryableVectorImpl.h.
{ return RangeIterator<Tp>(m_data->end()); }
size_t ora::Range< Tp >::frontIndex | ( | ) | const |
Definition at line 147 of file QueryableVectorImpl.h.
{ return m_data->front().first; }
ora::Range< Tp > & ora::Range< Tp >::operator= | ( | const Range< Tp > & | rhs | ) |
Definition at line 120 of file QueryableVectorImpl.h.
References ora::Range< Tp >::m_data.
{ if(&rhs != this){ m_data = rhs.m_data; } return *this; }
ora::Range< Tp >::reverse_iterator ora::Range< Tp >::rbegin | ( | ) | const |
Definition at line 135 of file QueryableVectorImpl.h.
{ return RangeReverseIterator<Tp>(m_data->rbegin()); }
ora::Range< Tp >::reverse_iterator ora::Range< Tp >::rend | ( | ) | const |
Definition at line 139 of file QueryableVectorImpl.h.
{ return RangeReverseIterator<Tp>(m_data->rend()); }
size_t ora::Range< Tp >::size | ( | void | ) | const |
Definition at line 143 of file QueryableVectorImpl.h.
{ return m_data->size(); }
boost::shared_ptr<store_base_type> ora::Range< Tp >::m_data [private] |
Definition at line 139 of file QueryableVector.h.
Referenced by ora::Range< Tp >::operator=().