Biorithm  1.1
Public Member Functions
MyGainDAGDistanceType Struct Reference

A struct that represents the distance between two functions in a DAG. The struct does not store any information about the two functions themselves. However, the struct represents the length of a path from one function to another by traversing some distance up the DAG from the first function to a least common ancestor and then traversing some distance down the DAG to the second function. ! More...

#include <reporter.h>

List of all members.

Public Member Functions

 MyGainDAGDistanceType (int u=-1, int d=-1)
MyGainCompareFunctionType computeDistanceType () const
unsigned int getDistance () const
MyGainCompareFunctionType getDistanceType () const
bool operator< (const MyGainDAGDistanceType &other) const
 Return true if and only if the invocant represents a closer function than other.
void print (ostream &ostr) const
 Print the distance up and distance down to an output stream.

Detailed Description

A struct that represents the distance between two functions in a DAG. The struct does not store any information about the two functions themselves. However, the struct represents the length of a path from one function to another by traversing some distance up the DAG from the first function to a least common ancestor and then traversing some distance down the DAG to the second function. !


Member Function Documentation

bool MyGainDAGDistanceType::operator< ( const MyGainDAGDistanceType other) const

Return true if and only if the invocant represents a closer function than other.

Note:
If one distance represents a descendant and the other represents an ancestor or a relative, the method considers the descendant to be closer.

The documentation for this struct was generated from the following files:
 All Classes Functions Variables Typedefs Friends