C++ function pointer to a class method:
class Giant {
public:
void method();
};
typedef void (Giant::*Action)();
Taken from Command - Design Pattern
http://www.vincehuston.org/dp/command.html
adventures in the land of coding
C++ function pointer to a class method:
class Giant {
public:
void method();
};
typedef void (Giant::*Action)();
Excellent descriptions of design patterns, antipatterns, refactoring methods and uml :
http://sourcemaking.com/
Here is another one, restricted to design patterns:
http://www.vincehuston.org/dp/