Gecode::Int::Distinct::ValNode< View > Class Template Reference
Inherits Gecode::Int::Distinct::Node< View >.
Detailed Description
template<class View>
class Gecode::Int::Distinct::ValNode< View >
Value nodes in view-value graph.
Definition at line 123 of file dom.icc.
Public Member Functions | |
ValNode (int v) | |
Initialize with value v. | |
ValNode (int v, ValNode< View > *n) | |
Initialize with value v and successor n. | |
int | val (void) const |
Return value of node. | |
void | matching (Edge< View > *m) |
Set matching edge to m. | |
Edge< View > * | matching (void) const |
Return matching edge (NULL if unmatched). | |
ValNode< View > ** | next_val_ref (void) |
Return pointer to next value node fields. | |
ValNode< View > * | next_val (void) const |
Return next value node. | |
void | next_val (ValNode< View > *v) |
Set next value node to v. | |
Protected Attributes | |
const int | _val |
The value of the node. | |
Edge< View > * | _matching |
The matching edge. | |
ValNode< View > * | _next_val |
The next value node. |
Constructor & Destructor Documentation
template<class View>
Gecode::Int::Distinct::ValNode< View >::ValNode | ( | int | v | ) | [inline] |
template<class View>
Gecode::Int::Distinct::ValNode< View >::ValNode | ( | int | v, | |
ValNode< View > * | n | |||
) | [inline] |
Member Function Documentation
template<class View>
int Gecode::Int::Distinct::ValNode< View >::val | ( | void | ) | const [inline] |
template<class View>
void Gecode::Int::Distinct::ValNode< View >::matching | ( | Edge< View > * | m | ) | [inline] |
template<class View>
Edge< View > * Gecode::Int::Distinct::ValNode< View >::matching | ( | void | ) | const [inline] |
template<class View>
ValNode< View > ** Gecode::Int::Distinct::ValNode< View >::next_val_ref | ( | void | ) | [inline] |
template<class View>
ValNode< View > * Gecode::Int::Distinct::ValNode< View >::next_val | ( | void | ) | const [inline] |
template<class View>
void Gecode::Int::Distinct::ValNode< View >::next_val | ( | ValNode< View > * | v | ) | [inline] |
Member Data Documentation
template<class View>
const int Gecode::Int::Distinct::ValNode< View >::_val [protected] |
template<class View>
Edge<View>* Gecode::Int::Distinct::ValNode< View >::_matching [protected] |
template<class View>
ValNode<View>* Gecode::Int::Distinct::ValNode< View >::_next_val [protected] |
The documentation for this class was generated from the following files:
- gecode/int/distinct/dom.icc (Revision: 7359)
- gecode/int/distinct/node.icc (Revision: 4790)