#include <StorableMultivariateFunctor.h>
Public Member Functions | |
const std::string & | description () const |
void | setDescription (const std::string &newDescription) |
StorableMultivariateFunctor () | |
StorableMultivariateFunctor (const std::string &descr) | |
void | validateDescription (const std::string &description) const |
~StorableMultivariateFunctor () override | |
bool | operator== (const StorableMultivariateFunctor &r) const |
bool | operator!= (const StorableMultivariateFunctor &r) const |
virtual gs::ClassId | classId () const =0 |
virtual bool | write (std::ostream &of) const =0 |
Public Member Functions inherited from npstat::AbsMultivariateFunctor | |
virtual unsigned | maxDim () const |
virtual unsigned | minDim () const =0 |
virtual double | operator() (const double *point, unsigned dim) const =0 |
virtual | ~AbsMultivariateFunctor () |
Static Public Member Functions | |
static const char * | classname () |
static StorableMultivariateFunctor * | read (const gs::ClassId &id, std::istream &in) |
static unsigned | version () |
Protected Member Functions | |
virtual bool | isEqual (const StorableMultivariateFunctor &) const =0 |
Private Attributes | |
std::string | description_ |
Base class for storable multivariate functors
Definition at line 23 of file StorableMultivariateFunctor.h.
|
inline |
Definition at line 25 of file StorableMultivariateFunctor.h.
|
inlineexplicit |
Functor description can be an arbitrary string
Definition at line 28 of file StorableMultivariateFunctor.h.
|
inlineoverride |
Definition at line 31 of file StorableMultivariateFunctor.h.
|
pure virtual |
Method related to "geners" I/O
Implemented in npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >, and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.
Referenced by operator!=().
|
inlinestatic |
Definition at line 63 of file StorableMultivariateFunctor.h.
|
inline |
Retrieve the functor description
Definition at line 34 of file StorableMultivariateFunctor.h.
References description_.
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::isEqual(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::isEqual(), setDescription(), validateDescription(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::write(), and npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::write().
|
protectedpure virtual |
Method needed to compare objects for equality. Must be overriden by derived classes. It is left up to the derived classes to decide whether they should compare description strings in order to establish equality.
Implemented in npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >, and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.
Referenced by operator==(), and version().
|
inline |
Definition at line 53 of file StorableMultivariateFunctor.h.
References classId(), alignCSCRings::r, and write().
|
inline |
Do not override comparison operators in the derived classes, override the method "isEqual" instead.
Definition at line 50 of file StorableMultivariateFunctor.h.
References isEqual().
|
static |
Definition at line 19 of file StorableMultivariateFunctor.cc.
References instance.
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), and version().
|
inline |
Change the functor description
Definition at line 37 of file StorableMultivariateFunctor.h.
References description(), description_, AlCaHLTBitMon_QueryRunRegistry::string, and validateDescription().
void npstat::StorableMultivariateFunctor::validateDescription | ( | const std::string & | description | ) | const |
This method will throw npstat::NpstatRuntimeError in case functor description is different from the provided argument
Definition at line 6 of file StorableMultivariateFunctor.cc.
References description(), description_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDescription().
|
inlinestatic |
Definition at line 64 of file StorableMultivariateFunctor.h.
References recoMuon::in, isEqual(), and read().
Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().
|
pure virtual |
Implemented in npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >, and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.
Referenced by operator!=().
|
private |
Definition at line 78 of file StorableMultivariateFunctor.h.
Referenced by description(), setDescription(), and validateDescription().