Atlas
A Convenient Entity Component System
 All Classes Namespaces Files Functions Variables Typedefs Friends
Atlas::ComponentIdentifierManager Class Reference

Used to assign a unique ID and Bit to a System when added to the SystemManager. More...

#include <ComponentIdentifierManager.h>

Static Public Member Functions

static ComponentIdentifiergetType (const std::type_index &index)
 Retrieves an identifier for a Component. More...
 
template<typename T >
static ComponentIdentifiergetType ()
 Retrieves an identifier for a Component. More...
 
template<typename T >
static std::bitset< BITSIZEgetBits ()
 Retrieves the Bit assigned to a Component. More...
 
template<typename T >
static unsigned int getID ()
 Retrieves the ID assigned to a Component. More...
 

Detailed Description

Used to assign a unique ID and Bit to a System when added to the SystemManager.

Member Function Documentation

template<typename T >
static std::bitset<BITSIZE> Atlas::ComponentIdentifierManager::getBits ( )
inlinestatic

Retrieves the Bit assigned to a Component.

Usage Example:

ComponentIdentifierManager::getBits<HealthComponent>()

Here is the call graph for this function:

template<typename T >
static unsigned int Atlas::ComponentIdentifierManager::getID ( )
inlinestatic

Retrieves the ID assigned to a Component.

Usage Example:

ComponentIdentifierManager::getID<HealthComponent>()

Here is the call graph for this function:

static ComponentIdentifier& Atlas::ComponentIdentifierManager::getType ( const std::type_index &  index)
static

Retrieves an identifier for a Component.

If an identifier has not been assigned to the Component, one is created and assigned.

Usage Example:

ComponentIdentifierManager::getType(typeid(HealthComponent))
Parameters
index- type_index for the Component
template<typename T >
static ComponentIdentifier& Atlas::ComponentIdentifierManager::getType ( )
inlinestatic

Retrieves an identifier for a Component.

If an identifier has not been assigned to the Component, one is created and assigned.

Usage Example:

ComponentIdentifierManager::getType<HealthComponent>()

Here is the caller graph for this function:


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