22 #include <boost/assign.hpp> 36 typedef boost::shared_ptr<Constraint>
shared_ptr;
56 template<
class KeyIterator>
81 virtual bool ensureArcConsistency(
size_t j, std::vector<Domain>& domains)
const = 0;
88 virtual shared_ptr
partiallyApply(
const std::vector<Domain>&)
const = 0;
Constraint(KeyIterator beginKey, KeyIterator endKey)
construct from container
Definition: Constraint.h:57
A non-templated config holding any types of Manifold-group elements.
Definition: Values.h:70
Base class for discrete probabilistic factors The most general one is the derived DecisionTreeFactor.
Definition: Constraint.h:32
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:57
Base class for discrete probabilistic factors The most general one is the derived DecisionTreeFactor.
Definition: DiscreteFactor.h:34
virtual shared_ptr partiallyApply(const Values &) const =0
Partially apply known values.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition: Key.h:56
virtual ~Constraint()
Virtual destructor.
Definition: Constraint.h:70
Constraint()
Default constructor for I/O.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
Constraint(const KeyVector &js)
Construct n-way factor.
Definition: Constraint.h:41
boost::shared_ptr< DiscreteFactor > shared_ptr
shared_ptr to this class
Definition: DiscreteFactor.h:40
Constraint(Key j)
Construct unary factor.
Definition: Constraint.h:46
Constraint(Key j1, Key j2)
Construct binary factor.
Definition: Constraint.h:51
Symbols for exporting classes and methods from DLLs.