104 if (
this != &from) {
_total_order_ = std::move(from._total_order_); }
109 switch (change.
type()) {
126 "Graph change operation "
128 <<
" is not supported by the Total Order structural constraint");
133 switch (change.
type()) {
151 "edge modifications are not "
152 "supported by the Total Order structural constraint");
Base class for all oriented graphs.
Exception : operation not allowed.
std::string typeAsString() const
returns a string corresponding to the type of the change
NodeId node1() const noexcept
returns the first node involved in the modification
GraphChangeType type() const noexcept
returns the type of the operation
NodeId node2() const noexcept
returns the second node involved in the modification
NodeId node3() const
returns the third node involved in the modification (if any)
the structural constraint imposing a total order over some nodes
StructuralConstraintTotalOrder()
default constructor
Sequence< NodeId > _total_order_
the total ordering over the nodes
bool isAlwaysInvalidAlone(const GraphChange &change) const
indicates whether a change will always violate the constraint
bool checkArcTriangleDeletion2Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion2
bool checkModificationAlone(const ArcAddition &change) const
checks whether the constraints enable to add an arc
bool checkArcAdditionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to add arc (x,y)
virtual ~StructuralConstraintTotalOrder()
destructor
bool checkArcTriangleDeletion1Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion1
StructuralConstraintTotalOrder & operator=(const StructuralConstraintTotalOrder &from)
copy operator
bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
#define GUM_ERROR(type, msg)
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the structural constraint imposing a total ordering over some nodes
the structural constraint imposing a total order over some nodes