Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

SSD::RelEqClass Class Reference

Relation Equality Class - get the equality class for two given nodes. More...

#include <rel_eqclass.h>

Collaboration diagram for SSD::RelEqClass:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RelEqClass (const Node &n1, const Node &n2)
 get class for two nodes by reference
 RelEqClass (const Node *n1, const Node *n2)
 get class for two nodes by pointer
 RelEqClass (const Node &n1, const NodeEqClass &n2)
 get class for a node and a given equality class
 RelEqClass (const NodeEqClass &n1, const Node &n2)
 get class for a given equality class and a node
bool operator< (const RelEqClass r2) const
 strict weak ordering for sorted maps
bool operator== (const RelEqClass r2) const
 test for equality
size_t hashfun () const
 hash function for maps

Private Attributes

ustring fl
 first label
ustring fc
 first content
ustring sl
 first label
ustring sc
 first content

Friends

std::ostream & operator<< (std::ostream &out, const SSD::RelEqClass &cp)
 helper function to allow dumping onto output streams

Detailed Description

Relation Equality Class - get the equality class for two given nodes.

this requires unified strings to work

Definition at line 24 of file rel_eqclass.h.


Constructor & Destructor Documentation

SSD::RelEqClass::RelEqClass const Node n1,
const Node n2
 

get class for two nodes by reference

Parameters:
n1 first node
n2 second node

Definition at line 18 of file rel_eqclass.cc.

SSD::RelEqClass::RelEqClass const Node n1,
const Node n2
 

get class for two nodes by pointer

Parameters:
n1 first node
n2 second node

Definition at line 21 of file rel_eqclass.cc.

SSD::RelEqClass::RelEqClass const Node n1,
const NodeEqClass n2
 

get class for a node and a given equality class

Parameters:
n1 node
n2 equality class

Definition at line 24 of file rel_eqclass.cc.

SSD::RelEqClass::RelEqClass const NodeEqClass n1,
const Node n2
 

get class for a given equality class and a node

Parameters:
n1 equality class
n2 node

Definition at line 27 of file rel_eqclass.cc.


Member Function Documentation

size_t SSD::RelEqClass::hashfun  )  const [inline]
 

hash function for maps

Definition at line 66 of file rel_eqclass.h.

References fc, fl, SSD::ustring::hashfun(), sc, and sl.

Referenced by SSD::hash_releqc::operator()().

Here is the call graph for this function:

bool SSD::RelEqClass::operator< const RelEqClass  r2  )  const [inline]
 

strict weak ordering for sorted maps

Parameters:
r2 class to be compared with

Definition at line 53 of file rel_eqclass.h.

References fc, fl, sc, and sl.

bool SSD::RelEqClass::operator== const RelEqClass  r2  )  const [inline]
 

test for equality

Parameters:
r2 class to be compared with

Definition at line 61 of file rel_eqclass.h.

References fc, fl, sc, and sl.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  out,
const SSD::RelEqClass cp
[friend]
 

helper function to allow dumping onto output streams

Parameters:
out output stream to be written to
cp Class to be written


Member Data Documentation

ustring SSD::RelEqClass::fc [private]
 

first content

Definition at line 28 of file rel_eqclass.h.

Referenced by hashfun(), operator<(), SSD::operator<<(), and operator==().

ustring SSD::RelEqClass::fl [private]
 

first label

Definition at line 26 of file rel_eqclass.h.

Referenced by hashfun(), operator<(), SSD::operator<<(), and operator==().

ustring SSD::RelEqClass::sc [private]
 

first content

Definition at line 32 of file rel_eqclass.h.

Referenced by hashfun(), operator<(), SSD::operator<<(), and operator==().

ustring SSD::RelEqClass::sl [private]
 

first label

Definition at line 30 of file rel_eqclass.h.

Referenced by hashfun(), operator<(), SSD::operator<<(), and operator==().


The documentation for this class was generated from the following files:
Generated on Thu Aug 4 17:59:28 2005 for SSDDiff by  doxygen 1.4.3-20050530