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

DomainDegreeRatios Class Reference

#include <DomainDegreeRatios.h>

List of all members.

Public Member Functions

 DomainDegreeRatios ()
 Constructor.
double domainDegreeRatio (const Variable &variable)
void updateDomainDegreeRatio (const Variable &variable)
void clear ()
 Clear the entire cache.
bool empty ()
 Return `true' if the cache is empty, `false' otherwise.


Detailed Description

A cache of domain/degree ratios.


Member Function Documentation

double DomainDegreeRatios::domainDegreeRatio const Variable variable  ) 
 

Return the domain/degree ratio of a given variable. If the variable's ratio is not yet in the cache, calculate it and insert it there.

Parameters:
variable the variable whose domain/degree ratio is to be calculated.
Returns:
the domain/degree ratio of the given variable.

void DomainDegreeRatios::updateDomainDegreeRatio const Variable variable  ) 
 

Update the domain/degree ratio of a given variable.

Parameters:
variable the variable whose domain/degree ratio is to be updated.


The documentation for this class was generated from the following files:
Generated on Wed May 25 12:21:17 2005 for csp.kdevelop by  doxygen 1.3.9.1