libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
from::DLRF::DLRuntimeClass Class Referenceabstract

Abstract class used for type reflection. More...

#include <reflection.hpp>

Classes

struct  DLRuntimeObjectHolder
 

Public Types

using DLRuntimeClassHolder = DLRuntimeObjectHolder< DLRuntimeClass >
 
using DLRuntimeMethodHolder = DLRuntimeObjectHolder< DLRuntimeMethod >
 

Public Member Functions

virtual const charget_class_name () const noexcept=0
 Get the name of the type.
 
virtual const wchar_tget_class_name_w () const noexcept=0
 Get the name of the type (wide).
 
virtual size_t get_class_size () const noexcept=0
 Get the size of the type.
 
const DLRuntimeClassget_class_base () const noexcept
 Get a derived class's base class.
 
const from::vector< DLRuntimeMethodHolder > & get_methods () const noexcept
 Get every bound method.
 

Static Public Member Functions

static const from::vector< DLRuntimeClassHolder > * get_registered_classes () noexcept
 Get a vector of all globally registered DLRuntimeClasses.
 
static DLRuntimeClassget_runtime_class (std::string_view class_name) noexcept
 

Detailed Description

Abstract class used for type reflection.

Allows for runtime type introspection and for binding method invokers.

Typically statically allocated, widely used in ELDEN RING.

Member Function Documentation

◆ get_class_base()

const DLRuntimeClass * from::DLRF::DLRuntimeClass::get_class_base ( ) const
inlinenoexcept

Get a derived class's base class.

Returns
const DLRuntimeClass* (may be null if not derived)

◆ get_class_name()

virtual const char * from::DLRF::DLRuntimeClass::get_class_name ( ) const
pure virtualnoexcept

Get the name of the type.

Returns
const char* name of the type

◆ get_class_name_w()

virtual const wchar_t * from::DLRF::DLRuntimeClass::get_class_name_w ( ) const
pure virtualnoexcept

Get the name of the type (wide).

Returns
const wchar_t* name of the type

◆ get_class_size()

virtual size_t from::DLRF::DLRuntimeClass::get_class_size ( ) const
pure virtualnoexcept

Get the size of the type.

Returns
size_t size of the type

◆ get_methods()

const from::vector< DLRuntimeMethodHolder > & from::DLRF::DLRuntimeClass::get_methods ( ) const
inlinenoexcept

Get every bound method.

Returns
const from::vector<DLRuntimeMethodHolder>& vector of bound methods

◆ get_registered_classes()

static const from::vector< DLRuntimeClassHolder > * from::DLRF::DLRuntimeClass::get_registered_classes ( )
inlinestaticnoexcept

Get a vector of all globally registered DLRuntimeClasses.

The returned vector contains every DLRuntimeClass that has been registered so far by ELDEN RING. Be aware that classes are registered during the static initialization phase, so this vector will not be initialized before that point.

Returns
from::vector<DLRuntimeClassHolder>& vector of DLRuntimeClassHolder objects

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