CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
SiPixelTemplateDBObject::Reader Struct Reference

#include <SiPixelTemplateDBObject.h>

Public Member Functions

bool fail ()
 
void incrementIndex (int i)
 
int index () const
 
int numOfTempl () const
 
Readeroperator>> (int &i)
 
Readeroperator>> (float &f)
 
 Reader (SiPixelTemplateDBObject const &idb)
 
void setInvalid ()
 
std::vector< float > const & sVector () const
 
float version () const
 

Public Attributes

SiPixelTemplateDBObject const & db
 
int index_
 
bool isInvalid_
 

Detailed Description

Definition at line 18 of file SiPixelTemplateDBObject.h.

Constructor & Destructor Documentation

SiPixelTemplateDBObject::Reader::Reader ( SiPixelTemplateDBObject const &  idb)
inlineexplicit

Member Function Documentation

bool SiPixelTemplateDBObject::Reader::fail ( )
inline

Definition at line 44 of file SiPixelTemplateDBObject.h.

References isInvalid_.

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

Definition at line 51 of file SiPixelTemplateDBObject.h.

References mps_fire::i, and index_.

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

Definition at line 45 of file SiPixelTemplateDBObject.h.

References index_.

Referenced by BeautifulSoup.PageElement::_invert().

int SiPixelTemplateDBObject::Reader::numOfTempl ( ) const
inline

Definition at line 46 of file SiPixelTemplateDBObject.h.

References db, and SiPixelTemplateDBObject::numOfTempl().

46 { return db.numOfTempl(); }
SiPixelTemplateDBObject const & db
Reader& SiPixelTemplateDBObject::Reader::operator>> ( int &  i)
inline

Definition at line 22 of file SiPixelTemplateDBObject.h.

References db, index_, isInvalid_, SiPixelTemplateDBObject::maxIndex(), setInvalid(), and SiPixelTemplateDBObject::sVector().

22  {
23  isInvalid_ = false;
24  if (index_ <= db.maxIndex()) {
25  i = (int)db.sVector()[index_];
26  index_++;
27  } else
28  setInvalid();
29  return *this;
30  }
SiPixelTemplateDBObject const & db
std::vector< float > const & sVector() const
Reader& SiPixelTemplateDBObject::Reader::operator>> ( float &  f)
inline
void SiPixelTemplateDBObject::Reader::setInvalid ( void  )
inline

Definition at line 43 of file SiPixelTemplateDBObject.h.

References isInvalid_.

Referenced by operator>>().

std::vector<float> const& SiPixelTemplateDBObject::Reader::sVector ( ) const
inline

Definition at line 48 of file SiPixelTemplateDBObject.h.

References db, and SiPixelTemplateDBObject::sVector().

48 { return db.sVector(); }
SiPixelTemplateDBObject const & db
std::vector< float > const & sVector() const
float SiPixelTemplateDBObject::Reader::version ( ) const
inline

Definition at line 47 of file SiPixelTemplateDBObject.h.

References db, and SiPixelTemplateDBObject::version().

Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().

47 { return db.version(); }
SiPixelTemplateDBObject const & db

Member Data Documentation

SiPixelTemplateDBObject const& SiPixelTemplateDBObject::Reader::db

Definition at line 55 of file SiPixelTemplateDBObject.h.

Referenced by numOfTempl(), operator>>(), sVector(), and version().

int SiPixelTemplateDBObject::Reader::index_

Definition at line 53 of file SiPixelTemplateDBObject.h.

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

bool SiPixelTemplateDBObject::Reader::isInvalid_

Definition at line 54 of file SiPixelTemplateDBObject.h.

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