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 23 of file RefVectorIterator.h.

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

Definition at line 29 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 28 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 26 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 30 of file RefVectorIterator.h.

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

Definition at line 24 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 22 of file RefVectorIterator.h.

Constructor & Destructor Documentation

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

Definition at line 31 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 32 of file RefVectorIterator.h.

32  :
33  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 59 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_.

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

Definition at line 34 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_, combine::key, and edm::RefVectorIterator< C, T, F >::product_.

34  {
35  key_type const& key = *iter_;
36  return value_type(product_, key);
37  }
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 53 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_, and n.

53 {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 46 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_.

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.

References edm::RefVectorIterator< C, T, F >::iter_.

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.

References edm::RefVectorIterator< C, T, F >::iter_, and n.

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

References edm::RefVectorIterator< C, T, F >::iter_, and n.

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

References edm::RefVectorIterator< C, T, F >::iter_.

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

Definition at line 47 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_.

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

Definition at line 52 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_.

52 {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 49 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_, and n.

49 {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 42 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_, combine::key, and edm::RefVectorIterator< C, T, F >::product_.

42  {
43  key_type const& key = *iter_;
44  return std::auto_ptr<value_type>(new value_type(product_, key));
45  }
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 60 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_.

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.

References edm::RefVectorIterator< C, T, F >::iter_.

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

References edm::RefVectorIterator< C, T, F >::iter_.

58 {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.

References edm::RefVectorIterator< C, T, F >::iter_.

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 63 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_.

63 {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 38 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_, combine::key, n, and edm::RefVectorIterator< C, T, F >::product_.

38  {
39  key_type const& key = iter_[n];
40  return value_type(product_, key);
41  }
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