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 public:
22  // ---------- Constructors ----------
23 
26 
27  // ---------- Utility methods ----------
28 
30  bool isEqual(const SiStripKey&) const override;
31 
33  bool isConsistent(const SiStripKey&) const override;
34 
36  bool isValid() const override;
37 
40  bool isValid(const sistrip::Granularity&) const override;
41 
43  bool isInvalid() const override;
44 
47  bool isInvalid(const sistrip::Granularity&) const override;
48 
49  // ---------- Print methods ----------
50 
52  void print(std::stringstream& ss) const override;
53 
55  void terse(std::stringstream& ss) const override { ; }
56 
57 private:
58  // ---------- Private methods ----------
59 
60  void initFromValue() override;
61  void initFromKey() override;
62  void initFromPath() override;
63  void initGranularity() override;
64 };
65 
66 #endif // DataFormats_SiStripCommon_SiStripNullKey_H
void initFromPath() override
bool isValid() const override
Constants and enumerated type for sistrip::Granularity.
void terse(std::stringstream &ss) const override
Base utility class that identifies a position within a logical structure of the strip tracker...
Definition: SiStripKey.h:23
bool isEqual(const SiStripKey &) const override
void initFromKey() override
bool isConsistent(const SiStripKey &) const override
void initGranularity() override
bool isInvalid() const override
void initFromValue() override
void print(std::stringstream &ss) const override
Concrete implementation of abstract base, signifying null values or an "unknown" position or view...
std::ostream & operator<<(std::ostream &, const SiStripNullKey &)