CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

ora::RangeIterator< Tp > Class Template Reference

#include <QueryableVector.h>

List of all members.

Public Types

typedef std::vector< std::pair
< size_t, Tp >
>::const_iterator 
embedded_iterator

Public Member Functions

size_t index () const
bool operator!= (const RangeIterator &rhs) const
const Tp & operator* () const
RangeIterator operator+ (int i)
RangeIterator operator++ (int)
RangeIteratoroperator++ ()
RangeIterator operator- (int i)
const Tp * operator-> () const
RangeIteratoroperator= (const RangeIterator &rhs)
bool operator== (const RangeIterator &rhs) const
 RangeIterator (const RangeIterator &rhs)
 RangeIterator (embedded_iterator vectorIterator)
virtual ~RangeIterator ()

Private Attributes

embedded_iterator m_vecIterator

Detailed Description

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

Definition at line 37 of file QueryableVector.h.


Member Typedef Documentation

template<typename Tp>
typedef std::vector<std::pair<size_t,Tp> >::const_iterator ora::RangeIterator< Tp >::embedded_iterator

Definition at line 39 of file QueryableVector.h.


Constructor & Destructor Documentation

template<typename Tp>
ora::RangeIterator< Tp >::RangeIterator ( embedded_iterator  vectorIterator)
template<class Tp >
ora::RangeIterator< Tp >::RangeIterator ( const RangeIterator< Tp > &  rhs)

Definition at line 9 of file QueryableVectorImpl.h.

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

Definition at line 16 of file QueryableVectorImpl.h.

                                                        {
}

Member Function Documentation

template<class Tp >
size_t ora::RangeIterator< Tp >::index ( ) const

Definition at line 45 of file QueryableVectorImpl.h.

                                                             {
  return m_vecIterator->first;
}
template<class Tp >
bool ora::RangeIterator< Tp >::operator!= ( const RangeIterator< Tp > &  rhs) const

Definition at line 23 of file QueryableVectorImpl.h.

References ora::RangeIterator< Tp >::m_vecIterator.

                                                                                                 {
  return m_vecIterator != rhs.m_vecIterator;
}
template<class Tp >
const Tp & ora::RangeIterator< Tp >::operator* ( ) const

Definition at line 53 of file QueryableVectorImpl.h.

                                                                    { 
  return m_vecIterator->second; 
}
template<class Tp >
ora::RangeIterator< Tp > ora::RangeIterator< Tp >::operator+ ( int  i)

Definition at line 37 of file QueryableVectorImpl.h.

                                                                             {
  return RangeIterator(this->operator+(i));
}
template<class Tp >
ora::RangeIterator< Tp > & ora::RangeIterator< Tp >::operator++ ( )

Definition at line 27 of file QueryableVectorImpl.h.

                                                                          {
  ++m_vecIterator;
  return *this;
}
template<class Tp >
ora::RangeIterator< Tp > ora::RangeIterator< Tp >::operator++ ( int  )

Definition at line 32 of file QueryableVectorImpl.h.

                                                                            {
  this->operator++();
  return *this;
}
template<class Tp >
ora::RangeIterator< Tp > ora::RangeIterator< Tp >::operator- ( int  i)

Definition at line 41 of file QueryableVectorImpl.h.

                                                                             {
  return RangeIterator(this->operator-(i));
}
template<class Tp >
const Tp * ora::RangeIterator< Tp >::operator-> ( ) const

Definition at line 49 of file QueryableVectorImpl.h.

                                                                     { 
  return &m_vecIterator->second; 
}
template<class Tp >
ora::RangeIterator< Tp > & ora::RangeIterator< Tp >::operator= ( const RangeIterator< Tp > &  rhs)

Definition at line 12 of file QueryableVectorImpl.h.

References ora::RangeIterator< Tp >::m_vecIterator.

                                                                                                          {
   m_vecIterator = rhs.m_vecIterator;
}
template<class Tp >
bool ora::RangeIterator< Tp >::operator== ( const RangeIterator< Tp > &  rhs) const

Definition at line 19 of file QueryableVectorImpl.h.

References ora::RangeIterator< Tp >::m_vecIterator.

                                                                                                {
  return m_vecIterator == rhs.m_vecIterator;
}

Member Data Documentation

template<typename Tp>
embedded_iterator ora::RangeIterator< Tp >::m_vecIterator [private]