Represents a single exercise or example for a design pattern. More...
Public Member Functions | |
Exercise (const char *nameOfExercise, Action exercise) | |
Constructor. | |
Public Attributes | |
std::string | name |
Name of the exercise. | |
Action | exercise_to_run |
Method to call to run the exercise. | |
Represents a single exercise or example for a design pattern.
Definition at line 54 of file program.cpp.
Constructor.
nameOfExercise | Name of the exercise. |
exercise | Method to run (of type void ()(void)). |
Definition at line 72 of file program.cpp.
References Program::Exercise::exercise_to_run, and Program::Exercise::name.
Action exercise_to_run |
Method to call to run the exercise.
Definition at line 64 of file program.cpp.
Referenced by Program::Exercise::Exercise().
std::string name |
Name of the exercise.
Definition at line 59 of file program.cpp.
Referenced by Program::Exercise::Exercise().