template<typename T>
class shogun::NonOwningAnyPolicy< T >
Definition at line 183 of file any.h.
|
virtual void | set (void **storage, const void *v) const |
|
virtual void | clear (void **storage) const |
|
virtual std::string | type () const |
|
virtual bool | matches (const std::type_info &ti) const |
|
bool | equals (void **storage, void **other_storage) const |
|
virtual std::string | policy_name () const |
|
virtual PolicyType | policy_type () const |
|
◆ clear()
virtual void clear |
( |
void ** |
storage | ) |
const |
|
virtual |
Clears storage.
- Parameters
-
storage | pointer to a pointer to storage |
Implements BaseAnyPolicy.
Definition at line 198 of file any.h.
◆ equals()
bool equals |
( |
void ** |
storage, |
|
|
void ** |
other_storage |
|
) |
| const |
|
virtual |
Compares two storages.
- Parameters
-
storage | pointer to a pointer to storage |
other_storage | pointer to a pointer to another storage |
- Returns
- true if both storages have same value
Implements BaseAnyPolicy.
Definition at line 224 of file any.h.
◆ matches()
virtual bool matches |
( |
const std::type_info & |
ti | ) |
const |
|
virtual |
Compares type.
- Parameters
-
- Returns
- true if type matches
Implements BaseAnyPolicy.
Definition at line 214 of file any.h.
◆ policy_name()
virtual std::string policy_name |
( |
| ) |
const |
|
virtual |
Returns the name of policy.
- Returns
- name of policy
Implements BaseAnyPolicy.
Definition at line 231 of file any.h.
◆ policy_type()
Returns the type of policy.
- Returns
- type of policy
Implements BaseAnyPolicy.
Definition at line 235 of file any.h.
◆ set()
virtual void set |
( |
void ** |
storage, |
|
|
const void * |
v |
|
) |
| const |
|
virtual |
Puts provided value pointed by v (untyped to be generic) to storage.
- Parameters
-
storage | pointer to a pointer to storage |
v | pointer to value |
Implements BaseAnyPolicy.
Definition at line 190 of file any.h.
◆ type()
virtual std::string type |
( |
| ) |
const |
|
virtual |
Returns type-name as string.
- Returns
- name of type class
Implements BaseAnyPolicy.
Definition at line 205 of file any.h.
The documentation for this class was generated from the following file: