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_
virtual bool isEqual(const StorableMultivariateFunctor &) const =0
virtual gs::ClassId classId() const =0
bool operator==(const StorableMultivariateFunctor &r) const
static StorableMultivariateFunctor * read(const gs::ClassId &id, std::istream &in)
const std::string & description() const
StorableMultivariateFunctor(const std::string &descr)
bool operator!=(const StorableMultivariateFunctor &r) const
StorableMultivariateFunctor()
static unsigned version()
void setDescription(const std::string &newDescription)
void validateDescription(const std::string &description) const
virtual bool write(std::ostream &of) const =0
Interface definition for multidimensional functors.
static const char * classname()
~StorableMultivariateFunctor() override