MEAL::ForwardResult< T > Class Template Reference

This evaluation policy forwards the result of another function. More...

#include <ForwardResult.h>

Inheritance diagram for MEAL::ForwardResult< T >:
MEAL::CalculatePolicy< T > MEAL::EvaluationPolicy< T::Result > MEAL::FunctionPolicy Reference::Able Reference::HeapTracked

Public Types

typedef T::Result Result
 

Public Member Functions

 ForwardResult (T *context, T *function)
 Default constructor.
 
Result evaluate (std::vector< Result > *gradient=0) const
 Calls to context->evaluate are forwarded to evaluator.
 
std::string class_name () const
 Return the name of the class for debugging.
 
- Public Member Functions inherited from MEAL::CalculatePolicy< T >
 CalculatePolicy (T *context)
 Default destructor.
 
void calculate (Result &r, std::vector< Result > *grad) const
 
- Public Member Functions inherited from MEAL::EvaluationPolicy< T::Result >
 EvaluationPolicy (Function *context)
 Default destructor.
 
- Public Member Functions inherited from MEAL::FunctionPolicy
 FunctionPolicy (Function *context=0)
 Default constructor.
 
 ~FunctionPolicy ()
 Destructor. More...
 
Functionget_context () const
 Return the Function for whom this policy operates.
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Protected Attributes

Reference::To< T, false > evaluator
 The class that will do the evaluating.
 
ForwardChanged forward_changed
 Forward the changed signals from the evaluator to the context.
 
- Protected Attributes inherited from MEAL::CalculatePolicy< T >
T * calculate_context
 The object that implements a calculate method.
 

Additional Inherited Members

- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Detailed Description

template<class T>
class MEAL::ForwardResult< T >

This evaluation policy forwards the result of another function.


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

Generated using doxygen 1.8.17