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

Detailed Description

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

Definition at line 201 of file any.h.

Inheritance diagram for NonOwningAnyPolicy< 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 216 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 250 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 240 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 257 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 262 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 208 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 223 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 231 of file any.h.


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

SHOGUN Machine Learning Toolbox - Documentation