1 #ifndef NPSTAT_STORABLEMULTIVARIATEFUNCTOR_HH_
2 #define NPSTAT_STORABLEMULTIVARIATEFUNCTOR_HH_
18 #include "Alignment/Geners/interface/ClassId.hh"
51 return (
typeid(*
this) ==
typeid(r)) && this->
isEqual(r);
58 virtual gs::ClassId
classId()
const = 0;
59 virtual bool write(std::ostream&
of)
const = 0;
63 static inline const char*
classname() {
return "npstat::StorableMultivariateFunctor"; }
64 static inline unsigned version() {
return 1; }
82 #endif // NPSTAT_STORABLEMULTIVARIATEFUNCTOR_HH_
void validateDescription(const std::string &description) const
bool operator==(const StorableMultivariateFunctor &r) const
virtual bool isEqual(const StorableMultivariateFunctor &) const =0
virtual gs::ClassId classId() 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 write(std::ostream &of) const =0
const std::string & description() const
Interface definition for multidimensional functors.
static const char * classname()
~StorableMultivariateFunctor() override