FreePOOMA
2.4.1
|
EngineFunctor<Eng,Tag> defines the action corresponding to Tag on the engine of type Eng. More...
#include <EngineFunctor.h>
Public Types | |
typedef EngineFunctorDefault < Eng, Tag >::Type_t | Type_t |
Static Public Member Functions | |
static Type_t | apply (const Eng &e, const Tag &t) |
EngineFunctor<Eng,Tag> defines the action corresponding to Tag on the engine of type Eng.
Requires the action return type and apply function:
typedef return_type Type_t; // return type of the action static Type_t apply(const Eng &engine, const Tag &tag);
Tag is a policy tag for the action. Requires one typedef:
typedef combiner_type Combine_t; // PETE combiner for the return
EngineFunctorScalar<T,Tag> computes a value for a scalar leaf. Requires:
typedef return_type Type_t; // return type of the action static Type_t apply(const Scalar<T> &scalar, const Tag &tag);
EngineFunctorDefault<Eng,Tag> allows you to define generic actions for a specific tag.
typedef EngineFunctorDefault<Eng,Tag>::Type_t EngineFunctor< Eng, Tag >::Type_t |
static Type_t EngineFunctor< Eng, Tag >::apply | ( | const Eng & | e, |
const Tag & | t | ||
) | [inline, static] |
Referenced by engineFunctor(), and isValidLocation().