GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
graphlab::any::holder< ValueType > Class Template Reference

#include <graphlab/util/generics/any.hpp>

List of all members.

Classes

struct  registry_type

Public Types

typedef ValueType value_type

Public Member Functions

 holder (const ValueType &value)
 Construct a holder from a value.
 holder (iarchive_soft_fail &arc)
 Construct a holder from an archive.
const std::type_info & type () const
 Get the type info of the holder.
iholder * clone () const
 Clone a holder.
void deep_op_equal (const iholder *other)
 Deep assignment.
uint64_t deserializer_id () const
void save (oarchive_soft_fail &arc) const
std::ostream & print (std::ostream &out) const

Static Public Member Functions

static iholder * deserialize (iarchive_soft_fail &arc)
static iholder * load (iarchive_soft_fail &arc)

Public Attributes

ValueType contents
 The actual contents of the holder.

Static Public Attributes

static registry_type registry

Detailed Description

template<typename ValueType>
class graphlab::any::holder< ValueType >

holder is an instantiation of iholder

Definition at line 301 of file any.hpp.


Member Function Documentation

template<typename ValueType >
static iholder* graphlab::any::holder< ValueType >::deserialize ( iarchive_soft_fail arc)
inlinestatic

The actual deserialization function for this holder type

Definition at line 335 of file any.hpp.

template<typename ValueType >
uint64_t graphlab::any::holder< ValueType >::deserializer_id ( ) const
inline

Get the deserializer id from the static registry associated with this type of holder

Definition at line 322 of file any.hpp.

template<typename ValueType >
std::ostream& graphlab::any::holder< ValueType >::print ( std::ostream &  out) const
inline

Print the contents or the type if the contents does not support printing

Definition at line 330 of file any.hpp.


Member Data Documentation

template<typename ValueType >
any::holder< ValueType >::registry_type graphlab::any::holder< ValueType >::registry
static

The registry is a static member that will get constructed before main and used to register the any type

This static membery computes the holder (type specific) deserialization id and also registers it with the global registry.

Definition at line 361 of file any.hpp.


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