CMS 3D CMS Logo

SiStripNullKey Class Reference

Author:
R.Bainbridge
More...

#include <DataFormats/SiStripCommon/interface/SiStripNullKey.h>

Inheritance diagram for SiStripNullKey:

SiStripKey

List of all members.

Public Member Functions

bool isConsistent (const SiStripKey &) const
 "Consistent" means identical and/or null (ie, "all") data.
bool isEqual (const SiStripKey &) const
 Identifies key objects with identical member data.
bool isInvalid (const sistrip::Granularity &) const
 All member data to level of "Granularity" are invalid.
bool isInvalid () const
 Identifies all member data as being invalid.
bool isValid (const sistrip::Granularity &) const
 All member data to level of "Granularity" are valid.
bool isValid () const
 Identifies all member data as being "valid" or null ("all").
virtual void print (std::stringstream &ss) const
 Print member data of the key.
 SiStripNullKey ()
 Default constructor.
virtual void terse (std::stringstream &ss) const
 A terse summary of the key.

Private Member Functions

void initFromKey ()
void initFromPath ()
void initFromValue ()
void initGranularity ()


Detailed Description

Author:
R.Bainbridge

Concrete implementation of abstract base, signifying null values or an "unknown" position or view.

Definition at line 21 of file SiStripNullKey.h.


Constructor & Destructor Documentation

SiStripNullKey::SiStripNullKey (  ) 

Default constructor.

Definition at line 9 of file SiStripNullKey.cc.

00009 : SiStripKey() {;}


Member Function Documentation

void SiStripNullKey::initFromKey (  )  [private, virtual]

Reimplemented from SiStripKey.

Definition at line 55 of file SiStripNullKey.cc.

00055 {;}

void SiStripNullKey::initFromPath (  )  [private, virtual]

Reimplemented from SiStripKey.

Definition at line 59 of file SiStripNullKey.cc.

00059 {;}

void SiStripNullKey::initFromValue (  )  [private, virtual]

Reimplemented from SiStripKey.

Definition at line 51 of file SiStripNullKey.cc.

00051 {;}

void SiStripNullKey::initGranularity (  )  [private, virtual]

Reimplemented from SiStripKey.

Definition at line 63 of file SiStripNullKey.cc.

00063 {;}

bool SiStripNullKey::isConsistent ( const SiStripKey input  )  const [virtual]

"Consistent" means identical and/or null (ie, "all") data.

Reimplemented from SiStripKey.

Definition at line 21 of file SiStripNullKey.cc.

References isEqual().

00021                                                                  {
00022   return isEqual(input);
00023 }

bool SiStripNullKey::isEqual ( const SiStripKey input  )  const [virtual]

Identifies key objects with identical member data.

Reimplemented from SiStripKey.

Definition at line 13 of file SiStripNullKey.cc.

References pyDBSRunClass::temp.

Referenced by isConsistent().

00013                                                             {
00014   SiStripKey& temp = const_cast<SiStripKey&>(input);
00015   if ( &dynamic_cast<SiStripNullKey&>(temp) ) { return true; }
00016   else { return false; }
00017 }

bool SiStripNullKey::isInvalid ( const sistrip::Granularity gran  )  const [virtual]

All member data to level of "Granularity" are invalid.

If sistrip::Granularity is "undefined", returns true.

Reimplemented from SiStripKey.

Definition at line 45 of file SiStripNullKey.cc.

00045                                                                      {
00046   return true;
00047 }

bool SiStripNullKey::isInvalid (  )  const [virtual]

Identifies all member data as being invalid.

Reimplemented from SiStripKey.

Definition at line 39 of file SiStripNullKey.cc.

00039                                      { 
00040   return true;
00041 }

bool SiStripNullKey::isValid ( const sistrip::Granularity gran  )  const [virtual]

All member data to level of "Granularity" are valid.

If sistrip::Granularity is "undefined", returns false.

Reimplemented from SiStripKey.

Definition at line 33 of file SiStripNullKey.cc.

00033                                                                    {
00034   return false; 
00035 }

bool SiStripNullKey::isValid ( void   )  const [virtual]

Identifies all member data as being "valid" or null ("all").

Reimplemented from SiStripKey.

Definition at line 27 of file SiStripNullKey.cc.

Referenced by print().

00027                                    { 
00028   return false;
00029 }

void SiStripNullKey::print ( std::stringstream &  ss  )  const [virtual]

Print member data of the key.

Reimplemented from SiStripKey.

Definition at line 67 of file SiStripNullKey.cc.

References SiStripKey::channel(), lat::endl(), SiStripKey::granularity(), SiStripEnumsAndStrings::granularity(), isValid(), SiStripKey::key(), and SiStripKey::path().

Referenced by operator<<().

00067                                                       {
00068   ss << " [SiStripNullKey::print]" << std::endl
00069      << std::hex
00070      << " 32-bit key  : 0x" 
00071      << std::setfill('0') 
00072      << std::setw(8) << key() << std::endl
00073      << std::setfill(' ') 
00074      << std::dec
00075      << " Directory   : " << path() << std::endl
00076      << " Granularity : "
00077      << SiStripEnumsAndStrings::granularity( granularity() ) << std::endl
00078      << " Channel     : " << channel() << std::endl
00079      << " isValid    : " << isValid();
00080 }

virtual void SiStripNullKey::terse ( std::stringstream &  ss  )  const [inline, virtual]

A terse summary of the key.

Reimplemented from SiStripKey.

Definition at line 58 of file SiStripNullKey.h.

00058 {;}


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:27 2009 for CMSSW by  doxygen 1.5.4