xentara-plugin v1.2.1
The Xentara Plugin Framework
Loading...
Searching...
No Matches
xentara::memory::Initializer< Array > Class Referencefinal

An accessor used for the initialization of memory containing a heterogenious array. More...

#include <memory/Initializer_Array.hpp>

+ Inheritance diagram for xentara::memory::Initializer< Array >:

Public Member Functions

auto operator[] (const Array::Handle &handle) const noexcept -> void *
 Gets a raw memory element.
 
template<typename Type >
auto operator[] (const Array::ObjectHandle< Type > &handle) const noexcept -> Type &
 Gets an element containing a C++ object.
 

Detailed Description

An accessor used for the initialization of memory containing a heterogenious array.

Member Function Documentation

◆ operator[]() [1/2]

auto xentara::memory::Initializer< Array >::operator[] ( const Array::Handle handle) const -> void *
noexcept

Gets a raw memory element.

Parameters
handleThe element handle
Returns
The placement of the corresponding element

◆ operator[]() [2/2]

template<typename Type >
auto xentara::memory::Initializer< Array >::operator[] ( const Array::ObjectHandle< Type > &  handle) const -> Type &
noexcept

Gets an element containing a C++ object.

Parameters
handleThe element handle
Returns
A reference to the corresponding element