#include <Pt/Function.h>

Public Types | |
| typedef R(* | FuncT )(ARGUMENTS) |
| The function signature wrapped by this class. | |
Public Member Functions | |
| Function (FuncT func) | |
| Construct from function pointer. | |
| Function (const Function &f) | |
| Copy Constructor. | |
| R | operator() (ARGUMENTS args) const |
| Call the callable entity. | |
| Function< R, ARGUMENTS > * | clone () const |
| Returns a copy of this instance. | |
| bool | operator== (const Function &rhs) const |
| Returns true if both use the same function pointer. | |
| R operator() | ( | ARGUMENTS | ) | const [virtual] |
Since this class template is partially specialized, the passed arguments ARGUMENTS must match the template parameters.
Implements Callable.
| Function<R, ARGUMENTS>* clone | ( | ) | const [virtual] |
A copy of the instance is created with new is returned. Ownership is transfered to the caller, who has to delete it.
Implements Callable.