EventAnalysis
1.3.0
|
Wrapper class for non-copy-constructible objects. More...
#include <ObjectWrapperT.h>
Public Member Functions | |
std::unique_ptr< ObjectWrapperBase > | CloneObject () |
Throws an exception since the wrapped object is not copy-constructible. More... | |
std::unique_ptr< ObjectWrapperBase > | CloneWrapper () |
Clones the wrapper. More... | |
![]() | |
ObjectWrapperTImpl (observer_ptr< DataType > dataObjPtr) | |
Constructor. More... | |
ObjectWrapperTImpl (std::shared_ptr< DataType > dataObjPtr) | |
Constructor. More... | |
ObjectWrapperTImpl (std::unique_ptr< DataType > dataObjPtr) | |
Constructor. More... | |
ObjectWrapperTImpl (const ObjectWrapperTImpl< DataType > &) | |
Copy constructor. More... | |
observer_ptr< DataType > | GetObj () |
Data object getter method. More... | |
bool | IsPolymorphic () |
Test for polymorphic wrapped object. More... | |
bool | IsConst () |
Test for const wrapped object. More... | |
const std::type_info & | GetObjType () |
Returns the type of the wrapped object. More... | |
void | WrapNothing () |
Remove the wrapped object. More... | |
bool | WrapsSomething () |
Checks if the wrapper wraps something. More... | |
void * | GetObjAddress () |
Getter for raw pointer to the wrapped object. More... | |
bool | WrapObject (void *address, const std::type_info &type, bool own, bool isPolymorphic, bool isConst) |
Wrap the object at the given address. More... | |
![]() | |
virtual | ~ObjectWrapperBase () |
Destructor. More... | |
Additional Inherited Members | |
![]() | |
ObjectWrapperBase () | |
Constructor. More... | |
![]() | |
observer_ptr< DataType > | _dataObjPtr |
std::shared_ptr< DataType > | _dataObjSharedPtr |
Wrapper class for non-copy-constructible objects.
This class wraps non-copy-constructible events. For these objects the ObjectWrapperBase::CloneObject method cannot be implemented generically, its override throws an exception.
|
inlinevirtual |
Throws an exception since the wrapped object is not copy-constructible.
std::logic_error | always. |
Implements EA::ObjectWrapperBase.
|
inlinevirtual |
Clones the wrapper.
Creates a new wrapper wrapping the same object.
Implements EA::ObjectWrapperBase.