Structure holding a typesafe pointer. More...
#include <Plumed.h>
Public Attributes | |
__PLUMED_WRAPPER_STD size_t | flags |
sum of: sizeof(pointed data), up to 0x10000 (65536). More... | |
__PLUMED_WRAPPER_STD size_t | nelem |
Number of elements (in case pointing to an array) More... | |
const void * | opt |
Optional information, not used yet More... | |
const void * | ptr |
Pointer to data. More... | |
const __PLUMED_WRAPPER_STD size_t * | shape |
Shape (scanned up to a zero value is found) More... | |
Structure holding a typesafe pointer.
__PLUMED_WRAPPER_STD size_t plumed_safeptr::flags |
sum of: sizeof(pointed data), up to 0x10000 (65536).
0 means size not checked 0x10000 * data type, up to 0xff (255) 0 not typechecked 1 void 2 nullptr 3 integral 4 floating point 5 FILE (size will not be computed as it might be incomplete) >5 not typechecked, reserved for future extensions 0x1000000 * 1 for unsigned (ignored) 0x2000000 * pointer/const type, up to 8 0 not typechecked 1 T (pass-by-value) 2 T * 3 T const * 4 T * * 5 T * const * 6 T const * * 7 T const * const * 0x10000000 * 1 to forbid pointer copy (pointer copy is also forbidden for pass-by-value) 0x20000000 and higher bits are ignored, reserved for future extensions
__PLUMED_WRAPPER_STD size_t plumed_safeptr::nelem |
Number of elements (in case pointing to an array)
const void* plumed_safeptr::opt |
Optional information, not used yet
const void* plumed_safeptr::ptr |
Pointer to data.
const __PLUMED_WRAPPER_STD size_t* plumed_safeptr::shape |
Shape (scanned up to a zero value is found)
Hosted by GitHub | 1.8.17 |