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

Used to distribute a unique bit identifier to each System created. More...

#include <SystemBitManager.h>

Inheritance diagram for Atlas::SystemBitManager:
Collaboration diagram for Atlas::SystemBitManager:

Static Public Member Functions

static std::bitset< BITSIZEgetBitsFor (const std::type_index &type)
 Retrieves the bits for a System. More...
 
template<typename T >
static std::bitset< BITSIZEgetBitsFor (const T *type)
 Retrieves the bits for a System. More...
 

Additional Inherited Members

- Public Member Functions inherited from Atlas::NonCopyable
 NonCopyable ()=default
 Default Constructor. More...
 
virtual ~NonCopyable ()
 

Detailed Description

Used to distribute a unique bit identifier to each System created.

Member Function Documentation

static std::bitset<BITSIZE> Atlas::SystemBitManager::getBitsFor ( const std::type_index &  type)
static

Retrieves the bits for a System.

Usage Example:

system.setSystemBits(Atlas::SystemBitManager::getBitsFor(typeid(HealthSystem)));
Parameters
type- the System of interest
Returns
A bitset containing the System bit

Here is the caller graph for this function:

template<typename T >
static std::bitset<BITSIZE> Atlas::SystemBitManager::getBitsFor ( const T *  type)
inlinestatic

Retrieves the bits for a System.

Usage Example:

system.setSystemBits(Atlas::SystemBitManager::getBitsFor<HealthSystem>());
Parameters
type- pointer to a System
Returns
A bitset containing the System bit

Here is the call graph for this function:


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