Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
orxonox::Context Class Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/object/Context.h>

Inheritance diagram for orxonox::Context:
orxonox::Listable orxonox::Identifiable orxonox::Level orxonox::Namespace orxonox::Scene

Public Member Functions

 Context (Context *context)
 
virtual ~Context ()
 
template<class T >
void addObject (T *object)
 
void destroyObjectList (const Identifier *identifier)
 
ObjectListBasegetObjectList (const Identifier *identifier)
 
template<class T >
ObjectListBasegetObjectList ()
 
ContextgetParentContext () const
 
- Public Member Functions inherited from orxonox::Listable
 Listable ()
 Constructor: Allocates space in the element list. More...
 
 Listable (Context *context)
 Constructor: Allocates space in the element list and assigns the context. More...
 
virtual ~Listable ()
 Destructor: Removes the object from the object-lists. More...
 
ContextgetContext () const
 
void setContext (Context *context)
 Changes the context. More...
 
void unregisterObject ()
 Removes this object from the object-lists. More...
 
- Public Member Functions inherited from orxonox::Identifiable
 Identifiable ()
 Constructor: Sets the default values. More...
 
virtual ~Identifiable ()
 
ORX_FORCEINLINE voidgetDerivedPointer (unsigned int classID)
 Returns a valid pointer of any derived type that is registered in the class hierarchy. More...
 
template<class T >
ORX_FORCEINLINE T * getDerivedPointer (unsigned int classID)
 Version of getDerivedPointer with template. More...
 
template<class T >
ORX_FORCEINLINE const T * getDerivedPointer (unsigned int classID) const
 Const version of getDerivedPointer with template. More...
 
IdentifiergetIdentifier () const
 Returns the Identifier of the object. More...
 
bool isA (const Identifier *identifier)
 Returns true if the object's class is of the given type or a derivative. More...
 
template<class B >
bool isA (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is of the given type or a derivative. More...
 
bool isA (const Identifiable *object)
 Returns true if the object's class is of the given type or a derivative. More...
 
bool isChildOf (const Identifier *identifier)
 Returns true if the object's class is a child of the given type. More...
 
template<class B >
bool isChildOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a child of the given type. More...
 
bool isChildOf (const Identifiable *object)
 Returns true if the object's class is a child of the given type. More...
 
bool isDirectChildOf (const Identifier *identifier)
 Returns true if the object's class is a direct child of the given type. More...
 
template<class B >
bool isDirectChildOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a direct child of the given type. More...
 
bool isDirectChildOf (const Identifiable *object)
 Returns true if the object's class is a direct child of the given type. More...
 
bool isDirectParentOf (const Identifier *identifier)
 Returns true if the object's class is a direct parent of the given type. More...
 
template<class B >
bool isDirectParentOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a direct parent of the given type. More...
 
bool isDirectParentOf (const Identifiable *object)
 Returns true if the object's class is a direct child of the given type. More...
 
bool isExactlyA (const Identifier *identifier)
 Returns true if the object's class is exactly of the given type. More...
 
template<class B >
bool isExactlyA (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is exactly of the given type. More...
 
bool isExactlyA (const Identifiable *object)
 Returns true if the object's class is exactly of the given type. More...
 
bool isParentOf (const Identifier *identifier)
 Returns true if the object's class is a parent of the given type. More...
 
template<class B >
bool isParentOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a parent of the given type. More...
 
bool isParentOf (const Identifiable *object)
 Returns true if the object's class is a parent of the given type. More...
 

Static Public Member Functions

static void destroyRootContext ()
 
static ContextgetRootContext ()
 
static void setRootContext (Context *context)
 

Private Attributes

std::vector< ObjectListBase * > objectLists_
 
ContextparentContext_
 

Static Private Attributes

static ContextrootContext_s = nullptr
 

Constructor & Destructor Documentation

orxonox::Context::Context ( Context context)
orxonox::Context::~Context ( )
virtual

Member Function Documentation

template<class T >
void orxonox::Context::addObject ( T *  object)
inline
void orxonox::Context::destroyObjectList ( const Identifier identifier)
void orxonox::Context::destroyRootContext ( )
static
ObjectListBase * orxonox::Context::getObjectList ( const Identifier identifier)
template<class T >
ObjectListBase* orxonox::Context::getObjectList ( )
inline
Context* orxonox::Context::getParentContext ( ) const
inline
Context * orxonox::Context::getRootContext ( )
static
void orxonox::Context::setRootContext ( Context context)
static

Member Data Documentation

std::vector<ObjectListBase*> orxonox::Context::objectLists_
private
Context* orxonox::Context::parentContext_
private
Context * orxonox::Context::rootContext_s = nullptr
staticprivate

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