#include <Function.hpp>
Inheritance diagram for cafe::Function:

The function's signature should be:
User functions that don't inherit from Processor are encapsulated in an object of this type. A normal user should never have to use this.
Definition at line 23 of file Function.hpp.
Public Types | |
| typedef bool(* | FUNC )(cafe::Event &) |
Public Member Functions | |
| Function (const char *name) | |
| Function (const std::string &name, FUNC func) | |
| virtual bool | processEvent (Event &event) |
| Called for every event. | |
| ClassDef (Function, 0) | |
Private Types | |
| typedef std::map< std::string, FUNC > | Map |
Static Private Member Functions | |
| Map & | getMap () |
Private Attributes | |
| FUNC | _func |
Friends | |
| class | Function::Register |
|
|
Definition at line 25 of file Function.hpp. Referenced by cafe::Function::Register::Register(). |
|
|
Definition at line 45 of file Function.hpp. Referenced by getMap(). |
|
|
Definition at line 11 of file Function.cpp. References _func, getMap(), and cafe::Processor::name(). |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 43 of file Function.cpp. References Map. Referenced by Function(), and cafe::Function::Register::Register(). |
|
|
Called for every event.
Reimplemented from cafe::Processor. Definition at line 33 of file Function.cpp. References _func, cafe::Processor::err(), and cafe::Processor::name(). |
|
|
Definition at line 43 of file Function.hpp. |
|
|
Definition at line 41 of file Function.hpp. Referenced by Function(), and processEvent(). |
1.3.4