MEAL::VectorRule< T > Class Template Reference

VectorRule implements a vector of Functions with a current index. More...

#include <VectorRule.h>

Public Types

typedef T::Result Result
 

Public Member Functions

 VectorRule (Composite *policy=0)
 Default constructor.
 
 VectorRule (const VectorRule &v)
 Copy constructor.
 
VectorRuleoperator= (const VectorRule &copy)
 Assignment operator.
 
 ~VectorRule ()
 Destructor.
 
void push_back (T *model)
 Add an element to the array.
 
void assign (T *model)
 Assign the current element of the array.
 
void erase (unsigned index)
 Erase an element from the array.
 
T * get_current ()
 Get the current element of the array.
 
Project< T > & get_projection ()
 Get the projection of the current element of the array.
 
unsigned size () const
 Get the size of the array.
 
void set_index (unsigned index)
 Set the current element of the array.
 
unsigned get_index () const
 Get the current element of the array.
 
std::string get_name () const
 Return the name of the class.
 

Protected Member Functions

void calculate (Result &result, std::vector< Result > *grad)
 Return the result and its gradient.
 

Detailed Description

template<class T>
class MEAL::VectorRule< T >

VectorRule implements a vector of Functions with a current index.


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

Generated using doxygen 1.8.17