CMS 3D CMS Logo

UniqueString.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_NanoAOD_UniqueString_h
2 #define PhysicsTools_NanoAOD_UniqueString_h
3 
4 #include <string>
5 
6 namespace nanoaod {
7 
8  class UniqueString {
9  public:
12  const std::string& str() const { return str_; }
13  bool operator==(const std::string& other) const { return str_ == other; }
14  bool operator==(const UniqueString& other) const { return str_ == other.str_; }
15  bool isProductEqual(const UniqueString& other) const { return (*this) == other; }
16 
17  private:
19  };
20 
21 } // namespace nanoaod
22 
23 #endif
UniqueString(const std::string &str)
Definition: UniqueString.h:11
bool isProductEqual(const UniqueString &other) const
Definition: UniqueString.h:15
bool operator==(const std::string &other) const
Definition: UniqueString.h:13
const std::string & str() const
Definition: UniqueString.h:12
bool operator==(const UniqueString &other) const
Definition: UniqueString.h:14