Symphony Of Empires
EntityId< T > Struct Template Reference

#include <entity.hpp>

Public Types

using Type = T
 

Public Member Functions

constexpr EntityId () noexcept=default
 
constexpr EntityId (T _id) noexcept
 
constexpr EntityId (size_t _id) noexcept
 
constexpr EntityId (EntityId< T > &&) noexcept=default
 
constexpr EntityId (const EntityId< T > &) noexcept=default
 
constexpr EntityId< T > & operator= (const EntityId< T > &) noexcept=default
 
constexpr ~EntityId () noexcept=default
 
constexpr operator size_t () const noexcept
 
constexpr auto operator== (const EntityId< T > &o) const noexcept
 
constexpr auto operator<=> (const EntityId< T > &o) const noexcept=default
 
EntityId< T > & operator++ () noexcept
 
EntityId< T > & operator-- () noexcept
 
EntityId< T > operator++ (int) noexcept
 
EntityId< T > operator-- (int) noexcept
 

Public Attributes

id = invalid_id
 

Static Public Attributes

constexpr static T invalid_id = 0
 

Detailed Description

template<typename T>
struct EntityId< T >

Definition at line 32 of file entity.hpp.

Member Typedef Documentation

◆ Type

template<typename T >
using EntityId< T >::Type = T

Definition at line 33 of file entity.hpp.

Constructor & Destructor Documentation

◆ EntityId() [1/5]

template<typename T >
constexpr EntityId< T >::EntityId ( )
constexprdefaultnoexcept

◆ EntityId() [2/5]

template<typename T >
constexpr EntityId< T >::EntityId ( _id)
inlineconstexprnoexcept

Definition at line 35 of file entity.hpp.

◆ EntityId() [3/5]

template<typename T >
constexpr EntityId< T >::EntityId ( size_t  _id)
inlineconstexprnoexcept

Definition at line 35 of file entity.hpp.

◆ EntityId() [4/5]

template<typename T >
constexpr EntityId< T >::EntityId ( EntityId< T > &&  )
constexprdefaultnoexcept

◆ EntityId() [5/5]

template<typename T >
constexpr EntityId< T >::EntityId ( const EntityId< T > &  )
constexprdefaultnoexcept

◆ ~EntityId()

template<typename T >
constexpr EntityId< T >::~EntityId ( )
constexprdefaultnoexcept

Member Function Documentation

◆ operator size_t()

template<typename T >
constexpr EntityId< T >::operator size_t ( ) const
inlineconstexprnoexcept

Definition at line 45 of file entity.hpp.

◆ operator++() [1/2]

template<typename T >
EntityId<T>& EntityId< T >::operator++ ( )
inlinenoexcept

Definition at line 55 of file entity.hpp.

◆ operator++() [2/2]

template<typename T >
EntityId<T> EntityId< T >::operator++ ( int  )
inlinenoexcept

Definition at line 65 of file entity.hpp.

◆ operator--() [1/2]

template<typename T >
EntityId<T>& EntityId< T >::operator-- ( )
inlinenoexcept

Definition at line 60 of file entity.hpp.

◆ operator--() [2/2]

template<typename T >
EntityId<T> EntityId< T >::operator-- ( int  )
inlinenoexcept

Definition at line 70 of file entity.hpp.

◆ operator<=>()

template<typename T >
constexpr auto EntityId< T >::operator<=> ( const EntityId< T > &  o) const
constexprdefaultnoexcept

◆ operator=()

template<typename T >
constexpr EntityId<T>& EntityId< T >::operator= ( const EntityId< T > &  )
constexprdefaultnoexcept

◆ operator==()

template<typename T >
constexpr auto EntityId< T >::operator== ( const EntityId< T > &  o) const
inlineconstexprnoexcept

Definition at line 49 of file entity.hpp.

Member Data Documentation

◆ id

template<typename T >
T EntityId< T >::id = invalid_id

Definition at line 35 of file entity.hpp.

◆ invalid_id

template<typename T >
constexpr static T EntityId< T >::invalid_id = 0
staticconstexpr

Definition at line 34 of file entity.hpp.


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