Concrete implementation of abstract base, signifying null values or an "unknown" position or view. More...
#include <SiStripNullKey.h>
Public Member Functions | |
bool | isConsistent (const SiStripKey &) const |
bool | isEqual (const SiStripKey &) const |
bool | isInvalid () const |
bool | isInvalid (const sistrip::Granularity &) const |
bool | isValid () const |
bool | isValid (const sistrip::Granularity &) const |
virtual void | print (std::stringstream &ss) const |
SiStripNullKey () | |
virtual void | terse (std::stringstream &ss) const |
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().
{ return isEqual(input); }
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 collect_tpl::input, and cond::rpcobtemp::temp.
Referenced by isConsistent().
{ SiStripKey& temp = const_cast<SiStripKey&>(input); if ( &dynamic_cast<SiStripNullKey&>(temp) ) { return true; } else { return false; } }
bool SiStripNullKey::isInvalid | ( | ) | const [virtual] |
Identifies all member data as being invalid.
Reimplemented from SiStripKey.
Definition at line 39 of file SiStripNullKey.cc.
{ return true; }
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.
{ return true; }
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.
{ return false; }
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().
{ return false; }
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(), SiStripKey::granularity(), isValid(), SiStripKey::key(), and SiStripKey::path().
Referenced by operator<<().
{ ss << " [SiStripNullKey::print]" << std::endl << std::hex << " 32-bit key : 0x" << std::setfill('0') << std::setw(8) << key() << std::endl << std::setfill(' ') << std::dec << " Directory : " << path() << std::endl << " Granularity : " << SiStripEnumsAndStrings::granularity( granularity() ) << std::endl << " Channel : " << channel() << std::endl << " isValid : " << isValid(); }
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.
{;}