xentara-plugin v2.0.4
The Xentara Plugin Framework
Loading...
Searching...
No Matches
xentara::memory::ConstArrayAccessor Class Referencefinal

A class used to access the elements of an array as const. More...

#include <xentara/memory/ConstArrayAccessor.hpp>

+ Inheritance diagram for xentara::memory::ConstArrayAccessor:

Public Member Functions

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

Detailed Description

A class used to access the elements of an array as const.

Member Function Documentation

◆ operator[]() [1/2]

internal auto xentara::memory::ConstArrayAccessor::operator[] ( const Array::Handle handle) const -> 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::ConstArrayAccessor::operator[] ( const Array::ObjectHandle< Type > &  handle) const -> const Type &
noexcept

Gets an element containing a C++ object.

Parameters
handleThe element handle
Returns
A reference to the corresponding element