Gecode::Int::GCC::VVGNode Class Reference
Inherited by Gecode::Int::GCC::ValNode, and Gecode::Int::GCC::VarNode.
Detailed Description
Base class for nodes in the variable-value-graph.Definition at line 50 of file graphsup.icc.
Constructors and initialization | |
| VVGNode (void) | |
| Default constructor. | |
Access | |
| Edge ** | adj (void) |
| return reference to the incident edges | |
| Edge * | first (void) |
| return pointer to the first incident edge | |
| Edge * | last (void) |
| return pointer to the last incident edge | |
| Edge * | inedge (void) |
| return pointer to the node's inedge | |
| bool | get_type (void) |
| return the type of the node | |
| template<BC > | |
| bool | get_match_flag (void) |
| access the matching flag of the node | |
| virtual int | get_info (void)=0 |
| get the information on the node (either var-index or value) | |
| virtual bool | is_matched (BC)=0 |
| test whether the node is matched | |
| virtual bool | removed (void)=0 |
| check whether a node has been removed from the graph | |
Update | |
| void | first (Edge *p) |
| set the first edge pointer to p | |
| void | last (Edge *p) |
| set the last edge pointer to p | |
| void | inedge (Edge *p) |
| set the inedge pointer to p | |
| void | set_type (bool t) |
| set the node type to t | |
| template<BC > | |
| void | set_match_flag (bool f) |
| set the matching flag to f | |
| virtual void | set_info (int i)=0 |
| set the node information to i | |
Public Member Functions | |
| virtual | ~VVGNode (void) |
| Destructor. | |
| void * | operator new (size_t, void *) |
| Create a new node. | |
Constructor & Destructor Documentation
| Gecode::Int::GCC::VVGNode::VVGNode | ( | void | ) | [inline] |
| virtual Gecode::Int::GCC::VVGNode::~VVGNode | ( | void | ) | [inline, virtual] |
Member Function Documentation
| void * Gecode::Int::GCC::VVGNode::operator new | ( | size_t | , | |
| void * | p | |||
| ) | [inline] |
| Edge ** Gecode::Int::GCC::VVGNode::adj | ( | void | ) | [inline] |
| Edge * Gecode::Int::GCC::VVGNode::first | ( | void | ) | [inline] |
| Edge * Gecode::Int::GCC::VVGNode::last | ( | void | ) | [inline] |
| Edge * Gecode::Int::GCC::VVGNode::inedge | ( | void | ) | [inline] |
| bool Gecode::Int::GCC::VVGNode::get_type | ( | void | ) | [inline] |
template<BC direction>
| bool Gecode::Int::GCC::VVGNode::get_match_flag | ( | void | ) | [inline] |
| virtual int Gecode::Int::GCC::VVGNode::get_info | ( | void | ) | [pure virtual] |
get the information on the node (either var-index or value)
Implemented in Gecode::Int::GCC::VarNode, and Gecode::Int::GCC::ValNode.
| virtual bool Gecode::Int::GCC::VVGNode::is_matched | ( | BC | ) | [pure virtual] |
test whether the node is matched
Implemented in Gecode::Int::GCC::VarNode, and Gecode::Int::GCC::ValNode.
| virtual bool Gecode::Int::GCC::VVGNode::removed | ( | void | ) | [pure virtual] |
check whether a node has been removed from the graph
Implemented in Gecode::Int::GCC::VarNode, and Gecode::Int::GCC::ValNode.
| void Gecode::Int::GCC::VVGNode::first | ( | Edge * | p | ) | [inline] |
| void Gecode::Int::GCC::VVGNode::last | ( | Edge * | p | ) | [inline] |
| void Gecode::Int::GCC::VVGNode::inedge | ( | Edge * | p | ) | [inline] |
| void Gecode::Int::GCC::VVGNode::set_type | ( | bool | t | ) | [inline] |
template<BC direction>
| void Gecode::Int::GCC::VVGNode::set_match_flag | ( | bool | f | ) | [inline] |
| virtual void Gecode::Int::GCC::VVGNode::set_info | ( | int | i | ) | [pure virtual] |
set the node information to i
Implemented in Gecode::Int::GCC::VarNode, and Gecode::Int::GCC::ValNode.
The documentation for this class was generated from the following file:
- gecode/int/gcc/graphsup.icc (Revision: 6323)
