SHOGUN
4.2.0
|
An interface for a policy to store a value. Value can be any data like primitive data-types, shogun objects, etc. Policy defines how to handle this data. It works with a provided memory region and is able to set value, clear it and return the type-name as string.
Public Member Functions | |
virtual void | set (void **storage, const void *v) const =0 |
virtual void | clear (void **storage) const =0 |
virtual std::string | type () const =0 |
virtual bool | matches (const std::type_info &ti) const =0 |
virtual bool | equals (void **storage, void **other_storage) const =0 |
|
pure virtual |
Clears storage.
storage | pointer to a pointer to storage |
Implemented in PointerValueAnyPolicy< T >.
|
pure virtual |
Compares two storages.
storage | pointer to a pointer to storage |
other_storage | pointer to a pointer to another storage |
Implemented in PointerValueAnyPolicy< T >.
|
pure virtual |
Compares type.
ti | type information |
Implemented in PointerValueAnyPolicy< T >.
|
pure virtual |
Puts provided value pointed by v (untyped to be generic) to storage.
storage | pointer to a pointer to storage |
v | pointer to value |
Implemented in PointerValueAnyPolicy< T >.
|
pure virtual |