CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | 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 >:

Classes

class  RefProxy
 

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

key_type key () const
 
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)
 
RefProxy operator-> () 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 27 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>
key_type edm::RefVectorIterator< C, T, F >::key ( ) const
inline
template<typename C, typename T, typename F>
bool edm::RefVectorIterator< C, T, F >::operator!= ( iterator const &  rhs) const
inline

Definition at line 67 of file RefVectorIterator.h.

67 {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  }
key_type key() const
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 61 of file RefVectorIterator.h.

61 {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 54 of file RefVectorIterator.h.

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

Definition at line 59 of file RefVectorIterator.h.

59 {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 56 of file RefVectorIterator.h.

56 {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 62 of file RefVectorIterator.h.

62 {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 64 of file RefVectorIterator.h.

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

Definition at line 55 of file RefVectorIterator.h.

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

Definition at line 60 of file RefVectorIterator.h.

60 {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 57 of file RefVectorIterator.h.

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

Definition at line 50 of file RefVectorIterator.h.

50  {
51  key_type const& key = *iter_;
52  return RefProxy(value_type(product_, key));
53  }
key_type key() const
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 68 of file RefVectorIterator.h.

68 {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 70 of file RefVectorIterator.h.

70 {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 66 of file RefVectorIterator.h.

66 {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 69 of file RefVectorIterator.h.

69 {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 71 of file RefVectorIterator.h.

71 {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  }
key_type key() const
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