FreePOOMA  2.4.1
Public Types | Static Public Member Functions
EngineFunctor< Eng, Tag > Struct Template Reference

EngineFunctor<Eng,Tag> defines the action corresponding to Tag on the engine of type Eng. More...

#include <EngineFunctor.h>

List of all members.

Public Types

typedef EngineFunctorDefault
< Eng, Tag >::Type_t 
Type_t

Static Public Member Functions

static Type_t apply (const Eng &e, const Tag &t)

Detailed Description

template<class Eng, class Tag>
struct EngineFunctor< Eng, Tag >

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.


Member Typedef Documentation

template<class Eng, class Tag>
typedef EngineFunctorDefault<Eng,Tag>::Type_t EngineFunctor< Eng, Tag >::Type_t

Member Function Documentation

template<class Eng, class Tag>
static Type_t EngineFunctor< Eng, Tag >::apply ( const Eng &  e,
const Tag &  t 
) [inline, static]

Referenced by engineFunctor(), and isValidLocation().


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