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

An accessor used for the initialization of memory containing a single C++ object. More...

#include <memory/Initializer_Object.hpp>

+ Inheritance diagram for xentara::memory::Initializer< Object< Type > >:

Public Types

using TargetObject = memory::Object< Type >
 The object type describing the structure.
 
using Element = typename TargetObject::Element
 The C++ object type.
 

Public Member Functions

auto get () const noexcept -> Element &
 Gets the object.
 
auto operator* () const noexcept -> Element &
 Gets the object.
 
auto operator-> () const noexcept -> Element *
 Member access operator.
 

Detailed Description

template<typename Type>
class xentara::memory::Initializer< Object< Type > >

An accessor used for the initialization of memory containing a single C++ object.

Template Parameters
TypeThe type of the C++ object contained in the memory

Member Typedef Documentation

◆ Element

template<typename Type >
using xentara::memory::Initializer< Object< Type > >::Element = typename TargetObject::Element

The C++ object type.

◆ TargetObject

template<typename Type >
using xentara::memory::Initializer< Object< Type > >::TargetObject = memory::Object<Type>

The object type describing the structure.

Member Function Documentation

◆ get()

template<typename Type >
auto xentara::memory::Initializer< Object< Type > >::get ( ) const -> Element &
noexcept

Gets the object.

Returns
The object

◆ operator*()

template<typename Type >
auto xentara::memory::Initializer< Object< Type > >::operator* ( ) const -> Element &
noexcept

Gets the object.

Returns
The object

◆ operator->()

template<typename Type >
auto xentara::memory::Initializer< Object< Type > >::operator-> ( ) const -> Element *
noexcept

Member access operator.

Returns
A pointer to the object