#include <Pt/Method.h>

Public Types | |
| typedef R(ClassT::* | MemFuncT )(ARGUMENTS) |
| The wrapped member function signature. | |
Public Member Functions | |
| Method (ClassT &object, MemFuncT ptr) | |
| Wraps the given object/member pair. | |
| ClassT & | object () |
| Returns a reference to this object's wrapped ClassT object. | |
| const ClassT & | object () const |
| Returns a const reference to the wrapped ClassT object. | |
| const MemFuncT & | method () const |
| Returns a reference to the wrapped member function. | |
| R | operator() (ARGUMENTS0) const |
| Method< R, ClassT, ARGUMENTS > * | clone () const |
| Returns a copy of this instance. | |
| bool | operator== (const Method &rhs) const |
| Returns true if both use the same object and function pointer. | |
| Method<R, ClassT, 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.