CMS 3D CMS Logo

SiStripNullKey.h
Go to the documentation of this file.
1 
2 #ifndef DataFormats_SiStripCommon_SiStripNullKey_H
3 #define DataFormats_SiStripCommon_SiStripNullKey_H
4 
7 
8 class SiStripNullKey;
9 
11 std::ostream& operator<< ( std::ostream&, const SiStripNullKey& );
12 
20 class SiStripNullKey : public SiStripKey {
21 
22  public:
23 
24  // ---------- Constructors ----------
25 
28 
29  // ---------- Utility methods ----------
30 
32  bool isEqual( const SiStripKey& ) const override;
33 
35  bool isConsistent( const SiStripKey& ) const override;
36 
38  bool isValid() const override;
39 
42  bool isValid( const sistrip::Granularity& ) const override;
43 
45  bool isInvalid() const override;
46 
49  bool isInvalid( const sistrip::Granularity& ) const override;
50 
51  // ---------- Print methods ----------
52 
54  void print( std::stringstream& ss ) const override;
55 
57  void terse( std::stringstream& ss ) const override {;}
58 
59  private:
60 
61  // ---------- Private methods ----------
62 
63  void initFromValue() override;
64  void initFromKey() override;
65  void initFromPath() override;
66  void initGranularity() override;
67 
68 };
69 
70 #endif // DataFormats_SiStripCommon_SiStripNullKey_H
71 
72 
73 
bool isValid() const override
bool isInvalid() const override
bool isConsistent(const SiStripKey &) const override
void initFromPath() override
Constants and enumerated type for sistrip::Granularity.
Base utility class that identifies a position within a logical structure of the strip tracker...
Definition: SiStripKey.h:23
void initFromKey() override
void terse(std::stringstream &ss) const override
void initGranularity() override
void print(std::stringstream &ss) const override
void initFromValue() override
bool isEqual(const SiStripKey &) const override
Concrete implementation of abstract base, signifying null values or an "unknown" position or view...
std::ostream & operator<<(std::ostream &, const SiStripNullKey &)