CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SiPixel2DTemplateDBObject::Reader Class Reference

#include <SiPixel2DTemplateDBObject.h>

Public Member Functions

bool fail ()
 
void incrementIndex (int i)
 
int index () const
 
Readeroperator>> (int &i)
 
Readeroperator>> (float &f)
 
 Reader (SiPixel2DTemplateDBObject const &object)
 

Private Attributes

int index_
 
bool isInvalid_
 
SiPixel2DTemplateDBObject const & object_
 

Detailed Description

Definition at line 100 of file SiPixel2DTemplateDBObject.h.

Constructor & Destructor Documentation

◆ Reader()

SiPixel2DTemplateDBObject::Reader::Reader ( SiPixel2DTemplateDBObject const &  object)
inline

Member Function Documentation

◆ fail()

bool SiPixel2DTemplateDBObject::Reader::fail ( )
inline

Definition at line 104 of file SiPixel2DTemplateDBObject.h.

References isInvalid_.

◆ incrementIndex()

void SiPixel2DTemplateDBObject::Reader::incrementIndex ( int  i)
inline

Definition at line 108 of file SiPixel2DTemplateDBObject.h.

References mps_fire::i, and index_.

◆ index()

int SiPixel2DTemplateDBObject::Reader::index ( ) const
inline

Definition at line 106 of file SiPixel2DTemplateDBObject.h.

References index_.

Referenced by BeautifulSoup.PageElement::insert().

◆ operator>>() [1/2]

Reader& SiPixel2DTemplateDBObject::Reader::operator>> ( int &  i)
inline

◆ operator>>() [2/2]

Reader& SiPixel2DTemplateDBObject::Reader::operator>> ( float &  f)
inline

Definition at line 121 of file SiPixel2DTemplateDBObject.h.

References f, index_, isInvalid_, SiPixel2DTemplateDBObject::maxIndex_, object_, and SiPixel2DTemplateDBObject::sVector_.

121  {
122  isInvalid_ = false;
123  if (index_ <= object_.maxIndex_) {
125  index_++;
126  } else
127  isInvalid_ = true;
128  return *this;
129  }
SiPixel2DTemplateDBObject const & object_
double f[11][100]

Member Data Documentation

◆ index_

int SiPixel2DTemplateDBObject::Reader::index_
private

Definition at line 133 of file SiPixel2DTemplateDBObject.h.

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

◆ isInvalid_

bool SiPixel2DTemplateDBObject::Reader::isInvalid_
private

Definition at line 134 of file SiPixel2DTemplateDBObject.h.

Referenced by fail(), and operator>>().

◆ object_

SiPixel2DTemplateDBObject const& SiPixel2DTemplateDBObject::Reader::object_
private

Definition at line 132 of file SiPixel2DTemplateDBObject.h.

Referenced by operator>>().