MAGE  v0.171.0
Matthias Advanced Game Engine
mage::Entity Class Reference

#include <ecs.hpp>

Public Member Functions

constexpr Entity (U32 id=0u) noexcept
 
constexpr Entity (const Entity &entity) noexcept=default
 
constexpr Entity (Entity &&entity) noexcept=default
 
 ~Entity ()=default
 
Entityoperator= (const Entity &entity) noexcept=default
 
Entityoperator= (Entity &&entity) noexcept=default
 
constexpr U32 GetID () const noexcept
 
constexpr operator U32 () const noexcept
 
constexpr bool operator== (const Entity &rhs) const noexcept
 
constexpr bool operator!= (const Entity &rhs) const noexcept
 
constexpr bool operator<= (const Entity &rhs) const noexcept
 
constexpr bool operator>= (const Entity &rhs) const noexcept
 
constexpr bool operator< (const Entity &rhs) const noexcept
 
constexpr bool operator> (const Entity &rhs) const noexcept
 
std::size_t Hash () const noexcept
 

Private Attributes

U32 m_id
 

Constructor & Destructor Documentation

◆ Entity() [1/3]

constexpr mage::Entity::Entity ( U32  id = 0u)
explicitnoexcept

◆ Entity() [2/3]

constexpr mage::Entity::Entity ( const Entity entity)
defaultnoexcept

◆ Entity() [3/3]

constexpr mage::Entity::Entity ( Entity &&  entity)
defaultnoexcept

◆ ~Entity()

mage::Entity::~Entity ( )
default

Member Function Documentation

◆ GetID()

constexpr U32 mage::Entity::GetID ( ) const
noexcept

◆ Hash()

std::size_t mage::Entity::Hash ( ) const
noexcept

◆ operator U32()

constexpr mage::Entity::operator U32 ( ) const
explicitnoexcept

◆ operator!=()

constexpr bool mage::Entity::operator!= ( const Entity rhs) const
noexcept

◆ operator<()

constexpr bool mage::Entity::operator< ( const Entity rhs) const
noexcept

◆ operator<=()

constexpr bool mage::Entity::operator<= ( const Entity rhs) const
noexcept

◆ operator=() [1/2]

Entity& mage::Entity::operator= ( const Entity entity)
defaultnoexcept

◆ operator=() [2/2]

Entity& mage::Entity::operator= ( Entity &&  entity)
defaultnoexcept

◆ operator==()

constexpr bool mage::Entity::operator== ( const Entity rhs) const
noexcept

◆ operator>()

constexpr bool mage::Entity::operator> ( const Entity rhs) const
noexcept

◆ operator>=()

constexpr bool mage::Entity::operator>= ( const Entity rhs) const
noexcept

Member Data Documentation

◆ m_id

U32 mage::Entity::m_id
private