Specialization of ObjectWrapperTImpl for void.
More...
#include <ObjectWrapperT.h>
template<>
class EA::ObjectWrapperTImpl< void >
Specialization of ObjectWrapperTImpl for void.
This specialization of ObjectWrapperTImpl can be used to wrap those objects whose type is completely unknown at compile time.
◆ ObjectWrapperTImpl() [1/2]
Constructor.
Constructs a wrapper holding a pointer to data object passed as first argument. The wrapper will not own the object.
- Parameters
-
dataObjPtr | pointer to the data object to be wrapped. |
◆ ObjectWrapperTImpl() [2/2]
◆ GetObjAddress()
Getter for raw pointer to the wrapped object.
- Returns
- the address of the wrapped object.
Implements EA::ObjectWrapperBase.
◆ GetObjType()
Returns the type of the wrapped object.
- Returns
- The type of the wrapped object.
Implements EA::ObjectWrapperBase.
◆ IsConst()
Test for const wrapped object.
- Returns
- true if the wrapped object is constant.
Implements EA::ObjectWrapperBase.
◆ IsPolymorphic()
Test for polymorphic wrapped object.
- Returns
- true if the wrapped object is of a polymorphic class.
Implements EA::ObjectWrapperBase.
◆ WrapNothing()
Remove the wrapped object.
Makes the wrapper wrap no object. An eventual previously wrapped object will be deleted if the object is owned by the wrapper.
Implements EA::ObjectWrapperBase.
◆ WrapObject()
bool EA::ObjectWrapperTImpl< void >::WrapObject |
( |
void * |
address, |
|
|
const std::type_info & |
type, |
|
|
bool |
own, |
|
|
bool |
isPolymorphic, |
|
|
bool |
isConst |
|
) |
| |
|
virtual |
Wrap the object at the given address.
Set the wrapped object. This method should be used only in those rare cases where the object is available only through a void*. Type check is enforced through the #type argument.
- Parameters
-
address | The address of the object to be wrapped. |
type | The type of the object at the given address. |
own | If true then the wrapper will own the wrapped object. |
isPolymorhic | Set to true for objects of polymorphic classes. |
isCopnst | Set to true for constant objects. |
- Returns
- true if the object at the given address has been correctly wrapped.
Implements EA::ObjectWrapperBase.
◆ WrapsSomething()
Checks if the wrapper wraps something.
- Returns
- true if the wrapped pointer is not nullptr.
Implements EA::ObjectWrapperBase.
◆ _dataObjPtr
◆ _isConst
◆ _isPolymorphic
◆ _type
The documentation for this class was generated from the following files: