#include <DataFormats/SiStripCommon/interface/SiStripNullKey.h>
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 () |
Concrete implementation of abstract base, signifying null values or an "unknown" position or view.
Definition at line 21 of file SiStripNullKey.h.
SiStripNullKey::SiStripNullKey | ( | ) |
void SiStripNullKey::initFromKey | ( | ) | [private, virtual] |
void SiStripNullKey::initFromPath | ( | ) | [private, virtual] |
void SiStripNullKey::initFromValue | ( | ) | [private, virtual] |
void SiStripNullKey::initGranularity | ( | ) | [private, virtual] |
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.
bool SiStripNullKey::isInvalid | ( | ) | const [virtual] |
Identifies all member data as being invalid.
Reimplemented from SiStripKey.
Definition at line 39 of file SiStripNullKey.cc.
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.
Identifies all member data as being "valid" or null ("all").
Reimplemented from SiStripKey.
Definition at line 27 of file SiStripNullKey.cc.
Referenced by print().
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.