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 SeedingLayerSetsHits * seedingLayerSets_

◆ 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) {}
const SeedingLayerSetsHits * seedingLayerSets_

Member Function Documentation

◆ operator!=()

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

Definition at line 165 of file SeedingLayerSetsHits.h.

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

165 { return !operator==(other); }
bool operator==(const const_iterator &other) const

◆ operator*()

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

Definition at line 150 of file SeedingLayerSetsHits.h.

References iter_, SeedingLayerSetsHits::nlayers_, and seedingLayerSets_.

150  {
151  return SeedingLayerSet(seedingLayerSets_, iter_, iter_ + seedingLayerSets_->nlayers_);
152  }
const SeedingLayerSetsHits * seedingLayerSets_
unsigned short nlayers_
Number of layers in a SeedingLayerSet.

◆ operator++() [1/2]

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

Definition at line 154 of file SeedingLayerSetsHits.h.

References iter_, SeedingLayerSetsHits::nlayers_, and seedingLayerSets_.

154  {
155  std::advance(iter_, seedingLayerSets_->nlayers_);
156  return *this;
157  }
const SeedingLayerSetsHits * seedingLayerSets_
unsigned short nlayers_
Number of layers in a SeedingLayerSet.

◆ operator++() [2/2]

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

Definition at line 158 of file SeedingLayerSetsHits.h.

References clone().

158  {
159  const_iterator clone(*this);
160  ++(*this);
161  return clone;
162  }
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135

◆ operator==()

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

Definition at line 164 of file SeedingLayerSetsHits.h.

References iter_, and trackingPlots::other.

Referenced by operator!=().

164 { return iter_ == other.iter_; }

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++().