CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< DetGroupElement
Base
 
typedef
DetGroupElement::DetWithState 
DetWithState
 

Public Member Functions

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

Private Attributes

int index_
 
int indexSize_
 

Detailed Description

Definition at line 48 of file DetGroup.h.

Member Typedef Documentation

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

Definition at line 51 of file DetGroup.h.

Definition at line 52 of file DetGroup.h.

Constructor & Destructor Documentation

DetGroup::DetGroup ( )
inline

Definition at line 54 of file DetGroup.h.

54 {}
DetGroup::DetGroup ( DetGroup const &  rhs)
inline

Definition at line 55 of file DetGroup.h.

55 : Base(rhs), index_(rhs.index_), indexSize_(rhs.indexSize_) {}
std::vector< DetGroupElement > Base
Definition: DetGroup.h:51
int indexSize_
Definition: DetGroup.h:95
int index_
Definition: DetGroup.h:94
DetGroup::DetGroup ( DetGroup &&  rhs)
inline

Definition at line 56 of file DetGroup.h.

56 : Base(std::forward<Base>(rhs)), index_(rhs.index_), indexSize_(rhs.indexSize_) {}
std::vector< DetGroupElement > Base
Definition: DetGroup.h:51
int indexSize_
Definition: DetGroup.h:95
int index_
Definition: DetGroup.h:94
DetGroup::DetGroup ( int  ind,
int  indSize 
)
inline

Definition at line 71 of file DetGroup.h.

71 : index_(ind), indexSize_(indSize) {}
int indexSize_
Definition: DetGroup.h:95
int index_
Definition: DetGroup.h:94
DetGroup::DetGroup ( const std::vector< DetWithState > &  vec)
inline

Definition at line 73 of file DetGroup.h.

References i.

73  {
74  reserve( vec.size());
75  for (std::vector<DetWithState>::const_iterator i=vec.begin(); i!=vec.end(); i++) {
76  push_back(DetGroupElement(*i));
77  }
78  }
int i
Definition: DBlmapReader.cc:9

Member Function Documentation

void DetGroup::incrementIndex ( int  incr)
inline

Definition at line 86 of file DetGroup.h.

References index_, and indexSize_.

86  {
87  // for (iterator i=begin(); i!=end(); i++) i->incrementIndex(incr);
88  index_ += incr;
89  indexSize_ += incr;
90  }
int indexSize_
Definition: DetGroup.h:95
int index_
Definition: DetGroup.h:94
int DetGroup::index ( ) const
inline

Definition at line 80 of file DetGroup.h.

References index_.

Referenced by BeautifulSoup.PageElement::_invert().

80 {return index_;}
int index_
Definition: DetGroup.h:94
int DetGroup::indexSize ( ) const
inline

Definition at line 82 of file DetGroup.h.

References indexSize_.

82 {return indexSize_;}
int indexSize_
Definition: DetGroup.h:95
DetGroup& DetGroup::operator= ( DetGroup const &  rhs)
inline

Definition at line 57 of file DetGroup.h.

References index_, and indexSize_.

57  {
58  Base::operator=(rhs);
59  index_ = rhs.index_;
60  indexSize_ = rhs.indexSize_;
61  return *this;
62  }
int indexSize_
Definition: DetGroup.h:95
int index_
Definition: DetGroup.h:94
DetGroup& DetGroup::operator= ( DetGroup &&  rhs)
inline

Definition at line 63 of file DetGroup.h.

References index_, and indexSize_.

63  {
64  Base::operator=(std::forward<Base>(rhs));
65  index_ = rhs.index_;
66  indexSize_ = rhs.indexSize_;
67  return *this;
68  }
int indexSize_
Definition: DetGroup.h:95
int index_
Definition: DetGroup.h:94
void DetGroup::setIndexSize ( int  newSize)
inline

Definition at line 84 of file DetGroup.h.

References indexSize_.

84 {indexSize_ = newSize;}
int indexSize_
Definition: DetGroup.h:95

Member Data Documentation

int DetGroup::index_
private

Definition at line 94 of file DetGroup.h.

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

int DetGroup::indexSize_
private

Definition at line 95 of file DetGroup.h.

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