- Gof/Command . . . . 5 matches
undo 할 필요가 없고, 인자를 요구하지 않는 단순한 명령어에 대해서 우리는 command의 receiver를 parameterize하기 위해 class template를 사용할 수 있다. 우리는 그러한 명령들을 위해 template subclass인 SimpleCommand를 정의할 것이다. SimpleCommand는 Receiver type에 의해 parameterize 되고
class SimpleCommand : public Command {
SimpleCommand (Receiver* r, Action a) :
void Simplecommand<Receiver>::Execute () {
new SimpleCommand<MyClass> (receiver, &MyClass::Action);
Found 1 matching page out of 7555 total pages (5000 pages are searched)
You can also click here to search title.