CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
SeedingLayerSetsHits::const_iterator Class Reference

#include <SeedingLayerSetsHits.h>

Public Types

typedef internal_iterator_type::difference_type difference_type
 
typedef std::vector< LayerSetIndex >::const_iterator internal_iterator_type
 
typedef SeedingLayerSet value_type
 

Public Member Functions

 const_iterator ()
 
 const_iterator (const SeedingLayerSetsHits *sls, internal_iterator_type iter)
 
bool operator!= (const const_iterator &other) const
 
value_type operator* () const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
bool operator== (const const_iterator &other) const
 

Private Attributes

internal_iterator_type iter_
 
const SeedingLayerSetsHitsseedingLayerSets_
 

Detailed Description

Definition at line 138 of file SeedingLayerSetsHits.h.

Member Typedef Documentation

typedef internal_iterator_type::difference_type SeedingLayerSetsHits::const_iterator::difference_type

Definition at line 142 of file SeedingLayerSetsHits.h.

Definition at line 140 of file SeedingLayerSetsHits.h.

Definition at line 141 of file SeedingLayerSetsHits.h.

Constructor & Destructor Documentation

SeedingLayerSetsHits::const_iterator::const_iterator ( )
inline

Definition at line 144 of file SeedingLayerSetsHits.h.

144 : seedingLayerSets_(nullptr) {}
const SeedingLayerSetsHits * seedingLayerSets_
SeedingLayerSetsHits::const_iterator::const_iterator ( const SeedingLayerSetsHits sls,
internal_iterator_type  iter 
)
inline

Definition at line 145 of file SeedingLayerSetsHits.h.

145 : seedingLayerSets_(sls), iter_(iter) {}
const SeedingLayerSetsHits * seedingLayerSets_

Member Function Documentation

bool SeedingLayerSetsHits::const_iterator::operator!= ( const const_iterator other) const
inline

Definition at line 157 of file SeedingLayerSetsHits.h.

References operator==().

157 { return !operator==(other); }
bool operator==(const const_iterator &other) const
value_type SeedingLayerSetsHits::const_iterator::operator* ( void  ) const
inline

Definition at line 147 of file SeedingLayerSetsHits.h.

References SeedingLayerSetsHits::nlayers_, and SeedingLayerSetsHits::SeedingLayer::seedingLayerSets_.

147 { return SeedingLayerSet(seedingLayerSets_, iter_, iter_+seedingLayerSets_->nlayers_); }
const SeedingLayerSetsHits * seedingLayerSets_
unsigned short nlayers_
Number of layers in a SeedingLayerSet.
const_iterator& SeedingLayerSetsHits::const_iterator::operator++ ( void  )
inline

Definition at line 149 of file SeedingLayerSetsHits.h.

References SeedingLayerSetsHits::nlayers_, and SeedingLayerSetsHits::SeedingLayer::seedingLayerSets_.

149 { std::advance(iter_, seedingLayerSets_->nlayers_); return *this; }
const SeedingLayerSetsHits * seedingLayerSets_
unsigned short nlayers_
Number of layers in a SeedingLayerSet.
const_iterator SeedingLayerSetsHits::const_iterator::operator++ ( int  )
inline

Definition at line 150 of file SeedingLayerSetsHits.h.

References clone().

150  {
151  const_iterator clone(*this);
152  ++(*this);
153  return clone;
154  }
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
bool SeedingLayerSetsHits::const_iterator::operator== ( const const_iterator other) const
inline

Definition at line 156 of file SeedingLayerSetsHits.h.

References iter_.

156 { return iter_ == other.iter_; }

Member Data Documentation

internal_iterator_type SeedingLayerSetsHits::const_iterator::iter_
private

Definition at line 161 of file SeedingLayerSetsHits.h.

Referenced by operator==().

const SeedingLayerSetsHits* SeedingLayerSetsHits::const_iterator::seedingLayerSets_
private

Definition at line 160 of file SeedingLayerSetsHits.h.