All Classes Namespaces Functions Typedefs Enumerations Pages
Public Member Functions | List of all members
fmatvec::Function< Ret(Arg)> Class Template Referenceabstract

A function object with 1 argument. More...

#include <function.h>

Inheritance diagram for fmatvec::Function< Ret(Arg)>:
fmatvec::Atom

Public Member Functions

virtual Size< Arg >::type getArgSize () const
 Return the size of first argument.
 
virtual Ret operator() (const Arg &arg)=0
 Function value: pure virtual (MUST be implemented by derived class)
 
virtual Der< Ret, Arg >::type parDer (const Arg &arg)
 First derivative: partial derivative of the function value with respect to the argument.
 
virtual Ret dirDer (const Arg &argDir, const Arg &arg)
 First derivative: directional derivative of the function value with respect to the argument.
 
virtual Der< typename Der< Ret,
Arg >::type, Arg >::type 
parDerParDer (const Arg &arg)
 Second derivative: partial derivative of parDer with respect to the argument.
 
virtual Der< Ret, Arg >::type parDerDirDer (const Arg &argDir, const Arg &arg)
 Second derivative: directional derivative of parDer with respect to the argument.
 
virtual bool constParDer () const
 Returns true, if the partial derivative of the function value with respect to the argument.
 
- Public Member Functions inherited from fmatvec::Atom
 BOOST_STATIC_ASSERT_MSG (SIZE==FMATVEC_ATOM_MSGTYPE_SIZE,"The proprocessor define FMATVEC_ATOM_MSGTYPE_SIZE must be equal Atom::SIZE.")
 
virtual ~Atom ()
 dtor.
 
Atomoperator= (const Atom &)
 When a Atom is assinged do not change the messsage streams since we always use the message streams being active at ctor time.
 
void setMessageStreamActive (MsgType type, bool active)
 Set the active flag of this object and all objects which were created using the same message stream as this object.
 
void getMessageStream (MsgType type, boost::shared_ptr< bool > &a, boost::shared_ptr< std::ostream > &s)
 Get the shared message stream active flag and the shared message stream of this object.
 
void adoptMessageStreams (const Atom *src=NULL)
 
std::ostream & msg (MsgType type)
 
bool msgAct (MsgType type)
 

Additional Inherited Members

- Public Types inherited from fmatvec::Atom
enum  MsgType { Info, Warn, Debug, SIZE }
 Messages can be printed to different message types named here.
 
- Static Public Member Functions inherited from fmatvec::Atom
static void setCurrentMessageStream (MsgType type, const boost::shared_ptr< bool > &a=boost::make_shared< bool >(true), const boost::shared_ptr< std::ostream > &s=boost::make_shared< std::ostream >(std::cout.rdbuf()))
 
static std::ostream & msgStatic (MsgType type)
 
static bool msgActStatic (MsgType type)
 
- Protected Member Functions inherited from fmatvec::Atom
 Atom ()
 When a Atom is default constructed use the current statically set message streams.
 
 Atom (const Atom &src)
 When a Atom is copy constructed use the current statically set message streams, not the message streams from src.
 

Detailed Description

template<typename Ret, typename Arg>
class fmatvec::Function< Ret(Arg)>

A function object with 1 argument.


The documentation for this class was generated from the following file:

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML