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:
11  UniqueString(const std::string & str) : str_(str) {}
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  private:
18 };
19 
20 } // namespace nanoaod
21 
22 #endif
UniqueString(const std::string &str)
Definition: UniqueString.h:11
bool operator==(const UniqueString &other) const
Definition: UniqueString.h:14
bool isProductEqual(const UniqueString &other) const
Definition: UniqueString.h:15
const std::string & str() const
Definition: UniqueString.h:12
bool operator==(const std::string &other) const
Definition: UniqueString.h:13