Orxonox  0.0.5 Codename: Arcturus
Classes | Namespaces
ScopedSingletonWrapper.h File Reference

Definition of orxonox::ScopedSingletonWrapper and orxonox::ClassScopedSingletonWrapper. More...

#include "core/CorePrereqs.h"
#include <cassert>
#include "util/Exception.h"
#include "util/Singleton.h"
#include "Scope.h"

Go to the source code of this file.

Classes

class  orxonox::ClassScopedSingletonWrapper< T, allowedToFail >
 Manages a scoped singleton. More...
 
class  orxonox::ClassScopedSingletonWrapper< T, true >
 This class partially spezializes ClassScopedSingletonWrapper for classes T that are allowed to fail. More...
 
class  orxonox::ScopedSingletonWrapper
 Base class of ClassScopedSingletonWrapper. More...
 

Namespaces

 orxonox
 Die Wagnis Klasse hat die folgenden Aufgaben:
 

Detailed Description

Definition of orxonox::ScopedSingletonWrapper and orxonox::ClassScopedSingletonWrapper.

ScopedSingletonWrapper is used to create and destroy Singletons that belong to a given Scope. For each one of these singletons, the macro ManageScopedSingleton() has to be called to register the wrapper with orxonox::ScopeManager.

See this code for an example.

See also
orxonox::Singleton
orxonox::Scope