#include <Ptr.h>
emp::PtrInfo::PtrInfo |
( |
const void * |
_ptr | ) |
|
|
inline |
emp::PtrInfo::PtrInfo |
( |
const void * |
_ptr, |
|
|
size_t |
_array_bytes |
|
) |
| |
|
inline |
emp::PtrInfo::PtrInfo |
( |
const PtrInfo & |
| ) |
|
|
default |
emp::PtrInfo::PtrInfo |
( |
PtrInfo && |
| ) |
|
|
default |
emp::PtrInfo::~PtrInfo |
( |
| ) |
|
|
inline |
void emp::PtrInfo::Dec |
( |
size_t |
id | ) |
|
|
inline |
size_t emp::PtrInfo::GetArrayBytes |
( |
| ) |
const |
|
inlinenoexcept |
If this ptr is to an array, how many bytes large is the array (may be different from size!)
int emp::PtrInfo::GetCount |
( |
| ) |
const |
|
inlinenoexcept |
How many Ptr objects point to the associated position?
const void* emp::PtrInfo::GetPtr |
( |
| ) |
const |
|
inlinenoexcept |
What pointer does this one hold information about?
void emp::PtrInfo::Inc |
( |
size_t |
id | ) |
|
|
inline |
bool emp::PtrInfo::IsActive |
( |
| ) |
const |
|
inlinenoexcept |
Is this pointer currently valid to access?
bool emp::PtrInfo::IsArray |
( |
| ) |
const |
|
inlinenoexcept |
Is this pointer pointing to an array?
void emp::PtrInfo::MarkDeleted |
( |
| ) |
|
|
inline |
Indicate that the associated position has been deleted.
bool emp::PtrInfo::OK |
( |
| ) |
const |
|
inlinenoexcept |
Debug utility to determine if everything looks okay with this pointer's information.
void emp::PtrInfo::SetArray |
( |
size_t |
bytes | ) |
|
|
inlinenoexcept |
Denote that this pointer is an array.
The documentation for this class was generated from the following file: