SHOGUN  6.1.3
List of all members | Public Member Functions
PointerValueAnyPolicy< T > Class Template Reference

Detailed Description

template<typename T>
class shogun::PointerValueAnyPolicy< T >

This is one concrete implementation of policy that uses void pointers to store values.

Definition at line 132 of file any.h.

Inheritance diagram for PointerValueAnyPolicy< T >:
[legend]

Public Member Functions

virtual void set (void **storage, const void *v) const
 
virtual void clear (void **storage) const
 
virtual std::string type () const
 
virtual const std::type_info & type_info () 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
 

Member Function Documentation

◆ clear()

virtual void clear ( void **  storage) const
virtual

Clears storage.

Parameters
storagepointer to a pointer to storage

Implements BaseAnyPolicy.

Definition at line 147 of file any.h.

◆ equals()

bool equals ( void **  storage,
void **  other_storage 
) const
virtual

Compares two storages.

Parameters
storagepointer to a pointer to storage
other_storagepointer to a pointer to another storage
Returns
true if both storages have same value

Implements BaseAnyPolicy.

Definition at line 182 of file any.h.

◆ matches()

virtual bool matches ( const std::type_info &  ti) const
virtual

Compares type.

Parameters
titype information
Returns
true if type matches

Implements BaseAnyPolicy.

Definition at line 172 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 189 of file any.h.

◆ policy_type()

virtual PolicyType policy_type ( ) const
virtual

Returns the type of policy.

Returns
type of policy

Implements BaseAnyPolicy.

Definition at line 194 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
storagepointer to a pointer to storage
vpointer to value

Implements BaseAnyPolicy.

Definition at line 139 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 155 of file any.h.

◆ type_info()

virtual const std::type_info& type_info ( ) const
virtual

Returns type info

Returns
type info of value's type

Implements BaseAnyPolicy.

Definition at line 163 of file any.h.


The documentation for this class was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation