SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 103 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 bool matches (const std::type_info &ti) const
 
bool equals (void **storage, void **other_storage) const
 

Member Function Documentation

virtual void clear ( void **  storage) const
virtual

Clears storage.

Parameters
storagepointer to a pointer to storage

Implements BaseAnyPolicy.

Definition at line 118 of file any.h.

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 145 of file any.h.

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 135 of file any.h.

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 110 of file any.h.

virtual std::string type ( ) const
virtual

Returns type-name as string.

Returns
name of type class

Implements BaseAnyPolicy.

Definition at line 126 of file any.h.


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

SHOGUN Machine Learning Toolbox - Documentation