#include <ExerciseStore.h>
Public Methods | |
AbstractExercise * | getExercise (string key) |
int | putExercise (string key, AbstractExercise *exercise) |
int | putExercise (AbstractExercise *exercise) |
Static Public Methods | |
ExerciseStore * | instance () |
void | destroyInstance () |
Private Methods | |
ExerciseStore () | |
void | releaseAllExercises () |
Private Attributes | |
ExerciseMap_t | fExerciseMap |
Static Private Attributes | |
ExerciseStore * | fInstance |
© Bernhard Wagner, xmlizer.biz, 2002.
Definition at line 21 of file ExerciseStore.h.
|
Default constructor. Private: Singleton Design Pattern Definition at line 65 of file ExerciseStore.h. Referenced by instance(). |
|
Destroys the one and only instance of ExerciseStore. Definition at line 35 of file ExerciseStore.cpp. References fInstance. Referenced by Driver::~Driver(). |
|
Retrieves an Exercise from the store.
Definition at line 13 of file ExerciseStore.cpp. References fExerciseMap. Referenced by Driver::instantiate(). |
|
Retrieves the one and only instance of ExerciseStore. (Singleton Design Pattern)
Definition at line 28 of file ExerciseStore.cpp. References ExerciseStore(), and fInstance. Referenced by AbstractExercise::init(), and Driver::instantiate(). |
|
Stores an Exercise in the store.
Definition at line 23 of file ExerciseStore.cpp. References AbstractExercise::getName(), and putExercise(). |
|
Stores an Exercise in the store.
Definition at line 17 of file ExerciseStore.cpp. References fExerciseMap. Referenced by AbstractExercise::init(), and putExercise(). |
|
Releaeses all Exercises in this store. |
|
The map storing the Exercises. Definition at line 75 of file ExerciseStore.h. Referenced by getExercise(), and putExercise(). |
|
The one and only instance of ExerciseStore. (Singleton Design Pattern) Definition at line 39 of file ExerciseStore.cpp. Referenced by destroyInstance(), and instance(). |