ae2f::Core
Loading...
Searching...
No Matches
Alloc.h File Reference
#include <ae2f/Macro/Cast.h>
#include <ae2f/Macro/Cmp.h>
#include <ae2f/Macro/errGlob.h>
#include <ae2f/Macro/Call.h>
#include "Alloc/Err.h"
#include "Alloc/Ref.h"
#include "Alloc/Own.h"

Go to the source code of this file.

Classes

struct  ae2f_ds_vAlloc
 Structure for virtual function pointer. More...
 
struct  ae2f_ds_cAlloc
 The data holder for [cRef] and [cOwn]. More...
 

Macros

#define ae2f_ds_Alloc_Err_IDX_INVALID   ae2f_errGlob_WRONG_OPERATION
 
#define _ae2f_ds_Alloc_FndFun(This, Name)
 
#define _ae2f_ds_Alloc_Call(This, Name, ...)
 
#define _ae2f_ds_Alloc_CallVoid(This, Name)
 

Variables

ae2f_SHAREDCALL ae2f_extern const ae2f_struct ae2f_ds_vAlloc ae2f_ds_vAlloc_cLinear
 Each elements will be physically linear.
 

Macro Definition Documentation

◆ _ae2f_ds_Alloc_Call

#define _ae2f_ds_Alloc_Call ( This,
Name,
... )
Value:
(_ae2f_ds_Alloc_FndFun(This, Name) ? _ae2f_ds_Alloc_FndFun(This, Name)(This, __VA_ARGS__) : ae2f_errGlob_IMP_NOT_FOUND)
#define _ae2f_ds_Alloc_FndFun(This, Name)
Definition Alloc.h:53
#define ae2f_errGlob_IMP_NOT_FOUND
Failed to find the function on preprocessor which is callable for some reason No operation has beed d...
Definition errGlob.h:19
Warning
Notice that it can't handle the function without parameters.
For certain functions, use _ae2f_ds_Alloc_CallVoid.
Parameters
This{const ae2f_ds_cAlloc*} Structure
Name{Member Name} Function Name
Exceptions

ae2f_errGlob_IMP_NOT_FOUND

See also
ae2f_ds_cAlloc
_ae2f_ds_Alloc_FndFun

◆ _ae2f_ds_Alloc_CallVoid

#define _ae2f_ds_Alloc_CallVoid ( This,
Name )
Value:
Warning
Notice that it can't handle the function with parameters.
For certain functions, use _ae2f_ds_Alloc_Call.
Parameters
This{const ae2f_ds_cAlloc*} Structure
Name{Member Name} Function Name
Exceptions

ae2f_errGlob_IMP_NOT_FOUND

See also
ae2f_ds_cAlloc
_ae2f_ds_Alloc_FndFun

◆ _ae2f_ds_Alloc_FndFun

#define _ae2f_ds_Alloc_FndFun ( This,
Name )
Value:
#define ae2f_Macro_Cmp_TakeMem(ptr, member, alter)
Gets the member from the pointer. Given nullptr, the return will be alter.
Definition Cmp.h:26
Parameters
This{const ae2f_ds_cAlloc*} Structure The structure suggested to have a function pointer.
Name{Member Name} The valid member's name. Wanted Function Name.
Returns
The Function Pointer with the given name.
Exceptions
0[This] was nullptr.

◆ ae2f_ds_Alloc_Err_IDX_INVALID

#define ae2f_ds_Alloc_Err_IDX_INVALID   ae2f_errGlob_WRONG_OPERATION

Variable Documentation

◆ ae2f_ds_vAlloc_cLinear

ae2f_SHAREDCALL ae2f_extern const ae2f_struct ae2f_ds_vAlloc ae2f_ds_vAlloc_cLinear

Each elements will be physically linear.