CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
DetGroup Class Reference

#include <DetGroup.h>

Inheritance diagram for DetGroup:

Public Types

typedef std::vector< DetGroupElementBase
 
typedef DetGroupElement::DetWithState DetWithState
 

Public Member Functions

 DetGroup ()
 
 DetGroup (const std::vector< DetWithState > &vec)
 
 DetGroup (DetGroup &&rhs) noexcept
 
 DetGroup (DetGroup const &rhs)
 
 DetGroup (int ind, int indSize)
 
void incrementIndex (int incr)
 
int index () const
 
int indexSize () const
 
DetGroupoperator= (DetGroup &&rhs) noexcept
 
DetGroupoperator= (DetGroup const &rhs)
 
void setIndexSize (int newSize)
 

Private Attributes

int index_
 
int indexSize_
 

Detailed Description

Definition at line 41 of file DetGroup.h.

Member Typedef Documentation

◆ Base

typedef std::vector<DetGroupElement> DetGroup::Base

Definition at line 43 of file DetGroup.h.

◆ DetWithState

Definition at line 44 of file DetGroup.h.

Constructor & Destructor Documentation

◆ DetGroup() [1/5]

DetGroup::DetGroup ( )
inline

Definition at line 46 of file DetGroup.h.

46 {}

◆ DetGroup() [2/5]

DetGroup::DetGroup ( DetGroup const &  rhs)
inline

Definition at line 47 of file DetGroup.h.

47 : Base(rhs), index_(rhs.index_), indexSize_(rhs.indexSize_) {}

◆ DetGroup() [3/5]

DetGroup::DetGroup ( DetGroup &&  rhs)
inlinenoexcept

Definition at line 48 of file DetGroup.h.

48 : Base(std::forward<Base>(rhs)), index_(rhs.index_), indexSize_(rhs.indexSize_) {}

◆ DetGroup() [4/5]

DetGroup::DetGroup ( int  ind,
int  indSize 
)
inline

Definition at line 62 of file DetGroup.h.

62 : index_(ind), indexSize_(indSize) {}

◆ DetGroup() [5/5]

DetGroup::DetGroup ( const std::vector< DetWithState > &  vec)
inline

Definition at line 64 of file DetGroup.h.

64  {
65  reserve(vec.size());
66  for (std::vector<DetWithState>::const_iterator i = vec.begin(); i != vec.end(); i++) {
67  push_back(DetGroupElement(*i));
68  }
69  }

References mps_fire::i.

Member Function Documentation

◆ incrementIndex()

void DetGroup::incrementIndex ( int  incr)
inline

Definition at line 77 of file DetGroup.h.

77  {
78  // for (iterator i=begin(); i!=end(); i++) i->incrementIndex(incr);
79  index_ += incr;
80  indexSize_ += incr;
81  }

References index_, and indexSize_.

◆ index()

int DetGroup::index ( ) const
inline

Definition at line 71 of file DetGroup.h.

71 { return index_; }

References index_.

Referenced by BeautifulSoup.PageElement::insert().

◆ indexSize()

int DetGroup::indexSize ( ) const
inline

Definition at line 73 of file DetGroup.h.

73 { return indexSize_; }

References indexSize_.

◆ operator=() [1/2]

DetGroup& DetGroup::operator= ( DetGroup &&  rhs)
inlinenoexcept

Definition at line 55 of file DetGroup.h.

55  {
56  Base::operator=(std::forward<Base>(rhs));
57  index_ = rhs.index_;
58  indexSize_ = rhs.indexSize_;
59  return *this;
60  }

References index_, and indexSize_.

◆ operator=() [2/2]

DetGroup& DetGroup::operator= ( DetGroup const &  rhs)
inline

Definition at line 49 of file DetGroup.h.

49  {
50  Base::operator=(rhs);
51  index_ = rhs.index_;
52  indexSize_ = rhs.indexSize_;
53  return *this;
54  }

References index_, and indexSize_.

◆ setIndexSize()

void DetGroup::setIndexSize ( int  newSize)
inline

Definition at line 75 of file DetGroup.h.

75 { indexSize_ = newSize; }

References indexSize_.

Member Data Documentation

◆ index_

int DetGroup::index_
private

Definition at line 84 of file DetGroup.h.

Referenced by incrementIndex(), index(), and operator=().

◆ indexSize_

int DetGroup::indexSize_
private

Definition at line 85 of file DetGroup.h.

Referenced by incrementIndex(), indexSize(), operator=(), and setIndexSize().

DetGroup::Base
std::vector< DetGroupElement > Base
Definition: DetGroup.h:43
mps_fire.i
i
Definition: mps_fire.py:355
DetGroupElement
Definition: DetGroup.h:10
DetGroup::index_
int index_
Definition: DetGroup.h:84
DetGroup::indexSize_
int indexSize_
Definition: DetGroup.h:85