galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::System Class Referenceabstract

Represents a system that operates on sets of components. More...

#include <System.hpp>

+ Collaboration diagram for galaxy::System:

Public Member Functions

 System (System &&) noexcept
 Move constructor.
 
Systemoperator= (System &&) noexcept
 Move assignment operator.
 
virtual ~System () noexcept
 Destructor.
 
virtual void update (Registry &registry)=0
 Abstract implementation for updating the system. Use the manager to retreive your components.
 
const std::string & id () const noexcept
 Get identifier.
 

Protected Member Functions

 System (const std::string &id) noexcept
 Constructor.
 

Protected Attributes

std::string m_id
 Debug id.
 

Private Member Functions

 System ()=delete
 Constructor.
 
Systemoperator= (const System &)=delete
 Copy assignment operator.
 
 System (const System &)=delete
 Copy constructor.
 

Detailed Description

Represents a system that operates on sets of components.

Definition at line 21 of file System.hpp.

Constructor & Destructor Documentation

◆ System() [1/4]

galaxy::System::System ( System && s)
noexcept

Move constructor.

Definition at line 17 of file System.cpp.

◆ ~System()

galaxy::System::~System ( )
virtualnoexcept

Destructor.

Definition at line 32 of file System.cpp.

◆ System() [2/4]

galaxy::System::System ( const std::string & id)
protectednoexcept

Constructor.

Parameters
idSystem debug identifier.

Definition at line 12 of file System.cpp.

◆ System() [3/4]

galaxy::System::System ( )
privatedelete

Constructor.

◆ System() [4/4]

galaxy::System::System ( const System & )
privatedelete

Copy constructor.

Member Function Documentation

◆ operator=() [1/2]

System & galaxy::System::operator= ( System && s)
noexcept

Move assignment operator.

Definition at line 22 of file System.cpp.

◆ update()

virtual void galaxy::System::update ( Registry & registry)
pure virtual

Abstract implementation for updating the system. Use the manager to retreive your components.

Parameters
registryEntity registry to process.

◆ id()

const std::string & galaxy::System::id ( ) const
nodiscardnoexcept

Get identifier.

Returns
Const string reference.

Definition at line 36 of file System.cpp.

◆ operator=() [2/2]

System & galaxy::System::operator= ( const System & )
privatedelete

Copy assignment operator.

Member Data Documentation

◆ m_id

std::string galaxy::System::m_id
protected

Debug id.

Definition at line 81 of file System.hpp.


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