CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::ValueMap< T >::const_iterator Struct Reference

#include <ValueMap.h>

Public Types

typedef ptrdiff_t difference_type
 

Public Member Functions

container::const_iterator begin () const
 
 const_iterator ()
 
container::const_iterator end () const
 
ProductID id () const
 
bool operator!= (const const_iterator &ci) const
 
const_iterator operator+ (difference_type n) const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator+= (difference_type d)
 
difference_type operator- (const const_iterator &o) const
 
const_iterator operator- (difference_type n) const
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
const_iteratoroperator-= (difference_type d)
 
bool operator< (const const_iterator &o) const
 
bool operator== (const const_iterator &ci) const
 
const Toperator[] (size_t i)
 
size_t size () const
 

Private Member Functions

 const_iterator (const id_offset_vector::const_iterator &i_, const id_offset_vector::const_iterator &end, const container *values)
 

Private Attributes

id_offset_vector::const_iterator end_
 
id_offset_vector::const_iterator i_
 
const containervalues_
 

Friends

class ValueMap< T >
 

Detailed Description

template<typename T>
struct edm::ValueMap< T >::const_iterator

Definition at line 171 of file ValueMap.h.

Member Typedef Documentation

template<typename T>
typedef ptrdiff_t edm::ValueMap< T >::const_iterator::difference_type

Definition at line 172 of file ValueMap.h.

Constructor & Destructor Documentation

template<typename T>
edm::ValueMap< T >::const_iterator::const_iterator ( )
inline

Definition at line 173 of file ValueMap.h.

173 :values_(0) {}
const container * values_
Definition: ValueMap.h:203
template<typename T>
edm::ValueMap< T >::const_iterator::const_iterator ( const id_offset_vector::const_iterator &  i_,
const id_offset_vector::const_iterator &  end,
const container values 
)
inlineprivate

Definition at line 199 of file ValueMap.h.

201  :
202  values_(values), i_(i_), end_(end) { }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
id_offset_vector::const_iterator end_
Definition: ValueMap.h:204
const container * values_
Definition: ValueMap.h:203
container::const_iterator end() const
Definition: ValueMap.h:178

Member Function Documentation

template<typename T>
container::const_iterator edm::ValueMap< T >::const_iterator::begin ( void  ) const
inline

Definition at line 175 of file ValueMap.h.

References edm::helper::Filler< Map >::values_.

Referenced by MuIsolatorResultProducer< BT >::initAssociation().

175  {
176  return values_->begin() + i_->second;
177  }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
const container * values_
Definition: ValueMap.h:203
template<typename T>
container::const_iterator edm::ValueMap< T >::const_iterator::end ( void  ) const
inline

Definition at line 178 of file ValueMap.h.

References end, and edm::helper::Filler< Map >::values_.

Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and MuIsolatorResultProducer< BT >::initAssociation().

178  {
179  if(i_ == end_) return values_->end();
180  id_offset_vector::const_iterator end = i_; ++end;
181  if(end == end_) return values_->end();
182  return values_->begin() + end->second;
183  }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
id_offset_vector::const_iterator end_
Definition: ValueMap.h:204
const container * values_
Definition: ValueMap.h:203
container::const_iterator end() const
Definition: ValueMap.h:178
template<typename T>
ProductID edm::ValueMap< T >::const_iterator::id ( ) const
inline

Definition at line 174 of file ValueMap.h.

Referenced by MuIsolatorResultProducer< BT >::initAssociation().

174 { return i_->first; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
bool edm::ValueMap< T >::const_iterator::operator!= ( const const_iterator ci) const
inline

Definition at line 195 of file ValueMap.h.

References edm::ValueMap< T >::const_iterator::i_.

195 { return i_ != ci.i_; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
const_iterator edm::ValueMap< T >::const_iterator::operator+ ( difference_type  n) const
inline

Definition at line 191 of file ValueMap.h.

References edm::helper::Filler< Map >::values_.

191 { return const_iterator(i_ + n, end_, values_); }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
id_offset_vector::const_iterator end_
Definition: ValueMap.h:204
const container * values_
Definition: ValueMap.h:203
template<typename T>
const_iterator& edm::ValueMap< T >::const_iterator::operator++ ( )
inline

Definition at line 186 of file ValueMap.h.

186 { ++i_; return *this; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
const_iterator edm::ValueMap< T >::const_iterator::operator++ ( int  )
inline

Definition at line 187 of file ValueMap.h.

187 { const_iterator ci = *this; ++i_; return ci; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
const_iterator& edm::ValueMap< T >::const_iterator::operator+= ( difference_type  d)
inline

Definition at line 196 of file ValueMap.h.

References edmIntegrityCheck::d.

196 { i_ += d; return *this; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
difference_type edm::ValueMap< T >::const_iterator::operator- ( const const_iterator o) const
inline

Definition at line 190 of file ValueMap.h.

References edm::ValueMap< T >::const_iterator::i_.

190 { return i_ - o.i_; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
const_iterator edm::ValueMap< T >::const_iterator::operator- ( difference_type  n) const
inline

Definition at line 192 of file ValueMap.h.

References edm::helper::Filler< Map >::values_.

192 { return const_iterator(i_ - n, end_, values_); }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
id_offset_vector::const_iterator end_
Definition: ValueMap.h:204
const container * values_
Definition: ValueMap.h:203
template<typename T>
const_iterator& edm::ValueMap< T >::const_iterator::operator-- ( )
inline

Definition at line 188 of file ValueMap.h.

188 { --i_; return *this; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
const_iterator edm::ValueMap< T >::const_iterator::operator-- ( int  )
inline

Definition at line 189 of file ValueMap.h.

189 { const_iterator ci = *this; --i_; return ci; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
const_iterator& edm::ValueMap< T >::const_iterator::operator-= ( difference_type  d)
inline

Definition at line 197 of file ValueMap.h.

References edmIntegrityCheck::d.

197 { i_ -= d; return *this; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
bool edm::ValueMap< T >::const_iterator::operator< ( const const_iterator o) const
inline

Definition at line 193 of file ValueMap.h.

References edm::ValueMap< T >::const_iterator::i_.

193 { return i_ < o.i_; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
bool edm::ValueMap< T >::const_iterator::operator== ( const const_iterator ci) const
inline

Definition at line 194 of file ValueMap.h.

References edm::ValueMap< T >::const_iterator::i_.

194 { return i_ == ci.i_; }
id_offset_vector::const_iterator i_
Definition: ValueMap.h:204
template<typename T>
const T& edm::ValueMap< T >::const_iterator::operator[] ( size_t  i)
inline

Definition at line 185 of file ValueMap.h.

References begin, and mps_fire::i.

185 { return *(begin()+i); }
container::const_iterator begin() const
Definition: ValueMap.h:175
template<typename T>
size_t edm::ValueMap< T >::const_iterator::size ( void  ) const
inline

Definition at line 184 of file ValueMap.h.

References begin, and end.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

184 { return end() - begin(); }
container::const_iterator begin() const
Definition: ValueMap.h:175
container::const_iterator end() const
Definition: ValueMap.h:178

Friends And Related Function Documentation

template<typename T>
friend class ValueMap< T >
friend

Definition at line 205 of file ValueMap.h.

Member Data Documentation

template<typename T>
id_offset_vector::const_iterator edm::ValueMap< T >::const_iterator::end_
private

Definition at line 204 of file ValueMap.h.

template<typename T>
id_offset_vector::const_iterator edm::ValueMap< T >::const_iterator::i_
private
template<typename T>
const container* edm::ValueMap< T >::const_iterator::values_
private

Definition at line 203 of file ValueMap.h.