Singleton class for the Data class.
More...
#include <Data.hpp>
|
| static void | makeInstance (repast::Properties aProps) |
| | Generates a singleton instance of a T object. More...
|
| |
| static T * | getInstance () |
| | Return the generated, unique, instance of a T object (if already instanciated). More...
|
| |
| static void | kill () |
| | Free the memory. More...
|
| |
template<typename T>
class Singleton< T >
Singleton class for the Data class.
Return the generated, unique, instance of a T object (if already instanciated).
- Returns
- the unique instance of a T object
template<typename T>
| static void Singleton< T >::makeInstance |
( |
repast::Properties |
aProps | ) |
|
|
inlinestatic |
Generates a singleton instance of a T object.
- Parameters
-
| aProps | model properties of VirtualBelgium |
unique instance of the Data class
Initialize the singleton to NULL.
The documentation for this class was generated from the following file:
- /home/johan/Documents/UNamur/VirtualBelgium/Workspace/VirtualBelgium/include/Data.hpp