Class MEAL::VectorRule

template<class T>
class VectorRule : public T

VectorRule implements a vector of Functions with a current index.

Public Functions

VectorRule(Composite *policy = 0)

Default constructor.

VectorRule(const VectorRule &v)

Copy constructor.

VectorRule &operator=(const VectorRule &copy)

Assignment operator.

inline ~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.

inline unsigned size() const

Get the size of the array.

void set_index(unsigned index)

Set the current element of the array.

inline unsigned get_index() const

Get the current element of the array.

inline std::string get_name() const

Return the name of the class.