Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::aot::Module Class Reference

#include <AotModule.hpp>

Public Member Functions

 Module ()=default
 ~Module ()
 Module (const Module &)=delete
Module & operator= (const Module &)=delete
 Module (Module &&other) noexcept
Module & operator= (Module &&other) noexcept
bool open (const char *path, std::uint64_t expected, std::string *why=nullptr)
std::uint64_t contract () const
bool isOpen () const
std::span< const EsSystemDecl > systems () const
const EsSystemDecl * find (const char *name) const
void close ()

Detailed Description

Definition at line 35 of file AotModule.hpp.

Constructor & Destructor Documentation

◆ Module() [1/3]

esengine::aot::Module::Module ( )
default

◆ ~Module()

esengine::aot::Module::~Module ( )
inline

Definition at line 38 of file AotModule.hpp.

References close().

◆ Module() [2/3]

esengine::aot::Module::Module ( const Module & )
delete

References Module().

◆ Module() [3/3]

esengine::aot::Module::Module ( Module && other)
inlinenoexcept

Definition at line 41 of file AotModule.hpp.

References Module().

Member Function Documentation

◆ close()

void esengine::aot::Module::close ( )
inline

Definition at line 104 of file AotModule.hpp.

References esengine::core::closeLibrary().

Referenced by ~Module(), and operator=().

◆ contract()

std::uint64_t esengine::aot::Module::contract ( ) const
inline

Which BUILD this module is, for a caller holding the sidecar written beside it. Zero where the module predates it — which the caller must read as "cannot say", never as "paired".

Definition at line 89 of file AotModule.hpp.

◆ find()

const EsSystemDecl * esengine::aot::Module::find ( const char * name) const
inline

One by the name the schedule knows, or nullptr.

Definition at line 97 of file AotModule.hpp.

◆ isOpen()

bool esengine::aot::Module::isOpen ( ) const
inline

Definition at line 91 of file AotModule.hpp.

◆ open()

bool esengine::aot::Module::open ( const char * path,
std::uint64_t expected,
std::string * why = nullptr )
inline

Open a module and check it says what expected says (see abiHash).

why is filled on every false: the ways this fails want different fixes — the file is absent, it carries no declaration table, or it was built for another engine.

Definition at line 59 of file AotModule.hpp.

References Module(), esengine::core::librarySymbol(), and esengine::core::openLibrary().

◆ operator=() [1/2]

Module & esengine::aot::Module::operator= ( const Module & )
delete

References Module().

◆ operator=() [2/2]

Module & esengine::aot::Module::operator= ( Module && other)
inlinenoexcept

Definition at line 42 of file AotModule.hpp.

References Module(), and close().

◆ systems()

std::span< const EsSystemDecl > esengine::aot::Module::systems ( ) const
inline

Every system this module carries, as the artifact declares them.

Definition at line 94 of file AotModule.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/aot/AotModule.hpp