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 CIterator< Tp > const_iterator
typedef const Tp & const_reference
typedef CRIterator< Tp > const_reverse_iterator

Public Member Functions

size_t backIndex () const
const_iterator begin () const
const_iterator end () const
size_t frontIndex () const
Rangeoperator= (const Range &rhs)
 Range ()
 Range (boost::shared_ptr< QueryableVectorData< Tp > > &data)
 Range (const Range &rhs)
const_reverse_iterator rbegin () const
const_reverse_iterator rend () const
size_t size () const
virtual ~Range ()

Private Attributes

boost::shared_ptr
< QueryableVectorData< Tp > > 
m_data

Detailed Description

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

Definition at line 11 of file QueryableVector.h.


Member Typedef Documentation

template<typename Tp>
typedef CIterator<Tp> ora::Range< Tp >::const_iterator

Definition at line 15 of file QueryableVector.h.

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

Definition at line 14 of file QueryableVector.h.

template<typename Tp>
typedef CRIterator<Tp> ora::Range< Tp >::const_reverse_iterator

Definition at line 16 of file QueryableVector.h.


Constructor & Destructor Documentation

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

Definition at line 4 of file QueryableVectorImpl.h.

                                       :m_data(new QueryableVectorData<Tp>){
}
template<typename Tp>
ora::Range< Tp >::Range ( boost::shared_ptr< QueryableVectorData< Tp > > &  data) [explicit]
template<class Tp >
ora::Range< Tp >::Range ( const Range< Tp > &  rhs)

Definition at line 10 of file QueryableVectorImpl.h.

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

Definition at line 13 of file QueryableVectorImpl.h.

                                        {
}

Member Function Documentation

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

Definition at line 47 of file QueryableVectorImpl.h.

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

Definition at line 23 of file QueryableVectorImpl.h.

                                                                                  {
  return m_data->cbegin();
}
template<class Tp >
ora::Range< Tp >::const_iterator ora::Range< Tp >::end ( void  ) const

Definition at line 27 of file QueryableVectorImpl.h.

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

Definition at line 43 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 16 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 >::const_reverse_iterator ora::Range< Tp >::rbegin ( ) const

Definition at line 31 of file QueryableVectorImpl.h.

                                                                                           {
  return m_data->crbegin();
}
template<class Tp >
ora::Range< Tp >::const_reverse_iterator ora::Range< Tp >::rend ( ) const

Definition at line 35 of file QueryableVectorImpl.h.

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

Definition at line 39 of file QueryableVectorImpl.h.

                                                    {
  return m_data->size();
}

Member Data Documentation

template<typename Tp>
boost::shared_ptr<QueryableVectorData<Tp> > ora::Range< Tp >::m_data [private]

Definition at line 45 of file QueryableVector.h.

Referenced by ora::Range< Tp >::operator=().