Tuesday, August 11, 2009

function pointer to class methods

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

Monday, August 10, 2009

software design

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/