CyberEngineMkIII
|
An instance of this object is the entirety of the engine. More...
#include <CYBCore.hpp>
Public Member Functions | |
Context & | CurrentContext (void) noexcept |
Get the current Context. More... | |
void | SetCurrentContext (Context &ANewContext) noexcept |
Set the current Context. More... | |
void | DefaultContext (void) noexcept |
Set the current Context to FEngineContext. More... | |
unsigned long long | ThreadID (void) noexcept |
Possibly assign and return the current thread's serial ID for this execution. More... | |
Static Public Member Functions | |
static Core & | GetCore (void) noexcept |
Retrieve the Core singleton. More... | |
static void | Run (const unsigned int ANumArguments, const oschar_t *const *const AArguments) noexcept |
Runs the engine and self terminates. More... | |
Public Attributes | |
API::EngineInformation | FEngineInformation |
Information describing the engine. | |
Platform::Modules::Manager | FModuleManager |
Loads and contains required modules. | |
CYB::Engine::Helpers::CommandLine | FCommandLine |
The parsed command line handler. | |
Private Member Functions | |
Core (const unsigned int ANumArguments, const oschar_t *const *const AArguments) | |
Constructs the engine components. More... | |
~Core () | |
Cleans up the engine and terminates the process. | |
bool | LaunchUnit (void) noexcept |
Run the main unit. More... | |
Private Attributes | |
Platform::System::Console | FConsole |
The console. | |
std::atomic_uint_fast64_t | FThreadCounter |
The number of threads created. | |
Logger | FLogger |
The engine's primary Logger. | |
Memory::Heap | FHeap |
The engine's primary Heap. | |
Context | FEngineContext |
The engine Context. | |
Static Private Attributes | |
static thread_local Context * | FCurrentContext |
The current Context in use. | |
static thread_local unsigned long long | FThreadID |
ID of the checking thread. | |
Additional Inherited Members | |
![]() | |
Singleton (const bool AInit) noexcept | |
Optionally initialize the singleton with the current object. More... | |
~Singleton () | |
Destroy a singleton and nullify it's pointer. | |
![]() | |
static Core * | FSingleton |
The singleton object. | |
An instance of this object is the entirety of the engine.
Definition at line 11 of file CYBCore.hpp.
|
private |
Constructs the engine components.
ANumArguments | The number of command line arguments |
AArguments | The command line arguments |
CYB::Exception::Internal | Error code: CYB::Exception::Internal::MEMORY_RESERVATION_FAILURE. Thrown if a heap's memory could not be reserved |
CYB::Exception::Internal | Error code: CYB::Exception::Internal::MEMORY_COMMITAL_FAILURE. Thrown if a heap's memory could not be committed |
Definition at line 27 of file CYBCore.cpp.
|
noexcept |
Get the current Context.
Definition at line 57 of file CYBCore.cpp.
|
noexcept |
Set the current Context to FEngineContext.
Definition at line 65 of file CYBCore.cpp.
|
staticnoexcept |
Retrieve the Core singleton.
Definition at line 45 of file CYBCore.cpp.
|
privatenoexcept |
Run the main unit.
|
staticnoexcept |
Runs the engine and self terminates.
ANumArguments | The number of command line arguments |
AArguments | The command line arguments |
Definition at line 49 of file CYBCore.cpp.
|
noexcept |
Set the current Context.
ANewContext | The new context |
Definition at line 61 of file CYBCore.cpp.
|
noexcept |
Possibly assign and return the current thread's serial ID for this execution.
Definition at line 73 of file CYBCore.cpp.