19 #ifndef LIBMESH_CONST_FUNCTION_H 20 #define LIBMESH_CONST_FUNCTION_H 41 template <
typename Output=Number>
62 const Real = 0)
override 69 unsigned int size = output.
size();
70 for (
unsigned int i=0; i != size; ++i)
74 virtual std::unique_ptr<FunctionBase<Output>>
clone()
const override 76 return std::unique_ptr<FunctionBase<Output>>
86 #endif // LIBMESH_CONST_FUNCTION_H virtual unsigned int size() const override
virtual Output operator()(const Point &, const Real=0) override
virtual ~ConstFunction()=default
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual std::unique_ptr< FunctionBase< Output > > clone() const override
ConstFunction(const Output &c)
Function that returns a single value that never changes.
Base class for functors that can be evaluated at a point and (optionally) time.
A geometric point in (x,y,z) space.
ConstFunction & operator=(const ConstFunction &)=default