ae2f::Core
Loading...
Searching...
No Matches
Ref.hpp
Go to the documentation of this file.
1
5
6namespace ae2f { namespace Ds { namespace Alloc {
7
15 struct cRefer : public rRefer {
16 public:
17
31 inline ae2f_errint_t Read(size_t idx, void* buff, size_t elsize) const noexcept {
32 return ae2f_ds_Alloc_cRef_Read(this, idx, buff, elsize);
33 }
34
49 inline ae2f_errint_t Write(size_t idx, const void* src, size_t srcsize) noexcept {
50 return ae2f_ds_Alloc_cRef_Write(this, idx, src, srcsize);
51 }
52
65 inline ae2f_errint_t Length(size_t* sizebuff, size_t* elsizebuff) const noexcept {
66 return ae2f_ds_Alloc_cRef_getSize(this, sizebuff, elsizebuff);
67 }
68
77 constexpr cRefer(const rRefer& r) noexcept : rRefer(ae2f_ds_Alloc_cRef_Mk(&r)) {}
78
87 constexpr cRefer(const rRefer&& r) noexcept : rRefer(ae2f_ds_Alloc_cRef_Mk(&r)) {}
88
97 constexpr cRefer(const xrOwner& r) noexcept;
98
103 constexpr cRefer() noexcept : rRefer{ 0, 0 } {}
104 };
105}}}
#define ae2f_ds_Alloc_cRef_getSize(This, sizebuff, elsizebuff)
Gets the length, and element size of the class.
Definition Ref.h:96
#define ae2f_ds_Alloc_cRef_Write(This, idx, src, srcsize)
Sets data to a class.
Definition Ref.h:127
#define ae2f_ds_Alloc_cRef_Read(This, idx, buff, elsize)
Gets data from a class.
Definition Ref.h:111
#define ae2f_ds_Alloc_cRef_Mk(This)
Initialises the class for reffering.
Definition Ref.h:79
uint8_t ae2f_errint_t
Informs that this number represents the error.
Definition errGlob.h:10
ae2f_ds_Alloc_cRef rRefer
Definition Defs.hpp:19
Definition Alloc.hpp:6
Definition Ref.hpp:15
constexpr cRefer() noexcept
A constructor for instance of class without any implementations.
Definition Ref.hpp:103
ae2f_errint_t Write(size_t idx, const void *src, size_t srcsize) noexcept
Sets data to a class.
Definition Ref.hpp:49
constexpr cRefer(const rRefer &r) noexcept
Initialises the class for reffering.
Definition Ref.hpp:77
ae2f_errint_t Length(size_t *sizebuff, size_t *elsizebuff) const noexcept
Gets the length, and element size of the class.
Definition Ref.hpp:65
ae2f_errint_t Read(size_t idx, void *buff, size_t elsize) const noexcept
Gets data from a class.
Definition Ref.hpp:31
constexpr cRefer(const rRefer &&r) noexcept
Initialises the class for reffering.
Definition Ref.hpp:87
Definition Own.hpp:15