#include <discrete_variable.hpp>
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_type & | id () |
| get the variable id | |
| const id_type & | id () const |
| get the variable id | |
| index_type & | size () |
| get the number of assignments the variable can take | |
| const index_type & | size () 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 | |
represents a discrete variable
Definition at line 34 of file discrete_variable.hpp.
| 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.
1.7.1