User Manual, Developers Guide and API Documentation

wns::simulator::Singleton Class Reference

used to access the global instance of ISimulator More...

#include <simulator/ISimulator.hpp>

Collaboration diagram for wns::simulator::Singleton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

ISimulatorgetInstance ()
 Retrieve the global instance of ISimulator.
void setInstance (ISimulator *simulator)
 Retrieve set the global instance of ISimulator.
void shutdownInstance ()
 Delete instance and set to zero.
 Singleton ()
 Constructor.
virtual ~Singleton ()
 Destructor.

Private Attributes

std::auto_ptr< ISimulatorsimulator_
 The global instance of ISimulator.


Detailed Description

Author:
Marc Schinnenburg <marc@schinnenburg.com>

Definition at line 203 of file ISimulator.hpp.


Constructor & Destructor Documentation

Singleton::Singleton (  )  [explicit]

Definition at line 107 of file ISimulator.cpp.

Singleton::~Singleton (  )  [virtual]

Definition at line 112 of file ISimulator.cpp.


Member Function Documentation

ISimulator * Singleton::getInstance (  ) 

Precondition:
An instance must be set

Definition at line 117 of file ISimulator.cpp.

void Singleton::setInstance ( ISimulator simulator  ) 

Precondition:
No instance must be set

Definition at line 124 of file ISimulator.cpp.

void Singleton::shutdownInstance (  ) 

Definition at line 135 of file ISimulator.cpp.


Member Data Documentation

Definition at line 242 of file ISimulator.hpp.


The documentation for this class was generated from the following files:

Generated on Sun May 27 03:33:06 2012 for openWNS by  doxygen 1.5.5