Orxonox
0.0.5 Codename: Arcturus
|
Declaration of the classes that are needed to use Scopes: orxonox::Scope and orxonox::ScopeListener. More...
#include "core/CorePrereqs.h"
#include <cassert>
#include <map>
#include <set>
#include <loki/ScopeGuard.h>
#include "util/Output.h"
#include "ScopeManager.h"
Go to the source code of this file.
Classes | |
class | orxonox::Scope< scope > |
A scope for a given template argument is either active or not. More... | |
class | orxonox::ScopeListener |
ScopeListeners register themselves in the corresponding Scope and wait for notifications. More... | |
Namespaces | |
orxonox | |
Die Wagnis Klasse hat die folgenden Aufgaben: | |
Declaration of the classes that are needed to use Scopes: orxonox::Scope and orxonox::ScopeListener.
A virtual scope can be represented by an instance of class orxonox::Scope. orxonox::Scope<scope> is a template an its template argument defines the name of the virtual scope. See orxonox::ScopeID for an enumeration of the available values for scope. The orxonox::Scope object for a given scope can be activated or deactivated. Instances of orxonox::ScopeListener can register in orxonox::ScopeMAnager for a given scope and will get a notification if the corresponding orxonox::Scope object changes its state.
Scopes are usually used to control the creation and destruction of Singletons.