R-TYPE
Public Member Functions | Public Attributes | List of all members
ECS::ID Class Reference

#include <Id.hpp>

Inheritance diagram for ECS::ID:
ECS::IComp

Public Member Functions

 ID (int id) noexcept
 
 ID (ID &&) noexcept=delete
 
 ~ID () noexcept override=default
 
IDoperator= (const ID &) const noexcept=delete
 
IDoperator= (ID &&) const noexcept=delete
 
int getID () const noexcept
 
void setID (int id) noexcept
 
- Public Member Functions inherited from ECS::IComp
virtual ~IComp () noexcept=default
 

Public Attributes

 noexcept
 

Constructor & Destructor Documentation

◆ ID() [1/2]

ECS::ID::ID ( int  id)
explicitnoexcept

It takes an integer and assigns it to the _id member variable

Parameters
idThe id of the entity.

◆ ID() [2/2]

ECS::ID::ID ( ID &&  )
explicitdeletenoexcept

◆ ~ID()

ECS::ID::~ID ( )
overridedefaultnoexcept

Member Function Documentation

◆ getID()

int ECS::ID::getID ( ) const
noexcept

It returns the ID of the entity.

Returns
The ID of the entity.

◆ operator=() [1/2]

ID& ECS::ID::operator= ( const ID ) const
deletenoexcept

◆ operator=() [2/2]

ID& ECS::ID::operator= ( ID &&  ) const
deletenoexcept

◆ setID()

void ECS::ID::setID ( int  id)
noexcept

Sets the ID of the entity.

Parameters
idThe ID to set the ID to.

Member Data Documentation

◆ noexcept

ECS::ID::noexcept

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