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
edm::RefVectorIterator< C, T, F > Class Template Reference

#include <EDProductfwd.h>

Inheritance diagram for edm::RefVectorIterator< C, T, F >:

Public Types

typedef Ref< C, T, F > const const_reference
 
typedef std::ptrdiff_t difference
 
typedef RefVectorIterator< C,
T, F
iterator
 
typedef value_type::key_type key_type
 
typedef std::vector< key_type >
::const_iterator 
keyIter
 
typedef const_reference reference
 
typedef Ref< C, T, Fvalue_type
 

Public Member Functions

bool operator!= (iterator const &rhs) const
 
reference operator* () const
 
iterator operator+ (difference n) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator+= (difference n)
 
iterator operator- (difference n) const
 
difference operator- (iterator const &rhs) const
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iteratoroperator-= (difference n)
 
std::auto_ptr< value_typeoperator-> () 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
 
reference operator[] (difference n) const
 
 RefVectorIterator ()
 
 RefVectorIterator (RefCore const &product, keyIter const &it)
 

Private Attributes

keyIter iter_
 
RefCore product_
 

Detailed Description

template<typename C, typename T, typename F>
class edm::RefVectorIterator< C, T, F >

Definition at line 28 of file EDProductfwd.h.

Member Typedef Documentation

template<typename C, typename T, typename F>
typedef Ref<C, T, F> const edm::RefVectorIterator< C, T, F >::const_reference

Definition at line 22 of file RefVectorIterator.h.

template<typename C, typename T, typename F>
typedef std::ptrdiff_t edm::RefVectorIterator< C, T, F >::difference

Definition at line 28 of file RefVectorIterator.h.

template<typename C, typename T, typename F>
typedef RefVectorIterator<C, T, F> edm::RefVectorIterator< C, T, F >::iterator

Definition at line 27 of file RefVectorIterator.h.

template<typename C, typename T, typename F>
typedef value_type::key_type edm::RefVectorIterator< C, T, F >::key_type

Definition at line 25 of file RefVectorIterator.h.

template<typename C, typename T, typename F>
typedef std::vector<key_type>::const_iterator edm::RefVectorIterator< C, T, F >::keyIter

Definition at line 29 of file RefVectorIterator.h.

template<typename C, typename T, typename F>
typedef const_reference edm::RefVectorIterator< C, T, F >::reference

Definition at line 23 of file RefVectorIterator.h.

template<typename C, typename T, typename F>
typedef Ref<C, T, F> edm::RefVectorIterator< C, T, F >::value_type

Definition at line 21 of file RefVectorIterator.h.

Constructor & Destructor Documentation

template<typename C, typename T, typename F>
edm::RefVectorIterator< C, T, F >::RefVectorIterator ( )
inline

Definition at line 30 of file RefVectorIterator.h.

template<typename C, typename T, typename F>
edm::RefVectorIterator< C, T, F >::RefVectorIterator ( RefCore const &  product,
keyIter const &  it 
)
inlineexplicit

Definition at line 31 of file RefVectorIterator.h.

31  :
32  product_(product), iter_(it) {}

Member Function Documentation

template<typename C, typename T, typename F>
bool edm::RefVectorIterator< C, T, F >::operator!= ( iterator const &  rhs) const
inline

Definition at line 58 of file RefVectorIterator.h.

58 {return this->iter_ != rhs.iter_;}
template<typename C, typename T, typename F>
reference edm::RefVectorIterator< C, T, F >::operator* ( ) const
inline

Definition at line 33 of file RefVectorIterator.h.

33  {
34  key_type const& key = *iter_;
35  return value_type(product_, key);
36  }
list key
Definition: combine.py:13
value_type::key_type key_type
template<typename C, typename T, typename F>
iterator edm::RefVectorIterator< C, T, F >::operator+ ( difference  n) const
inline

Definition at line 52 of file RefVectorIterator.h.

52 {iterator it(*this); it.iter_+=n; return it;}
RefVectorIterator< C, T, F > iterator
template<typename C, typename T, typename F>
iterator& edm::RefVectorIterator< C, T, F >::operator++ ( )
inline

Definition at line 45 of file RefVectorIterator.h.

45 {++iter_; return *this;}
template<typename C, typename T, typename F>
iterator edm::RefVectorIterator< C, T, F >::operator++ ( int  )
inline

Definition at line 50 of file RefVectorIterator.h.

50 {iterator it(*this); ++iter_; return it;}
RefVectorIterator< C, T, F > iterator
template<typename C, typename T, typename F>
iterator& edm::RefVectorIterator< C, T, F >::operator+= ( difference  n)
inline

Definition at line 47 of file RefVectorIterator.h.

47 {iter_ += n; return *this;}
template<typename C, typename T, typename F>
iterator edm::RefVectorIterator< C, T, F >::operator- ( difference  n) const
inline

Definition at line 53 of file RefVectorIterator.h.

53 {iterator it(*this); it.iter_-=n; return it;}
RefVectorIterator< C, T, F > iterator
template<typename C, typename T, typename F>
difference edm::RefVectorIterator< C, T, F >::operator- ( iterator const &  rhs) const
inline

Definition at line 55 of file RefVectorIterator.h.

55 {return this->iter_ - rhs.iter_;}
template<typename C, typename T, typename F>
iterator& edm::RefVectorIterator< C, T, F >::operator-- ( )
inline

Definition at line 46 of file RefVectorIterator.h.

46 {--iter_; return *this;}
template<typename C, typename T, typename F>
iterator edm::RefVectorIterator< C, T, F >::operator-- ( int  )
inline

Definition at line 51 of file RefVectorIterator.h.

51 {iterator it(*this); --iter_; return it;}
RefVectorIterator< C, T, F > iterator
template<typename C, typename T, typename F>
iterator& edm::RefVectorIterator< C, T, F >::operator-= ( difference  n)
inline

Definition at line 48 of file RefVectorIterator.h.

48 {iter_ -= n; return *this;}
template<typename C, typename T, typename F>
std::auto_ptr<value_type> edm::RefVectorIterator< C, T, F >::operator-> ( ) const
inline

Definition at line 41 of file RefVectorIterator.h.

41  {
42  key_type const& key = *iter_;
43  return std::auto_ptr<value_type>(new value_type(product_, key));
44  }
list key
Definition: combine.py:13
value_type::key_type key_type
template<typename C, typename T, typename F>
bool edm::RefVectorIterator< C, T, F >::operator< ( iterator const &  rhs) const
inline

Definition at line 59 of file RefVectorIterator.h.

59 {return this->iter_ < rhs.iter_;}
template<typename C, typename T, typename F>
bool edm::RefVectorIterator< C, T, F >::operator<= ( iterator const &  rhs) const
inline

Definition at line 61 of file RefVectorIterator.h.

61 {return this->iter_ <= rhs.iter_;}
template<typename C, typename T, typename F>
bool edm::RefVectorIterator< C, T, F >::operator== ( iterator const &  rhs) const
inline

Definition at line 57 of file RefVectorIterator.h.

57 {return this->iter_ == rhs.iter_;}
template<typename C, typename T, typename F>
bool edm::RefVectorIterator< C, T, F >::operator> ( iterator const &  rhs) const
inline

Definition at line 60 of file RefVectorIterator.h.

60 {return this->iter_ > rhs.iter_;}
template<typename C, typename T, typename F>
bool edm::RefVectorIterator< C, T, F >::operator>= ( iterator const &  rhs) const
inline

Definition at line 62 of file RefVectorIterator.h.

62 {return this->iter_ >= rhs.iter_;}
template<typename C, typename T, typename F>
reference edm::RefVectorIterator< C, T, F >::operator[] ( difference  n) const
inline

Definition at line 37 of file RefVectorIterator.h.

37  {
38  key_type const& key = iter_[n];
39  return value_type(product_, key);
40  }
list key
Definition: combine.py:13
value_type::key_type key_type

Member Data Documentation

template<typename C, typename T, typename F>
keyIter edm::RefVectorIterator< C, T, F >::iter_
private
template<typename C, typename T, typename F>
RefCore edm::RefVectorIterator< C, T, F >::product_
private