#include <Assignment.h>
Public Member Functions | |
Assignment ()=default | |
Assignment (std::initializer_list< std::pair< const L, size_t >> init) | |
Static Private Member Functions | |
static std::string | DefaultFormatter (const L &x) |
Default method used by labelFormatter or valueFormatter when printing. More... | |
An assignment from labels to value index (size_t). Assigns to each label a value. Implemented as a simple map. A discrete factor takes an Assignment and returns a value.
Definition at line 37 of file Assignment.h.
|
default |
|
inline |
Definition at line 58 of file Assignment.h.
|
inlinestaticprivate |
Default method used by labelFormatter
or valueFormatter
when printing.
x | The value passed to format. |
Definition at line 45 of file Assignment.h.