Generated on Wed Jan 4 17:49:21 2006 for Gecode by doxygen 1.4.6

Gecode::Int::GCC::VarNode Class Reference

Inherits Gecode::Int::GCC::VVGNode.

List of all members.


Detailed Description

Variable Node

Definition at line 124 of file graphsup.icc.

Constructors and initialization

 VarNode (int i, int oidx)
 Creates a variable node with index i.

Access

template<BC >
Edgeget_match (void)
 return the matching edge on the node
int get_info (void)
 return the variable index of the node
bool is_matched (BC)
 returns whether the node is still matchable
template<BC >
bool matched (void)
 tests whether the node is matched or not
bool removed (void)
 Variable Node.

Update

void set_info (int i)
 set the node info to i
template<BC >
void set_match (Edge *m)
 set the pointer of the matching edge to m
template<BC >
void match (void)
 match the node
template<BC >
void unmatch (void)
 unmatch the node

Public Attributes

unsigned int var
 stores the variable index of the node
unsigned int noe
 stores the number of incident edges on the node
unsigned int xindex
 stores the variable index of the node


Constructor & Destructor Documentation

Gecode::Int::GCC::VarNode::VarNode int  i,
int  oidx
[inline]
 

Creates a variable node with index i.

Definition at line 677 of file graphsup.icc.


Member Function Documentation

template<BC direction>
Edge * Gecode::Int::GCC::VarNode::get_match void   )  [inline]
 

return the matching edge on the node

Definition at line 727 of file graphsup.icc.

int Gecode::Int::GCC::VarNode::get_info void   )  [inline, virtual]
 

return the variable index of the node

Implements Gecode::Int::GCC::VVGNode.

Definition at line 741 of file graphsup.icc.

bool Gecode::Int::GCC::VarNode::is_matched BC   )  [inline, virtual]
 

returns whether the node is still matchable

Implements Gecode::Int::GCC::VVGNode.

Definition at line 688 of file graphsup.icc.

template<BC direction>
bool Gecode::Int::GCC::VarNode::matched void   )  [inline]
 

tests whether the node is matched or not

Definition at line 698 of file graphsup.icc.

bool Gecode::Int::GCC::VarNode::removed void   )  [inline, virtual]
 

Variable Node.

Implements Gecode::Int::GCC::VVGNode.

Definition at line 670 of file graphsup.icc.

void Gecode::Int::GCC::VarNode::set_info int  i  )  [inline, virtual]
 

set the node info to i

Implements Gecode::Int::GCC::VVGNode.

Definition at line 736 of file graphsup.icc.

template<BC direction>
void Gecode::Int::GCC::VarNode::set_match Edge m  )  [inline]
 

set the pointer of the matching edge to m

Definition at line 717 of file graphsup.icc.

template<BC direction>
void Gecode::Int::GCC::VarNode::match void   )  [inline]
 

match the node

Definition at line 704 of file graphsup.icc.

template<BC direction>
void Gecode::Int::GCC::VarNode::unmatch void   )  [inline]
 

unmatch the node

Definition at line 710 of file graphsup.icc.


Member Data Documentation

unsigned int Gecode::Int::GCC::VarNode::var
 

stores the variable index of the node

Definition at line 133 of file graphsup.icc.

unsigned int Gecode::Int::GCC::VarNode::noe
 

stores the number of incident edges on the node

Definition at line 135 of file graphsup.icc.

unsigned int Gecode::Int::GCC::VarNode::xindex
 

stores the variable index of the node

Definition at line 138 of file graphsup.icc.


The documentation for this class was generated from the following file: