CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

ora::Range< Tp > Class Template Reference

#include <QueryableVector.h>

List of all members.

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
Rangeoperator= (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

Detailed Description

template<typename Tp>
class ora::Range< Tp >

Definition at line 105 of file QueryableVector.h.


Member Typedef Documentation

template<typename Tp>
typedef RangeIterator<Tp> ora::Range< Tp >::iterator

Definition at line 108 of file QueryableVector.h.

template<typename Tp>
typedef const Tp& ora::Range< Tp >::reference

Definition at line 107 of file QueryableVector.h.

template<typename Tp>
typedef RangeReverseIterator<Tp> ora::Range< Tp >::reverse_iterator

Definition at line 109 of file QueryableVector.h.

template<typename Tp>
typedef std::vector<std::pair<size_t,Tp> > ora::Range< Tp >::store_base_type

Definition at line 110 of file QueryableVector.h.


Constructor & Destructor Documentation

template<class Tp >
ora::Range< Tp >::Range ( )

Definition at line 108 of file QueryableVectorImpl.h.

template<class Tp >
ora::Range< Tp >::Range ( boost::shared_ptr< store_base_type > &  data) [explicit]

Definition at line 111 of file QueryableVectorImpl.h.

                                                                             :m_data(data){
}
template<class Tp >
ora::Range< Tp >::Range ( const Range< Tp > &  rhs)

Definition at line 114 of file QueryableVectorImpl.h.

                                                              :m_data(rhs.m_data){
}
template<class Tp >
ora::Range< Tp >::~Range ( ) [virtual]

Definition at line 117 of file QueryableVectorImpl.h.

                                        {
}

Member Function Documentation

template<class Tp >
size_t ora::Range< Tp >::backIndex ( ) const

Definition at line 151 of file QueryableVectorImpl.h.

                                                         {
  return m_data->back().first;
}
template<class Tp >
ora::Range< Tp >::iterator ora::Range< Tp >::begin ( void  ) const

Definition at line 127 of file QueryableVectorImpl.h.

                                                                            {
  return RangeIterator<Tp>(m_data->begin());
}
template<class Tp >
ora::Range< Tp >::iterator ora::Range< Tp >::end ( void  ) const

Definition at line 131 of file QueryableVectorImpl.h.

                                                                          {
  return RangeIterator<Tp>(m_data->end());
}
template<class Tp >
size_t ora::Range< Tp >::frontIndex ( ) const

Definition at line 147 of file QueryableVectorImpl.h.

                                                          {
  return m_data->front().first;
}
template<class Tp >
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;
}
template<class Tp >
ora::Range< Tp >::reverse_iterator ora::Range< Tp >::rbegin ( ) const

Definition at line 135 of file QueryableVectorImpl.h.

                                                                                     {
  return RangeReverseIterator<Tp>(m_data->rbegin());
}
template<class Tp >
ora::Range< Tp >::reverse_iterator ora::Range< Tp >::rend ( ) const

Definition at line 139 of file QueryableVectorImpl.h.

                                                                                   {
  return RangeReverseIterator<Tp>(m_data->rend());
}
template<class Tp >
size_t ora::Range< Tp >::size ( void  ) const

Definition at line 143 of file QueryableVectorImpl.h.

                                                    {
  return m_data->size();
}

Member Data Documentation

template<typename Tp>
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=().