CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::Iterator< Tp > Class Template Reference

#include <QueryableVectorData.h>

List of all members.

Public Member Functions

size_t index ()
 Iterator (typename ora::PVector< std::pair< size_t, Tp > >::iterator vectorIterator)
 Iterator (const Iterator &rhs)
bool operator!= (const Iterator &rhs) const
Tp & operator* ()
Iterator operator++ (int)
Iteratoroperator++ ()
Tp * operator-> ()
Iteratoroperator= (const Iterator &rhs)
bool operator== (const Iterator &rhs) const
virtual ~Iterator ()

Private Attributes

ora::PVector< std::pair
< size_t, Tp > >::iterator 
m_vecIterator

Detailed Description

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

Definition at line 42 of file QueryableVectorData.h.


Constructor & Destructor Documentation

template<typename Tp >
ora::Iterator< Tp >::Iterator ( typename ora::PVector< std::pair< size_t, Tp > >::iterator  vectorIterator) [inline]

Definition at line 45 of file QueryableVectorData.h.

                                                                              :m_vecIterator(vectorIterator){
    }
template<typename Tp >
ora::Iterator< Tp >::Iterator ( const Iterator< Tp > &  rhs) [inline]

Definition at line 48 of file QueryableVectorData.h.

                                   :m_vecIterator(rhs.m_vecIterator){
    }
template<typename Tp >
virtual ora::Iterator< Tp >::~Iterator ( ) [inline, virtual]

Definition at line 54 of file QueryableVectorData.h.

                       {
    }

Member Function Documentation

template<typename Tp >
size_t ora::Iterator< Tp >::index ( ) [inline]

Definition at line 75 of file QueryableVectorData.h.

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

                  {
      return m_vecIterator->first;
    }
template<typename Tp >
bool ora::Iterator< Tp >::operator!= ( const Iterator< Tp > &  rhs) const [inline]

Definition at line 61 of file QueryableVectorData.h.

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

                                                 {
      return m_vecIterator != rhs.m_vecIterator;
    }
template<typename Tp >
Tp& ora::Iterator< Tp >::operator* ( ) [inline]

Definition at line 80 of file QueryableVectorData.h.

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

{ return m_vecIterator->second; }
template<typename Tp >
Iterator& ora::Iterator< Tp >::operator++ ( ) [inline]

Definition at line 65 of file QueryableVectorData.h.

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

Referenced by ora::Iterator< Tp >::operator++().

                          {
      ++m_vecIterator;
      return *this;
    }
template<typename Tp >
Iterator ora::Iterator< Tp >::operator++ ( int  ) [inline]

Definition at line 70 of file QueryableVectorData.h.

References ora::Iterator< Tp >::operator++().

                            {
      this->operator++();
      return *this;
    }
template<typename Tp >
Tp* ora::Iterator< Tp >::operator-> ( ) [inline]

Definition at line 79 of file QueryableVectorData.h.

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

{ return &m_vecIterator->second; }
template<typename Tp >
Iterator& ora::Iterator< Tp >::operator= ( const Iterator< Tp > &  rhs) [inline]

Definition at line 51 of file QueryableVectorData.h.

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

                                              {
      m_vecIterator = rhs.m_vecIterator;
    }
template<typename Tp >
bool ora::Iterator< Tp >::operator== ( const Iterator< Tp > &  rhs) const [inline]

Definition at line 57 of file QueryableVectorData.h.

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

                                                {
      return m_vecIterator == rhs.m_vecIterator;
    }

Member Data Documentation

template<typename Tp >
ora::PVector<std::pair<size_t, Tp> >::iterator ora::Iterator< Tp >::m_vecIterator [private]