GraphNode Class Reference

#include <Esambl.h>

List of all members.

Public Member Functions

 GraphNode ()
 GraphNode (int id)
 GraphNode (int id, int olp, int cont)
 GraphNode (const GraphNode &gn)
GraphNodeoperator= (const GraphNode &gn)
bool operator< (const GraphNode &gn) const
void setId (int id)
void setValence (int o, int c)
void setIdValence (int id, int olp, int cont)
ostream & show (ostream &ous) const
void setNull ()
void setHead ()
void setChild (GraphNode *p)
bool canBeHead () const

Public Attributes

Color c
GraphNodeparent
int distance
int idx
Valence val
int inassembly

Friends

ostream & operator<< (ostream &ous, const GraphNode &gn)


Constructor & Destructor Documentation

GraphNode::GraphNode (  )  [inline]

Here I use -1 for infinity could INF

GraphNode::GraphNode ( int  id  )  [inline]

GraphNode::GraphNode ( int  id,
int  olp,
int  cont 
) [inline]

GraphNode::GraphNode ( const GraphNode gn  ) 

References c, distance, idx, inassembly, parent, and val.


Member Function Documentation

GraphNode & GraphNode::operator= ( const GraphNode gn  ) 

References c, distance, idx, inassembly, parent, and val.

bool GraphNode::operator< ( const GraphNode gn  )  const [inline]

References val.

void GraphNode::setId ( int  id  )  [inline]

References idx.

void GraphNode::setValence ( int  o,
int  c 
) [inline]

References Valence::set(), and val.

void GraphNode::setIdValence ( int  id,
int  olp,
int  cont 
) [inline]

References idx, Valence::set(), and val.

ostream & GraphNode::show ( ostream &  ous  )  const

References c, distance, idx, inassembly, parent, and val.

Referenced by main().

void GraphNode::setNull (  )  [inline]

References c, distance, parent, and white.

void GraphNode::setHead (  ) 

color to gray, distance to 0, parent to 0 increment inassembly by one

References c, distance, gray, inassembly, and parent.

void GraphNode::setChild ( GraphNode p  ) 

set this node as the child of p. Also color the node gray, increment inassembly, set parent to p, add distance.

References c, distance, gray, inassembly, and parent.

bool GraphNode::canBeHead (  )  const [inline]

References c, inassembly, and white.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ous,
const GraphNode gn 
) [friend]


Member Data Documentation


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

Generated on Wed Oct 14 21:49:23 2009 for Softwares from Orpara by  doxygen 1.5.6