|
GEGELATI
|
#include <pointerWrapper.h>
Public Member Functions | |
| PointerWrapper (T *ptr=nullptr) | |
| Constructor for the PointerWrapper class. | |
| virtual | ~PointerWrapper ()=default |
| Default destructor. | |
| PointerWrapper (const PointerWrapper< T > &other)=default | |
| Default copy constructor. | |
| virtual DataHandler * | clone () const override |
| Return a PrimitiveTypeArray<T> where the data of the PointerWrapper has been copied. | |
| virtual bool | canHandle (const std::type_info &type) const override |
| Inherited from DataHandler. | |
| virtual size_t | getAddressSpace (const std::type_info &type) const override |
| Inherited from DataHandler. | |
| virtual size_t | getLargestAddressSpace (void) const override |
| Inherited from DataHandler. | |
| virtual size_t | getHash () const override |
| Inherited from DataHandler. | |
| void | resetData () override |
| Inherited from DataHandler. Does nothing. | |
| void | setPointer (T *ptr) |
| Set the pointer of the PointerWrapper. | |
| virtual UntypedSharedPtr | getDataAt (const std::type_info &type, const size_t address) const override |
| Inherited from DataHandler. | |
| virtual std::vector< size_t > | getAddressesAccessed (const std::type_info &type, const size_t address) const override |
| Inherited from DataHandler. | |
| virtual const std::type_info & | getNativeType () const override |
| Inherited from DataHandler. | |
| virtual std::vector< size_t > | getDimensionsSize () const override |
| Inherited from DataHandler. | |
Public Member Functions inherited from Data::DataHandler | |
| DataHandler () | |
| Default constructor of the DataHandler class. | |
| virtual | ~DataHandler ()=default |
| Default destructor. | |
| DataHandler (const DataHandler &other)=default | |
| Default copy constructor. | |
| size_t | getId () const |
| Get the ID of the DataHandler. | |
| uint64_t | scaleLocation (const uint64_t rawLocation, const std::type_info &type) const |
| Scale a location from the Environment largestAddressSpace to the largestAddressSpace of the dataHandler, for the given data type. | |
Protected Member Functions | |
| virtual size_t | updateHash () const override |
| Implementation of the updateHash method. | |
Protected Attributes | |
| T * | containerPtr |
| Pointer to the data accessed through the PointerWrapper. | |
Protected Attributes inherited from Data::DataHandler | |
| const size_t | id |
| Identifier of each DataHandler. | |
| size_t | cachedHash |
| Cached value returned by the getHash() function. | |
| bool | invalidCachedHash |
| Boolean value indicating whether the current cachedValue is valid, or not. | |
Friends | |
| template<class U > | |
| class | PrimitiveTypeArray |
Additional Inherited Members | |
Static Protected Attributes inherited from Data::DataHandler | |
| static size_t | count = 0 |
| Static count used to initialize the id of each DataHandler. | |
DataHandler for manipulating pointers to primitive data type.
Contrary to the PrimitiveTypeArray does not contain its data, but possesses a pointer to them.
Constructor for the PointerWrapper class.
| [in] | ptr | the pointer managed by the PointerWrapper. |
|
inlineoverridevirtual |
Inherited from DataHandler.
Implements Data::DataHandler.
|
inlineoverridevirtual |
Return a PrimitiveTypeArray<T> where the data of the PointerWrapper has been copied.
Implements Data::DataHandler.
|
inlineoverridevirtual |
Inherited from DataHandler.
Implements Data::DataHandler.
|
inlineoverridevirtual |
Inherited from DataHandler.
Implements Data::DataHandler.
|
inlineoverridevirtual |
Inherited from DataHandler.
Implements Data::DataHandler.
|
inlineoverridevirtual |
Inherited from DataHandler.
Implements Data::DataHandler.
|
inlineoverridevirtual |
Inherited from DataHandler.
Reimplemented from Data::DataHandler.
|
inlineoverridevirtual |
Inherited from DataHandler.
Implements Data::DataHandler.
|
inlineoverridevirtual |
Inherited from DataHandler.
Implements Data::DataHandler.
|
inlineoverridevirtual |
Inherited from DataHandler. Does nothing.
Implements Data::DataHandler.
Set the pointer of the PointerWrapper.
This method automatically invalidates the cachedHash.
| [in] | ptr | the new pointer managed by the PointerWrapper. |
|
inlineoverrideprotectedvirtual |
Implementation of the updateHash method.
Hash is very lightweight and does not need to be cashed. This method is empty.
Implements Data::DataHandler.