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 140 of file SeedingLayerSetsHits.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 144 of file SeedingLayerSetsHits.h.

◆ internal_iterator_type

Definition at line 142 of file SeedingLayerSetsHits.h.

◆ value_type

Definition at line 143 of file SeedingLayerSetsHits.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

SeedingLayerSetsHits::const_iterator::const_iterator ( )
inline

Definition at line 146 of file SeedingLayerSetsHits.h.

146 : seedingLayerSets_(nullptr) {}

◆ const_iterator() [2/2]

SeedingLayerSetsHits::const_iterator::const_iterator ( const SeedingLayerSetsHits sls,
internal_iterator_type  iter 
)
inline

Definition at line 147 of file SeedingLayerSetsHits.h.

148  : seedingLayerSets_(sls), iter_(iter) {}

Member Function Documentation

◆ operator!=()

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

Definition at line 165 of file SeedingLayerSetsHits.h.

165 { return !operator==(other); }

References operator==(), and trackingPlots::other.

◆ operator*()

value_type SeedingLayerSetsHits::const_iterator::operator* ( void  ) const
inline

Definition at line 150 of file SeedingLayerSetsHits.h.

150  {
151  return SeedingLayerSet(seedingLayerSets_, iter_, iter_ + seedingLayerSets_->nlayers_);
152  }

References iter_, SeedingLayerSetsHits::nlayers_, and seedingLayerSets_.

◆ operator++() [1/2]

const_iterator& SeedingLayerSetsHits::const_iterator::operator++ ( void  )
inline

Definition at line 154 of file SeedingLayerSetsHits.h.

154  {
155  std::advance(iter_, seedingLayerSets_->nlayers_);
156  return *this;
157  }

References iter_, SeedingLayerSetsHits::nlayers_, and seedingLayerSets_.

◆ operator++() [2/2]

const_iterator SeedingLayerSetsHits::const_iterator::operator++ ( int  )
inline

Definition at line 158 of file SeedingLayerSetsHits.h.

158  {
159  const_iterator clone(*this);
160  ++(*this);
161  return clone;
162  }

References clone().

◆ operator==()

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

Definition at line 164 of file SeedingLayerSetsHits.h.

164 { return iter_ == other.iter_; }

References iter_, and trackingPlots::other.

Referenced by operator!=().

Member Data Documentation

◆ iter_

internal_iterator_type SeedingLayerSetsHits::const_iterator::iter_
private

Definition at line 169 of file SeedingLayerSetsHits.h.

Referenced by operator*(), operator++(), and operator==().

◆ seedingLayerSets_

const SeedingLayerSetsHits* SeedingLayerSetsHits::const_iterator::seedingLayerSets_
private

Definition at line 168 of file SeedingLayerSetsHits.h.

Referenced by operator*(), and operator++().

SeedingLayerSetsHits::const_iterator::operator==
bool operator==(const const_iterator &other) const
Definition: SeedingLayerSetsHits.h:164
SeedingLayerSetsHits::const_iterator::const_iterator
const_iterator()
Definition: SeedingLayerSetsHits.h:146
clone
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
trackingPlots.other
other
Definition: trackingPlots.py:1460
SeedingLayerSetsHits::const_iterator::iter_
internal_iterator_type iter_
Definition: SeedingLayerSetsHits.h:169
SeedingLayerSetsHits::const_iterator::seedingLayerSets_
const SeedingLayerSetsHits * seedingLayerSets_
Definition: SeedingLayerSetsHits.h:168
SeedingLayerSetsHits::nlayers_
unsigned short nlayers_
Number of layers in a SeedingLayerSet.
Definition: SeedingLayerSetsHits.h:230