Console::FunctorAction< Func, T > Class Template Reference

#include <Action.h>

Inheritance diagram for Console::FunctorAction< Func, T >:

Console::Action List of all members.

Public Member Functions

 FunctorAction (Func functor, const T &arg, const std::string &description)
std::string run (const std::vector< std::string > &parameters)

Detailed Description

template<typename Func, typename T>
class Console::FunctorAction< Func, T >

Specialization of Action for functors, which performs an action by calling the functor, and returns a constant result description.


Constructor & Destructor Documentation

template<typename Func, typename T>
Console::FunctorAction< Func, T >::FunctorAction Func  functor,
const T &  arg,
const std::string &  description
[inline]
 

Initialize a FunctorAction with the given functor, arguments, and description.

Parameters:
functor the functor to be called by the action.
arg the argument to be passed to the functor.
description the description to be returned by the action.


Member Function Documentation

template<typename Func, typename T>
std::string Console::FunctorAction< Func, T >::run const std::vector< std::string > &  parameters  )  [inline, virtual]
 

Calls the given functor, ignoring the passed parameters.

Parameters:
parameters the action's parametes, ignored by this specialization.
Returns:
the result of the action (the description given to the constructor).

Implements Console::Action.


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 08:42:48 2006 for GPU Thesis by  doxygen 1.4.6-NO