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 | Private Member Functions
SiStripNullKey Class Reference

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

#include <SiStripNullKey.h>

Inheritance diagram for SiStripNullKey:
SiStripKey

Public Member Functions

bool isConsistent (const SiStripKey &) const override
 
bool isEqual (const SiStripKey &) const override
 
bool isInvalid () const override
 
bool isInvalid (const sistrip::Granularity &) const override
 
bool isValid () const override
 
bool isValid (const sistrip::Granularity &) const override
 
void print (std::stringstream &ss) const override
 
 SiStripNullKey ()
 
void terse (std::stringstream &ss) const override
 
- Public Member Functions inherited from SiStripKey
const uint16_t & channel () const
 
const sistrip::Granularitygranularity () const
 
const uint32_t & key () const
 
const SiStripKeyoperator= (const SiStripKey &)
 
const std::string & path () const
 
 SiStripKey (const uint32_t &key)
 
 SiStripKey (const std::string &directory_path)
 
 SiStripKey (const SiStripKey &)
 
 SiStripKey ()
 
virtual ~SiStripKey ()
 

Private Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from SiStripKey
void channel (const uint16_t &)
 
void granularity (const sistrip::Granularity &)
 
void key (const uint32_t &)
 
void path (const std::string &)
 

Detailed Description

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

Author
R.Bainbridge

Definition at line 20 of file SiStripNullKey.h.

Constructor & Destructor Documentation

SiStripNullKey::SiStripNullKey ( )

Default constructor

Definition at line 8 of file SiStripNullKey.cc.

8 : SiStripKey() { ; }

Member Function Documentation

void SiStripNullKey::initFromKey ( )
overrideprivatevirtual

Reimplemented from SiStripKey.

Definition at line 46 of file SiStripNullKey.cc.

46 { ; }
void SiStripNullKey::initFromPath ( )
overrideprivatevirtual

Reimplemented from SiStripKey.

Definition at line 50 of file SiStripNullKey.cc.

50 { ; }
void SiStripNullKey::initFromValue ( )
overrideprivatevirtual

Reimplemented from SiStripKey.

Definition at line 42 of file SiStripNullKey.cc.

42 { ; }
void SiStripNullKey::initGranularity ( )
overrideprivatevirtual

Reimplemented from SiStripKey.

Definition at line 54 of file SiStripNullKey.cc.

54 { ; }
bool SiStripNullKey::isConsistent ( const SiStripKey input) const
overridevirtual

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

Reimplemented from SiStripKey.

Definition at line 22 of file SiStripNullKey.cc.

References isEqual().

22 { return isEqual(input); }
bool isEqual(const SiStripKey &) const override
bool SiStripNullKey::isEqual ( const SiStripKey input) const
overridevirtual

Identifies key objects with identical member data.

Reimplemented from SiStripKey.

Definition at line 12 of file SiStripNullKey.cc.

Referenced by isConsistent().

12  {
13  if (&dynamic_cast<const SiStripNullKey&>(input)) {
14  return true;
15  } else {
16  return false;
17  }
18 }
bool SiStripNullKey::isInvalid ( ) const
overridevirtual

Identifies all member data as being invalid.

Reimplemented from SiStripKey.

Definition at line 34 of file SiStripNullKey.cc.

34 { return true; }
bool SiStripNullKey::isInvalid ( const sistrip::Granularity gran) const
overridevirtual

All member data to level of "Granularity" are invalid. If sistrip::Granularity is "undefined", returns true.

Reimplemented from SiStripKey.

Definition at line 38 of file SiStripNullKey.cc.

38 { return true; }
bool SiStripNullKey::isValid ( void  ) const
overridevirtual

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

Reimplemented from SiStripKey.

Definition at line 26 of file SiStripNullKey.cc.

Referenced by ntupleDataFormat._Object::_checkIsValid(), print(), and core.AutoHandle.AutoHandle::ReallyLoad().

26 { return false; }
bool SiStripNullKey::isValid ( const sistrip::Granularity gran) const
overridevirtual

All member data to level of "Granularity" are valid. If sistrip::Granularity is "undefined", returns false.

Reimplemented from SiStripKey.

Definition at line 30 of file SiStripNullKey.cc.

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

30 { return false; }
void SiStripNullKey::print ( std::stringstream &  ss) const
overridevirtual

Print member data of the key

Reimplemented from SiStripKey.

Definition at line 58 of file SiStripNullKey.cc.

References SiStripKey::channel(), TauDecayModes::dec, SiStripEnumsAndStrings::granularity(), SiStripKey::granularity(), isValid(), SiStripKey::key(), and SiStripKey::path().

Referenced by operator<<().

58  {
59  ss << " [SiStripNullKey::print]" << std::endl
60  << std::hex << " 32-bit key : 0x" << std::setfill('0') << std::setw(8) << key() << std::endl
61  << std::setfill(' ') << std::dec << " Directory : " << path() << std::endl
62  << " Granularity : " << SiStripEnumsAndStrings::granularity(granularity()) << std::endl
63  << " Channel : " << channel() << std::endl
64  << " isValid : " << isValid();
65 }
static std::string granularity(const sistrip::Granularity &)
bool isValid() const override
const uint32_t & key() const
Definition: SiStripKey.h:120
const sistrip::Granularity & granularity() const
Definition: SiStripKey.h:122
const std::string & path() const
Definition: SiStripKey.h:121
const uint16_t & channel() const
Definition: SiStripKey.h:123
void SiStripNullKey::terse ( std::stringstream &  ss) const
inlineoverridevirtual

A terse summary of the key

Reimplemented from SiStripKey.

Definition at line 55 of file SiStripNullKey.h.

55 { ; }