31 template<
typename VALUETYPE>
56 static_assert(!(std::is_pointer<VALUETYPE>::value),
57 "getTypedPointer() takes base template type, not pointer type.");
60 getType() ==
typeid(VALUETYPE) ?
static_cast<VALUETYPE*
>(_data) : NULL;
66 throw std::bad_cast();
88 template<
typename VALUETYPE>
121 static_assert(!(std::is_pointer<VALUETYPE>::value),
122 "getTypedPointer() takes base template type, not pointer type.");
124 const VALUETYPE* result =
125 getType() ==
typeid(VALUETYPE) ?
static_cast<const VALUETYPE*
>(_data) : NULL;
131 throw std::bad_cast();
Opaque Pointer object that carries the referenced data type, but does not expose this payload type as...
Definition: wmopaqueptr.h:81
const void * getDataPtr() const
Definition: wmopaqueptr.h:107
WmConstOpaquePtr(const WmOpaquePtr &source)
convert from WmOpaquePtr to WmConstOpaquePtr
Definition: wmopaqueptr.h:97
const WmTypeWrapper getType() const
Definition: wmopaqueptr.h:102
const VALUETYPE * getTypedPointer() const
Extract the typed pointer from the opaque pointer.
Definition: wmopaqueptr.h:119
WmConstOpaquePtr(const VALUETYPE *pointer)
Create new opaque pointer from a pointer of a given type.
Definition: wmopaqueptr.h:89
Opaque Pointer object that carries the referenced data type, but does not expose this payload type as...
Definition: wmopaqueptr.h:24
const WmTypeWrapper getType() const
Definition: wmopaqueptr.h:37
VALUETYPE * getTypedPointer() const
Extract the typed pointer from the opaque pointer.
Definition: wmopaqueptr.h:54
void * getDataPtr() const
Definition: wmopaqueptr.h:42
WmOpaquePtr(VALUETYPE *pointer)
Create new opaque pointer from a pointer of a given type.
Definition: wmopaqueptr.h:32
Definition: wmtypewrapper.h:21