CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::CIterator< Tp > Class Template Reference

#include <QueryableVectorData.h>

List of all members.

Public Member Functions

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

Private Attributes

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

Detailed Description

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

Definition at line 87 of file QueryableVectorData.h.


Constructor & Destructor Documentation

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

Definition at line 90 of file QueryableVectorData.h.

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

Definition at line 93 of file QueryableVectorData.h.

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

Definition at line 100 of file QueryableVectorData.h.

                        {
    }

Member Function Documentation

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

Definition at line 121 of file QueryableVectorData.h.

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

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

Definition at line 107 of file QueryableVectorData.h.

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

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

Definition at line 126 of file QueryableVectorData.h.

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

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

Definition at line 111 of file QueryableVectorData.h.

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

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

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

Definition at line 116 of file QueryableVectorData.h.

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

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

Definition at line 125 of file QueryableVectorData.h.

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

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

Definition at line 96 of file QueryableVectorData.h.

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

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

Definition at line 103 of file QueryableVectorData.h.

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

                                                 {
      return m_vecIterator == rhs.m_vecIterator;
    }

Member Data Documentation

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