Public Types | Public Member Functions

graphlab::discrete_variable Class Reference

#include <discrete_variable.hpp>

List of all members.

Public Types

typedef uint32_t id_type
 The type used to store the variable id.
typedef uint32_t index_type
 the type used to index the variable assignments

Public Member Functions

 discrete_variable (id_type id=0, index_type nasgs=0)
id_typeid ()
 get the variable id
const id_typeid () const
 get the variable id
index_typesize ()
 get the number of assignments the variable can take
const index_typesize () const
 get the number of assignments the variable can take
bool operator< (const discrete_variable &other) const
 Compare two variables.
bool operator== (const discrete_variable &other) const
 test equality between two varaibles
bool operator!= (const discrete_variable &other) const
 Test inequality between two variables.
void load (iarchive &arc)
 load the variable from an archive
void save (oarchive &arc) const
 save the variable to an archive

Detailed Description

represents a discrete variable

Definition at line 34 of file discrete_variable.hpp.


Constructor & Destructor Documentation

graphlab::discrete_variable::discrete_variable ( id_type  id = 0,
index_type  nasgs = 0 
) [inline]

construct a discrte variable with a given id and number of assignments

Definition at line 43 of file discrete_variable.hpp.


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