bool contains(size_t value) const
Domain(const DiscreteKey &dkey, size_t v)
std::set< size_t > values_
Cardinality.
void erase(size_t value)
Erase a value, non const :-(.
void insert(size_t value)
Insert a value, non const :-(.
uint64_t nrValues() const override
Get the number of non-zero values contained in this factor.
bool equals(const DiscreteFactor &other, double tol) const override
equals
Domain(const DiscreteKey &dkey)
size_t firstValue() const
std::shared_ptr< Domain > shared_ptr
allowed values
DiscreteKey discreteKey() const