Class for edges in the variable-value-graph.
More...
#include <dom-sup.hpp>
Constructors | |
Edge (void) | |
Default constructor. More... | |
Edge (VarNode *x, ValNode *v) | |
Construct edge ![]() | |
Access | |
bool | used (BC bc) const |
Whether the edge is used. More... | |
bool | matched (BC bc) const |
return whether the edge is matched More... | |
bool | deleted (void) const |
return whether the edge has been deleted from the graph More... | |
Edge * | next (bool t) const |
return a pointer to the next edge If t is false the function returns the next edge incident on x otherwise it returns the next edge incident on v More... | |
Edge * | next (void) const |
return the pointer to the next edge incident on x More... | |
Edge * | prev (void) const |
return the pointer to the previous edge incident on x More... | |
Edge * | vnext (void) const |
return the pointer to the next edge incident on v More... | |
Edge * | vprev (void) const |
return the pointer to the previous edge incident on v More... | |
VarNode * | getVar (void) const |
return the pointer to the variable node x of this edge More... | |
ValNode * | getVal (void) const |
return the pointer to the value node v of this edge More... | |
Node * | getMate (bool t) const |
return pointer to x if t = true otherwise return v More... | |
void | use (BC bc) |
Update. More... | |
void | free (BC bc) |
Mark the edge as unused. More... | |
void | reset (BC bc) |
Reset the edge (free the edge, and unmatch the edge) More... | |
void | match (BC bc) |
Match the edge. More... | |
void | unmatch (BC bc) |
Unmatch the edge and the incident nodes. More... | |
void | unmatch (BC bc, bool t) |
Unmatch the edge and ( x if t=false, v otherwise ) More... | |
void | unlink (void) |
Unlink the edge from the linked list of edges. More... | |
void | del_edge (void) |
Mark the edge as deleted during synchronization. More... | |
void | insert_edge (void) |
Insert the edge again. More... | |
Edge ** | next_ref (void) |
return the reference to the next edge incident on x More... | |
Edge ** | prev_ref (void) |
return the reference to the previous edge incident on x More... | |
Edge ** | vnext_ref (void) |
return the reference to the next edge incident on v More... | |
Edge ** | vprev_ref (void) |
return the reference to the previous edge incident on v More... | |
Memory management | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. More... | |
static void | operator delete (void *, Space &) |
Free memory (unused) More... | |
static void | operator delete (void *) |
Needed for exceptions. More... | |
Class for edges in the variable-value-graph.
Definition at line 268 of file dom-sup.hpp.
|
inline |
Default constructor.
Definition at line 303 of file dom-sup.hpp.
Construct edge from variable node x and value node y.
Definition at line 849 of file dom-sup.hpp.
|
inline |
Whether the edge is used.
Definition at line 869 of file dom-sup.hpp.
|
inline |
return whether the edge is matched
Definition at line 974 of file dom-sup.hpp.
|
inline |
return whether the edge has been deleted from the graph
Definition at line 993 of file dom-sup.hpp.
|
inline |
return a pointer to the next edge If t is false the function returns the next edge incident on x otherwise it returns the next edge incident on v
Definition at line 880 of file dom-sup.hpp.
|
inline |
return the pointer to the next edge incident on x
Definition at line 876 of file dom-sup.hpp.
|
inline |
return the pointer to the previous edge incident on x
Definition at line 897 of file dom-sup.hpp.
|
inline |
return the pointer to the next edge incident on v
Definition at line 889 of file dom-sup.hpp.
|
inline |
return the pointer to the previous edge incident on v
Definition at line 905 of file dom-sup.hpp.
|
inline |
return the pointer to the variable node x of this edge
Definition at line 917 of file dom-sup.hpp.
|
inline |
return the pointer to the value node v of this edge
Definition at line 923 of file dom-sup.hpp.
|
inline |
return pointer to x if t = true otherwise return v
Definition at line 929 of file dom-sup.hpp.
|
inline |
|
inline |
Mark the edge as unused.
Definition at line 862 of file dom-sup.hpp.
|
inline |
Reset the edge (free the edge, and unmatch the edge)
Definition at line 958 of file dom-sup.hpp.
|
inline |
Match the edge.
Definition at line 963 of file dom-sup.hpp.
|
inline |
Unmatch the edge and the incident nodes.
Definition at line 937 of file dom-sup.hpp.
|
inline |
Unmatch the edge and ( x if t=false, v otherwise )
Definition at line 946 of file dom-sup.hpp.
|
inline |
Unlink the edge from the linked list of edges.
Definition at line 812 of file dom-sup.hpp.
|
inline |
Mark the edge as deleted during synchronization.
Definition at line 982 of file dom-sup.hpp.
|
inline |
Insert the edge again.
Definition at line 987 of file dom-sup.hpp.
|
inline |
return the reference to the next edge incident on x
Definition at line 913 of file dom-sup.hpp.
|
inline |
return the reference to the previous edge incident on x
Definition at line 901 of file dom-sup.hpp.
|
inline |
return the reference to the next edge incident on v
Definition at line 893 of file dom-sup.hpp.
|
inline |
return the reference to the previous edge incident on v
Definition at line 909 of file dom-sup.hpp.
|
inlinestatic |
Allocate memory from space.
Definition at line 998 of file dom-sup.hpp.
|
inlinestatic |
Free memory (unused)
Definition at line 379 of file dom-sup.hpp.
|
inlinestatic |
Needed for exceptions.
Definition at line 381 of file dom-sup.hpp.