1 #ifndef NPSTAT_STORABLEMULTIVARIATEFUNCTOR_HH_ 2 #define NPSTAT_STORABLEMULTIVARIATEFUNCTOR_HH_ 18 #include "Alignment/Geners/interface/ClassId.hh" 53 {
return (
typeid(*
this) ==
typeid(r)) && this->
isEqual(r);}
55 {
return !(*
this ==
r);}
60 virtual gs::ClassId
classId()
const = 0;
61 virtual bool write(std::ostream& of)
const = 0;
66 {
return "npstat::StorableMultivariateFunctor";}
67 static inline unsigned version() {
return 1;}
69 const gs::ClassId&
id, std::istream&
in);
86 #endif // NPSTAT_STORABLEMULTIVARIATEFUNCTOR_HH_
void validateDescription(const std::string &description) const
bool operator==(const StorableMultivariateFunctor &r) const
virtual bool write(std::ostream &of) const =0
static StorableMultivariateFunctor * read(const gs::ClassId &id, std::istream &in)
StorableMultivariateFunctor(const std::string &descr)
StorableMultivariateFunctor()
static unsigned version()
void setDescription(const std::string &newDescription)
bool operator!=(const StorableMultivariateFunctor &r) const
virtual bool isEqual(const StorableMultivariateFunctor &) const =0
const std::string & description() const
Interface definition for multidimensional functors.
static const char * classname()
virtual gs::ClassId classId() const =0
~StorableMultivariateFunctor() override