test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
ora::RangeIterator< Tp > Class Template Reference

#include <QueryableVector.h>

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)
 
RangeIteratoroperator++ ()
 
RangeIterator operator++ (int)
 
RangeIterator operator- (int i)
 
const Tp * operator-> () const
 
RangeIteratoroperator= (const RangeIterator &rhs)
 
bool operator== (const RangeIterator &rhs) const
 
 RangeIterator (embedded_iterator vectorIterator)
 
 RangeIterator (const RangeIterator &rhs)
 
virtual ~RangeIterator ()
 

Private Attributes

embedded_iterator m_vecIterator
 

Detailed Description

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

Definition at line 35 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 37 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.

9  :m_vecIterator(rhs.m_vecIterator){
10 }
embedded_iterator m_vecIterator
template<class Tp >
ora::RangeIterator< Tp >::~RangeIterator ( )
virtual

Definition at line 16 of file QueryableVectorImpl.h.

16  {
17 }

Member Function Documentation

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

Definition at line 45 of file QueryableVectorImpl.h.

Referenced by BeautifulSoup.PageElement::_invert().

45  {
46  return m_vecIterator->first;
47 }
embedded_iterator m_vecIterator
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.

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

Definition at line 53 of file QueryableVectorImpl.h.

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

Definition at line 37 of file QueryableVectorImpl.h.

37  {
38  return RangeIterator(this->operator+(i));
39 }
int i
Definition: DBlmapReader.cc:9
RangeIterator(embedded_iterator vectorIterator)
template<class Tp >
ora::RangeIterator< Tp > & ora::RangeIterator< Tp >::operator++ ( )

Definition at line 27 of file QueryableVectorImpl.h.

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

Definition at line 32 of file QueryableVectorImpl.h.

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

Definition at line 41 of file QueryableVectorImpl.h.

41  {
42  return RangeIterator(this->operator-(i));
43 }
int i
Definition: DBlmapReader.cc:9
RangeIterator(embedded_iterator vectorIterator)
template<class Tp >
const Tp * ora::RangeIterator< Tp >::operator-> ( ) const

Definition at line 49 of file QueryableVectorImpl.h.

49  {
50  return &m_vecIterator->second;
51 }
embedded_iterator m_vecIterator
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.

12  {
13  m_vecIterator = rhs.m_vecIterator;
14 }
embedded_iterator 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.

19  {
20  return m_vecIterator == rhs.m_vecIterator;
21 }
embedded_iterator m_vecIterator

Member Data Documentation

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