WARPXM v1.10.0
|
Opaque Pointer object that carries the referenced data type, but does not expose this payload type as part of the pointer type. More...
#include <wmopaqueptr.h>
Opaque Pointer object that carries the referenced data type, but does not expose this payload type as part of the pointer type.
Points to constant payload.
Public Member Functions | |
template<typename VALUETYPE > | |
WmConstOpaquePtr (const VALUETYPE *pointer) | |
Create new opaque pointer from a pointer of a given type. | |
WmConstOpaquePtr (const WmOpaquePtr &source) | |
convert from WmOpaquePtr to WmConstOpaquePtr | |
const WmTypeWrapper | getType () const |
const void * | getDataPtr () const |
template<typename VALUETYPE > | |
const VALUETYPE * | getTypedPointer () const |
Extract the typed pointer from the opaque pointer. | |
|
inline |
Create new opaque pointer from a pointer of a given type.
pointer | Pointer to be stored |
|
inline |
convert from WmOpaquePtr to WmConstOpaquePtr
|
inline |
|
inline |
|
inline |
Extract the typed pointer from the opaque pointer.
If the type specified by the template 'VALUETYPE' is not the correct type of the pointer stored, a std::bad_cast exception is thrown.