CMS 3D CMS Logo

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, Fiterator
 
typedef value_type::key_type key_type
 
typedef std::vector< key_type >::const_iterator keyIter
 
typedef std::vector< void const * >::const_iterator MemberIter
 
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 (RefVector< C, T, F > const *refVector, typename RefVector< C, T, F >::size_type iter)
 
 RefVectorIterator (RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const *refVector, typename RefVector< C, T, F >::size_type iter)
 

Private Attributes

RefVector< C, T, F >::size_type iter_
 
RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const * nestedRefVector_
 
RefVector< C, T, F > const * refVector_
 

Detailed Description

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
class edm::RefVectorIterator< C, T, F >

Definition at line 33 of file EDProductfwd.h.

Member Typedef Documentation

◆ const_reference

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

Definition at line 23 of file RefVectorIterator.h.

◆ difference

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
typedef std::ptrdiff_t edm::RefVectorIterator< C, T, F >::difference

Definition at line 29 of file RefVectorIterator.h.

◆ iterator

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

Definition at line 28 of file RefVectorIterator.h.

◆ key_type

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

Definition at line 26 of file RefVectorIterator.h.

◆ keyIter

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

Definition at line 30 of file RefVectorIterator.h.

◆ MemberIter

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
typedef std::vector<void const*>::const_iterator edm::RefVectorIterator< C, T, F >::MemberIter

Definition at line 31 of file RefVectorIterator.h.

◆ reference

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
typedef const_reference edm::RefVectorIterator< C, T, F >::reference

Definition at line 24 of file RefVectorIterator.h.

◆ value_type

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

Definition at line 22 of file RefVectorIterator.h.

Constructor & Destructor Documentation

◆ RefVectorIterator() [1/3]

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
edm::RefVectorIterator< C, T, F >::RefVectorIterator ( )
inline

Definition at line 33 of file RefVectorIterator.h.

33 : refVector_(nullptr), nestedRefVector_(nullptr), iter_(0) {}
RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const * nestedRefVector_
RefVector< C, T, F > const * refVector_
RefVector< C, T, F >::size_type iter_

◆ RefVectorIterator() [2/3]

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
edm::RefVectorIterator< C, T, F >::RefVectorIterator ( RefVector< C, T, F > const *  refVector,
typename RefVector< C, T, F >::size_type  iter 
)
inlineexplicit

Definition at line 35 of file RefVectorIterator.h.

36  : refVector_(refVector), nestedRefVector_(nullptr), iter_(iter) {}
RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const * nestedRefVector_
RefVector< C, T, F > const * refVector_
RefVector< C, T, F >::size_type iter_

◆ RefVectorIterator() [3/3]

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
edm::RefVectorIterator< C, T, F >::RefVectorIterator ( RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const *  refVector,
typename RefVector< C, T, F >::size_type  iter 
)
inlineexplicit

Definition at line 38 of file RefVectorIterator.h.

41  : refVector_(nullptr), nestedRefVector_(refVector), iter_(iter) {}
RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const * nestedRefVector_
RefVector< C, T, F > const * refVector_
RefVector< C, T, F >::size_type iter_

Member Function Documentation

◆ key()

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
key_type edm::RefVectorIterator< C, T, F >::key ( ) const
inline

Definition at line 116 of file RefVectorIterator.h.

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

116  {
117  if (refVector_)
118  return (*refVector_)[iter_].key();
119  return (*nestedRefVector_)[iter_].key();
120  }
RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const * nestedRefVector_
RefVector< C, T, F > const * refVector_
RefVector< C, T, F >::size_type iter_

◆ operator!=()

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

Definition at line 110 of file RefVectorIterator.h.

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

110 { return this->iter_ != rhs.iter_; }
RefVector< C, T, F >::size_type iter_

◆ operator*()

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
reference edm::RefVectorIterator< C, T, F >::operator* ( ) const
inline

Definition at line 43 of file RefVectorIterator.h.

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

43  {
44  if (refVector_)
45  return (*refVector_)[iter_];
46  return (*nestedRefVector_)[iter_];
47  }
RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const * nestedRefVector_
RefVector< C, T, F > const * refVector_
RefVector< C, T, F >::size_type iter_

◆ operator+()

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
iterator edm::RefVectorIterator< C, T, F >::operator+ ( difference  n) const
inline

Definition at line 96 of file RefVectorIterator.h.

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

96  {
97  iterator it(*this);
98  it.iter_ += n;
99  return it;
100  }
RefVectorIterator< C, T, F > iterator

◆ operator++() [1/2]

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
iterator& edm::RefVectorIterator< C, T, F >::operator++ ( )
inline

Definition at line 69 of file RefVectorIterator.h.

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

69  {
70  ++iter_;
71  return *this;
72  }
RefVector< C, T, F >::size_type iter_

◆ operator++() [2/2]

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
iterator edm::RefVectorIterator< C, T, F >::operator++ ( int  )
inline

Definition at line 86 of file RefVectorIterator.h.

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

86  {
87  iterator it(*this);
88  ++iter_;
89  return it;
90  }
RefVectorIterator< C, T, F > iterator
RefVector< C, T, F >::size_type iter_

◆ operator+=()

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
iterator& edm::RefVectorIterator< C, T, F >::operator+= ( difference  n)
inline

Definition at line 77 of file RefVectorIterator.h.

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

77  {
78  iter_ += n;
79  return *this;
80  }
RefVector< C, T, F >::size_type iter_

◆ operator-() [1/2]

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
iterator edm::RefVectorIterator< C, T, F >::operator- ( difference  n) const
inline

Definition at line 101 of file RefVectorIterator.h.

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

101  {
102  iterator it(*this);
103  it.iter_ -= n;
104  return it;
105  }
RefVectorIterator< C, T, F > iterator

◆ operator-() [2/2]

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
difference edm::RefVectorIterator< C, T, F >::operator- ( iterator const &  rhs) const
inline

Definition at line 107 of file RefVectorIterator.h.

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

107 { return this->iter_ - rhs.iter_; }
RefVector< C, T, F >::size_type iter_

◆ operator--() [1/2]

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
iterator& edm::RefVectorIterator< C, T, F >::operator-- ( )
inline

Definition at line 73 of file RefVectorIterator.h.

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

73  {
74  --iter_;
75  return *this;
76  }
RefVector< C, T, F >::size_type iter_

◆ operator--() [2/2]

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
iterator edm::RefVectorIterator< C, T, F >::operator-- ( int  )
inline

Definition at line 91 of file RefVectorIterator.h.

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

91  {
92  iterator it(*this);
93  --iter_;
94  return it;
95  }
RefVectorIterator< C, T, F > iterator
RefVector< C, T, F >::size_type iter_

◆ operator-=()

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
iterator& edm::RefVectorIterator< C, T, F >::operator-= ( difference  n)
inline

Definition at line 81 of file RefVectorIterator.h.

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

81  {
82  iter_ -= n;
83  return *this;
84  }
RefVector< C, T, F >::size_type iter_

◆ operator->()

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
RefProxy edm::RefVectorIterator< C, T, F >::operator-> ( ) const
inline

Definition at line 64 of file RefVectorIterator.h.

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

64  {
65  if (refVector_)
66  return RefProxy(value_type((*refVector_)[iter_]));
67  return RefProxy(value_type((*nestedRefVector_)[iter_]));
68  }
RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const * nestedRefVector_
RefVector< C, T, F > const * refVector_
RefVector< C, T, F >::size_type iter_

◆ operator<()

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

Definition at line 111 of file RefVectorIterator.h.

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

111 { return this->iter_ < rhs.iter_; }
RefVector< C, T, F >::size_type iter_

◆ operator<=()

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

Definition at line 113 of file RefVectorIterator.h.

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

113 { return this->iter_ <= rhs.iter_; }
RefVector< C, T, F >::size_type iter_

◆ operator==()

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

Definition at line 109 of file RefVectorIterator.h.

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

109 { return this->iter_ == rhs.iter_; }
RefVector< C, T, F >::size_type iter_

◆ operator>()

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

Definition at line 112 of file RefVectorIterator.h.

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

112 { return this->iter_ > rhs.iter_; }
RefVector< C, T, F >::size_type iter_

◆ operator>=()

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

Definition at line 114 of file RefVectorIterator.h.

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

114 { return this->iter_ >= rhs.iter_; }
RefVector< C, T, F >::size_type iter_

◆ operator[]()

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
reference edm::RefVectorIterator< C, T, F >::operator[] ( difference  n) const
inline

Definition at line 48 of file RefVectorIterator.h.

References edm::RefVectorIterator< C, T, F >::iter_, dqmiolumiharvest::j, dqmiodumpmetadata::n, edm::RefVectorIterator< C, T, F >::nestedRefVector_, and edm::RefVectorIterator< C, T, F >::refVector_.

48  {
50  if (refVector_)
51  return (*refVector_)[j];
52  return (*nestedRefVector_)[j];
53  }
RefVector< RefVector< C, T, F >, T, typename refhelper::FindTrait< RefVector< C, T, F >, T >::value > const * nestedRefVector_
KeyVec::size_type size_type
Definition: RefVector.h:48
RefVector< C, T, F > const * refVector_
RefVector< C, T, F >::size_type iter_

Member Data Documentation

◆ iter_

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
RefVector<C, T, F>::size_type edm::RefVectorIterator< C, T, F >::iter_
private

◆ nestedRefVector_

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
RefVector<RefVector<C, T, F>, T, typename refhelper::FindTrait<RefVector<C, T, F>, T>::value> const* edm::RefVectorIterator< C, T, F >::nestedRefVector_
private

◆ refVector_

template<typename C, typename T = typename Ref<C>::value_type, typename F = typename Ref<C>::finder_type>
RefVector<C, T, F> const* edm::RefVectorIterator< C, T, F >::refVector_
private