Go to the documentation of this file.
21 #include "libmesh/dense_vector.h"
22 #include "libmesh/factory.h"
23 #include "libmesh/function_base.h"
24 #include "libmesh/auto_ptr.h"
38 virtual void operator() (
const Point & ,
42 for (
unsigned int i=0; i != output.
size(); ++i)
48 virtual std::unique_ptr<FunctionBase<Number>>
clone()
const
50 return libmesh_make_unique<ExampleOneFunction>();
54 #ifdef LIBMESH_USE_SEPARATE_NAMESPACE
62 std::map<std::string, Factory<FunctionBase<Number>> *> &
65 static std::map<std::string, Factory<FunctionBase<Number>> *> _map;
71 #ifdef LIBMESH_USE_SEPARATE_NAMESPACE
virtual void init()
The actual initialization process.
Base class for functors that can be evaluated at a point and (optionally) time.
virtual std::unique_ptr< FunctionBase< Number > > clone() const
FactoryImp< ExampleOneFunction, FunctionBase< Number > > example_one_factory("example_one")
The libMesh namespace provides an interface to certain functionality in the library.
Factory class definition.
A Point defines a location in LIBMESH_DIM dimensional Real space.
virtual unsigned int size() const override
virtual void clear()
Clears the function.
Factory implementation class.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real