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

Gecode::Int::GCC::VVGNode Class Reference

Inherited by Gecode::Int::GCC::ValNode, and Gecode::Int::GCC::VarNode.

List of all members.


Detailed Description

Base class for nodes in the variable-value-graph.

Definition at line 54 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]
 

Default constructor.

Definition at line 594 of file graphsup.icc.

virtual Gecode::Int::GCC::VVGNode::~VVGNode (  void   )  [inline, virtual]
 

Destructor.

Definition at line 77 of file graphsup.icc.


Member Function Documentation

void * Gecode::Int::GCC::VVGNode::operator new (  size_t  ,
void * 
)  [inline]
 

Create a new node.

Definition at line 597 of file graphsup.icc.

Edge ** Gecode::Int::GCC::VVGNode::adj (  void   )  [inline]
 

return reference to the incident edges

Definition at line 602 of file graphsup.icc.

Edge * Gecode::Int::GCC::VVGNode::first (  void   )  [inline]
 

return pointer to the first incident edge

Definition at line 607 of file graphsup.icc.

Edge * Gecode::Int::GCC::VVGNode::last (  void   )  [inline]
 

return pointer to the last incident edge

Definition at line 612 of file graphsup.icc.

Edge * Gecode::Int::GCC::VVGNode::inedge (  void   )  [inline]
 

return pointer to the node's inedge

Definition at line 637 of file graphsup.icc.

bool Gecode::Int::GCC::VVGNode::get_type (  void   )  [inline]
 

return the type of the node

Definition at line 627 of file graphsup.icc.

template<BC direction>
bool Gecode::Int::GCC::VVGNode::get_match_flag (  void   )  [inline]
 

access the matching flag of the node

Definition at line 658 of file graphsup.icc.

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]
 

set the first edge pointer to p

Definition at line 617 of file graphsup.icc.

void Gecode::Int::GCC::VVGNode::last (  Edge *  p  )  [inline]
 

set the last edge pointer to p

Definition at line 622 of file graphsup.icc.

void Gecode::Int::GCC::VVGNode::inedge (  Edge *  p  )  [inline]
 

set the inedge pointer to p

Definition at line 642 of file graphsup.icc.

void Gecode::Int::GCC::VVGNode::set_type (  bool  t  )  [inline]
 

set the node type to t

Definition at line 632 of file graphsup.icc.

template<BC direction>
void Gecode::Int::GCC::VVGNode::set_match_flag (  bool  f  )  [inline]
 

set the matching flag to f

Definition at line 648 of file graphsup.icc.

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: