00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TCut
00013 #define ROOT_TCut
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef ROOT_TNamed
00024 #include "TNamed.h"
00025 #endif
00026
00027 class TCut : public TNamed {
00028 private:
00029
00030
00031 Bool_t operator<(const TCut &rhs);
00032 Bool_t operator<=(const TCut &rhs);
00033 Bool_t operator>(const TCut &rhs);
00034 Bool_t operator>=(const TCut &rhs);
00035 public:
00036 TCut();
00037 TCut(const char *title);
00038 TCut(const char *name, const char *title);
00039 TCut(const TCut &cut);
00040 virtual ~TCut();
00041
00042
00043 TCut& operator=(const char *rhs);
00044 TCut& operator=(const TCut &rhs);
00045 TCut& operator+=(const char *rhs);
00046 TCut& operator+=(const TCut &rhs);
00047 TCut& operator*=(const char *rhs);
00048 TCut& operator*=(const TCut &rhs);
00049
00050
00051 Bool_t operator==(const char *rhs) const;
00052 Bool_t operator==(const TCut &rhs) const;
00053 Bool_t operator!=(const char *rhs) const;
00054 Bool_t operator!=(const TCut &rhs) const;
00055
00056 friend TCut operator+(const TCut &lhs, const char *rhs);
00057 friend TCut operator+(const char *lhs, const TCut &rhs);
00058 friend TCut operator+(const TCut &lhs, const TCut &rhs);
00059 friend TCut operator*(const TCut &lhs, const char *rhs);
00060 friend TCut operator*(const char *lhs, const TCut &rhs);
00061 friend TCut operator*(const TCut &lhs, const TCut &rhs);
00062
00063 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600
00064 #pragma GCC diagnostic push
00065 #pragma GCC diagnostic ignored "-Weffc++"
00066 #endif
00067 friend TCut operator&&(const TCut &lhs, const char *rhs);
00068 friend TCut operator&&(const char *lhs, const TCut &rhs);
00069 friend TCut operator&&(const TCut &lhs, const TCut &rhs);
00070 friend TCut operator||(const TCut &lhs, const char *rhs);
00071 friend TCut operator||(const char *lhs, const TCut &rhs);
00072 friend TCut operator||(const TCut &lhs, const TCut &rhs);
00073 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600
00074 #pragma GCC diagnostic pop
00075 #endif
00076 friend TCut operator!(const TCut &rhs);
00077
00078
00079 operator const char*() const { return GetTitle(); }
00080
00081 ClassDef(TCut,1)
00082 };
00083
00084 #endif