CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
edm::PtrVectorItr< T > Class Template Reference

#include <PtrVector.h>

Inheritance diagram for edm::PtrVectorItr< T >:

Public Types

typedef std::iterator< std::random_access_iterator_tag, Ptr< T > >::difference_type difference_type
 
typedef PtrVectorItr< Titerator
 
typedef Ptr< T > const reference
 

Public Member Functions

bool operator!= (iterator const &rhs) const
 
Ptr< T > const operator* () const
 
iterator operator+ (difference_type n) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator+= (difference_type n)
 
iterator operator- (difference_type n) const
 
difference_type operator- (iterator const &rhs) const
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iteratoroperator-= (difference_type n)
 
PtrHolder< Toperator-> () const
 
bool operator< (iterator const &rhs) const
 
bool operator<= (iterator const &rhs) const
 
bool operator== (iterator const &rhs) const
 
bool operator> (iterator const &rhs) const
 
bool operator>= (iterator const &rhs) const
 
Ptr< T > const operator[] (difference_type n) const
 
 PtrVectorItr (std::vector< void const * >::const_iterator const &iItr, PtrVector< T > const *iBase)
 

Private Attributes

PtrVector< T > const * base_
 
std::vector< void const * >::const_iterator iter_
 

Detailed Description

template<typename T>
class edm::PtrVectorItr< T >

Definition at line 54 of file PtrVector.h.

Member Typedef Documentation

template<typename T >
typedef std::iterator<std::random_access_iterator_tag, Ptr<T> >::difference_type edm::PtrVectorItr< T >::difference_type

Definition at line 59 of file PtrVector.h.

template<typename T >
typedef PtrVectorItr<T> edm::PtrVectorItr< T >::iterator

Definition at line 58 of file PtrVector.h.

template<typename T >
typedef Ptr<T> const edm::PtrVectorItr< T >::reference

Definition at line 56 of file PtrVector.h.

Constructor & Destructor Documentation

template<typename T >
edm::PtrVectorItr< T >::PtrVectorItr ( std::vector< void const * >::const_iterator const &  iItr,
PtrVector< T > const *  iBase 
)
inline

Definition at line 61 of file PtrVector.h.

62  :
63  iter_(iItr),
64  base_(iBase) {}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
PtrVector< T > const * base_
Definition: PtrVector.h:100

Member Function Documentation

template<typename T >
bool edm::PtrVectorItr< T >::operator!= ( iterator const &  rhs) const
inline

Definition at line 92 of file PtrVector.h.

References edm::PtrVectorItr< T >::iter_.

92 {return this->iter_ != rhs.iter_;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
Ptr<T> const edm::PtrVectorItr< T >::operator* ( ) const
inline

Definition at line 66 of file PtrVector.h.

66  {
67  return base_->fromItr(iter_);
68  }
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
PtrVector< T > const * base_
Definition: PtrVector.h:100
template<typename T >
iterator edm::PtrVectorItr< T >::operator+ ( difference_type  n) const
inline

Definition at line 86 of file PtrVector.h.

References edm::PtrVectorItr< T >::iter_, and gen::n.

86 {iterator it(*this); it.iter_+=n; return it;}
PtrVectorItr< T > iterator
Definition: PtrVector.h:58
template<typename T >
iterator& edm::PtrVectorItr< T >::operator++ ( )
inline

Definition at line 79 of file PtrVector.h.

79 {++iter_; return *this;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
iterator edm::PtrVectorItr< T >::operator++ ( int  )
inline

Definition at line 84 of file PtrVector.h.

84 {iterator it(*this); ++iter_; return it;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
PtrVectorItr< T > iterator
Definition: PtrVector.h:58
template<typename T >
iterator& edm::PtrVectorItr< T >::operator+= ( difference_type  n)
inline

Definition at line 81 of file PtrVector.h.

References gen::n.

81 {iter_ += n; return *this;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
iterator edm::PtrVectorItr< T >::operator- ( difference_type  n) const
inline

Definition at line 87 of file PtrVector.h.

References edm::PtrVectorItr< T >::iter_, and gen::n.

87 {iterator it(*this); it.iter_-=n; return it;}
PtrVectorItr< T > iterator
Definition: PtrVector.h:58
template<typename T >
difference_type edm::PtrVectorItr< T >::operator- ( iterator const &  rhs) const
inline

Definition at line 89 of file PtrVector.h.

References edm::PtrVectorItr< T >::iter_.

89 {return this->iter_ - rhs.iter_;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
iterator& edm::PtrVectorItr< T >::operator-- ( )
inline

Definition at line 80 of file PtrVector.h.

80 {--iter_; return *this;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
iterator edm::PtrVectorItr< T >::operator-- ( int  )
inline

Definition at line 85 of file PtrVector.h.

85 {iterator it(*this); --iter_; return it;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
PtrVectorItr< T > iterator
Definition: PtrVector.h:58
template<typename T >
iterator& edm::PtrVectorItr< T >::operator-= ( difference_type  n)
inline

Definition at line 82 of file PtrVector.h.

References gen::n.

82 {iter_ -= n; return *this;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
PtrHolder<T> edm::PtrVectorItr< T >::operator-> ( ) const
inline

Definition at line 75 of file PtrVector.h.

References edm::PtrHolder< T >::operator*().

75  {
76  return PtrHolder<T>( this->operator*() );
77  }
Ptr< T > const operator*() const
Definition: PtrVector.h:66
template<typename T >
bool edm::PtrVectorItr< T >::operator< ( iterator const &  rhs) const
inline

Definition at line 93 of file PtrVector.h.

References edm::PtrVectorItr< T >::iter_.

93 {return this->iter_ < rhs.iter_;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
bool edm::PtrVectorItr< T >::operator<= ( iterator const &  rhs) const
inline

Definition at line 95 of file PtrVector.h.

References edm::PtrVectorItr< T >::iter_.

95 {return this->iter_ <= rhs.iter_;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
bool edm::PtrVectorItr< T >::operator== ( iterator const &  rhs) const
inline

Definition at line 91 of file PtrVector.h.

References edm::PtrVectorItr< T >::iter_.

91 {return this->iter_ == rhs.iter_;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
bool edm::PtrVectorItr< T >::operator> ( iterator const &  rhs) const
inline

Definition at line 94 of file PtrVector.h.

References edm::PtrVectorItr< T >::iter_.

94 {return this->iter_ > rhs.iter_;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
bool edm::PtrVectorItr< T >::operator>= ( iterator const &  rhs) const
inline

Definition at line 96 of file PtrVector.h.

References edm::PtrVectorItr< T >::iter_.

96 {return this->iter_ >= rhs.iter_;}
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
template<typename T >
Ptr<T> const edm::PtrVectorItr< T >::operator[] ( difference_type  n) const
inline

Definition at line 70 of file PtrVector.h.

70  { // Otherwise the
71  return base_->fromItr(iter_+n); // boost::range
72  } // doesn't have []
std::vector< void const * >::const_iterator iter_
Definition: PtrVector.h:99
PtrVector< T > const * base_
Definition: PtrVector.h:100

Member Data Documentation

template<typename T >
PtrVector<T> const* edm::PtrVectorItr< T >::base_
private

Definition at line 100 of file PtrVector.h.

template<typename T >
std::vector<void const*>::const_iterator edm::PtrVectorItr< T >::iter_
private