Gecode::Int::GCC::Edge Class Reference
List of all members.Detailed Description
Class for edges
Definition at line 294 of file graphsup.icc.
Constructors | |
Edge (VarNode *x, ValNode *v) | |
Construct edge ![]() | |
void * | operator new (size_t, void *) |
Create a new edge in memory. | |
Access | |
template<BC > | |
bool | used (void) |
return whether the edge is used | |
template<BC > | |
bool | matched (void) |
return whether the edge is matched | |
bool | is_deleted (void) |
return whether the edge has been deleted from the graph | |
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 | |
Edge * | next (void) const |
return the pointer to the next edge incident on x | |
Edge * | prev (void) const |
return the pointer to the previous edge incident on x | |
Edge * | vnext (void) const |
return the pointer to the next edge incident on v | |
Edge * | vprev (void) const |
return the pointer to the previous edge incident on v | |
VarNode * | getVar (void) |
return the pointer to the variable node x of this edge | |
ValNode * | getVal (void) |
return the pointer to the value node v of this edge | |
VVGNode * | getMate (bool t) |
return pointer to x if t = true otherwise return v | |
template<BC > | |
void | use (void) |
Mark the edge as used. | |
template<BC > | |
void | free (void) |
Mark the edge as unused. | |
template<BC > | |
void | reset (void) |
Reset the edge ( free the edge, and unmatch the edge including its end-nodes. | |
template<BC > | |
void | match (void) |
Match the edge. | |
template<BC > | |
void | unmatch (void) |
Unmatch the edge and the incident nodes. | |
template<BC > | |
void | unmatch (bool t) |
Unmatch the edge and ( x if t=false, v otherwise ). | |
void | unlink (void) |
Unlink the edge from the linked list of edges. | |
void | del_edge (void) |
Mark the edge as deleted during synchronization. | |
void | insert_edge (void) |
Insert the edge again. | |
Edge ** | next_ref (void) |
return the reference to the next edge incident on x | |
Edge ** | prev_ref (void) |
return the reference to the previous edge incident on x | |
Edge ** | vnext_ref (void) |
return the reference to the next edge incident on v | |
Edge ** | vprev_ref (void) |
return the reference to the previous edge incident on v |
Constructor & Destructor Documentation
|
Construct edge
Definition at line 1047 of file graphsup.icc. |
Member Function Documentation
|
Create a new edge in memory.
Definition at line 1055 of file graphsup.icc. |
|
return whether the edge is used An edge can be used in a matching on the graph, a path on the graph or a cycle in the graph. Definition at line 1089 of file graphsup.icc. |
|
return whether the edge is matched
Definition at line 1213 of file graphsup.icc. |
|
return whether the edge has been deleted from the graph
Definition at line 1233 of file graphsup.icc. |
|
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 1103 of file graphsup.icc. |
|
return the pointer to the next edge incident on x
Definition at line 1098 of file graphsup.icc. |
|
return the pointer to the previous edge incident on x
Definition at line 1122 of file graphsup.icc. |
|
return the pointer to the next edge incident on v
Definition at line 1112 of file graphsup.icc. |
|
return the pointer to the previous edge incident on v
Definition at line 1132 of file graphsup.icc. |
|
return the pointer to the variable node x of this edge
Definition at line 1146 of file graphsup.icc. |
|
return the pointer to the value node v of this edge
Definition at line 1152 of file graphsup.icc. |
|
return pointer to x if t = true otherwise return v
Definition at line 1158 of file graphsup.icc. |
|
Mark the edge as used.
Definition at line 1061 of file graphsup.icc. |
|
Mark the edge as unused. the failure is here, capacity is not increased for value nodes Definition at line 1071 of file graphsup.icc. |
|
Reset the edge ( free the edge, and unmatch the edge including its end-nodes.
Definition at line 1082 of file graphsup.icc. |
|
Match the edge.
Definition at line 1195 of file graphsup.icc. |
|
Unmatch the edge and the incident nodes.
Definition at line 1168 of file graphsup.icc. |
|
Unmatch the edge and ( x if t=false, v otherwise ).
Definition at line 1180 of file graphsup.icc. |
|
Unlink the edge from the linked list of edges.
Definition at line 996 of file graphsup.icc. |
|
Mark the edge as deleted during synchronization.
Definition at line 1222 of file graphsup.icc. |
|
Insert the edge again.
Definition at line 1227 of file graphsup.icc. |
|
return the reference to the next edge incident on x
Definition at line 1142 of file graphsup.icc. |
|
return the reference to the previous edge incident on x
Definition at line 1127 of file graphsup.icc. |
|
return the reference to the next edge incident on v
Definition at line 1117 of file graphsup.icc. |
|
return the reference to the previous edge incident on v
Definition at line 1137 of file graphsup.icc. |
The documentation for this class was generated from the following file:
- gecode/int/gcc/graphsup.icc (Revision: 3512)