11.8 OEUnaryFunction

template<class Arg, class Result, bool ConstArg = true, bool ConstFcn = true>
class OEUnaryFunction

virtual Result operator()(const Arg &) const = 0;
virtual OEUnaryFunction<Arg,Result> *CreateCopy() = 0;

This is the default functor base-class in OEChem. It provides an operator() which takes a const argument and is a const function. CreateCopy is a virtual constructor which allows copying of concrete derived objects using a reference to this base class.


Subsections