ae2f::Core
Loading...
Searching...
No Matches
ae2f::Ds::Alloc::iOwner< __imp > Struct Template Reference

#include <Own.hpp>

Inheritance diagram for ae2f::Ds::Alloc::iOwner< __imp >:
ae2f::Ds::Alloc::xrOwner ae2f::Ds::Alloc::vfDef< __imp >

Public Member Functions

 iOwner (ae2f_errint_t *perr=0) noexcept
 Initialises the pointer.
Injects the function pointers automatically.
 
- Public Member Functions inherited from ae2f::Ds::Alloc::xrOwner
ae2f_errint_t Read (size_t i, void *dest, size_t destlen) const noexcept
 Gets data from a class.
 
ae2f_errint_t Write (size_t i, const void *src, size_t srclen) noexcept
 Sets data to a class.
 
ae2f_errint_t Length (size_t *lenbuff, size_t *elsizebuff) const noexcept
 Gets the length, and element size of the class.
 
ae2f_errint_t Resize (size_t bytecount) noexcept
 Resizes the memory of [This] as bytes count.
Additional memories(newly allocated) must be initiated as 0.
Element size will be suggested as 1.
 
ae2f_errint_t ReConfig (size_t elcount, size_t elsize)
 Resizes the memory of [This].
Additional memories(newly allocated) must be initiated as 0.
 
 ~xrOwner () noexcept
 Frees the memory of class.
Error code will be stored in ae2f_errGlob_LastErr.
 
ae2f_errint_t Copy (const rRefer &src) noexcept
 Allocates the memory. Copies the data from [src] to a class.
 
ae2f_errint_t Copy (const rRefer &&src) noexcept
 Allocates the memory. Copies the data from [src] to a class.
 
 xrOwner (ae2f_errint_t *perr, const ae2f_ds_vAlloc *imp) noexcept
 Initialises the pointer.
Injects the function pointers automatically.
 

Additional Inherited Members

- Static Public Member Functions inherited from ae2f::Ds::Alloc::vfDef< __imp >
static constexpr ae2f_ds_vAlloc___vRef () noexcept
 

Detailed Description

template<const ae2f_ds_vAlloc * __imp>
struct ae2f::Ds::Alloc::iOwner< __imp >

This structure owns the memory.

An interface to implement the linear array.

Template Parameters
__impFunction implementations set.
See also
ae2f_ds_cAlloc
ae2f_ds_Alloc_cOwn
ae2f::Ds::Alloc::rOwner

Constructor & Destructor Documentation

◆ iOwner()

template<const ae2f_ds_vAlloc * __imp>
ae2f::Ds::Alloc::iOwner< __imp >::iOwner ( ae2f_errint_t * perr = 0)
inlinenoexcept

Initialises the pointer.
Injects the function pointers automatically.

Parameters
perrAn address where state number be stored.
Setting it 0 will cause a status number stored in ae2f_errGlob_LastErr.
impClass Implementations
Returns
ae2f_errGlob_OK
Exceptions

ae2f_ds_Alloc_Err_FPIMPNULL
ae2f_errGlob_PTR_IS_NULL

See also
ae2f_ds_Alloc_cOwn
ae2f::Ds::Alloc::xrOwner::xrOwner

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