Valence Class Reference

#include <Esambl.h>

Inheritance diagram for Valence:

HeadNode

List of all members.

Public Member Functions

 Valence ()
 Valence (int o, int c)
 Valence (const Valence &v)
Valenceoperator= (const Valence &v)
bool operator< (const Valence &v) const
bool operator== (const Valence &v) const
bool operator> (const Valence &v) const
void set (int o, int c)
ostream & show (ostream &ous) const

Public Attributes

int overlap
int contain

Friends

ostream & operator<< (ostream &ous, const Valence &v)


Detailed Description

Valence is a simply two numbers: number of overlapping relationships, and number of contain relationships of one Noschain relative to all aothers.

Constructor & Destructor Documentation

Valence::Valence (  )  [inline]

Valence::Valence ( int  o,
int  c 
) [inline]

Valence::Valence ( const Valence v  )  [inline]


Member Function Documentation

Valence & Valence::operator= ( const Valence v  ) 

References contain, and overlap.

bool Valence::operator< ( const Valence v  )  const

This is the key for the head node selection Compare 2*contain+overlap, if identical then compare contain.

References contain, and overlap.

bool Valence::operator== ( const Valence v  )  const [inline]

References contain, and overlap.

bool Valence::operator> ( const Valence v  )  const

References contain, and overlap.

void Valence::set ( int  o,
int  c 
) [inline]

References contain, and overlap.

Referenced by GraphNode::setIdValence(), and GraphNode::setValence().

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

References contain, and overlap.

Referenced by operator<<().


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ous,
const Valence v 
) [friend]


Member Data Documentation


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

Generated on Wed Aug 10 11:57:15 2011 for Softwares from Orpara by  doxygen 1.5.6