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 (int ind, int indSize)
 
 DetGroup (const std::vector< DetWithState > &vec)
 
void incrementIndex (int incr)
 
int index () const
 
int indexSize () const
 
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 ( int  ind,
int  indSize 
)
inline

Definition at line 73 of file DetGroup.h.

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

Definition at line 75 of file DetGroup.h.

References i.

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

Member Function Documentation

void DetGroup::incrementIndex ( int  incr)
inline

Definition at line 88 of file DetGroup.h.

References index_, and indexSize_.

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

Definition at line 82 of file DetGroup.h.

References index_.

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

Definition at line 84 of file DetGroup.h.

References indexSize_.

84 {return indexSize_;}
int indexSize_
Definition: DetGroup.h:97
void DetGroup::setIndexSize ( int  newSize)
inline

Definition at line 86 of file DetGroup.h.

References indexSize_.

86 {indexSize_ = newSize;}
int indexSize_
Definition: DetGroup.h:97

Member Data Documentation

int DetGroup::index_
private

Definition at line 96 of file DetGroup.h.

Referenced by incrementIndex(), and index().

int DetGroup::indexSize_
private

Definition at line 97 of file DetGroup.h.

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