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

Degrees Class Reference

#include <Degrees.h>

List of all members.

Public Member Functions

 Degrees ()
 Constructor.
size_t degree (const Variable &variable)
void updateDegree (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 variable degrees.


Member Function Documentation

size_t Degrees::degree const Variable variable  ) 
 

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

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

void Degrees::updateDegree const Variable variable  ) 
 

Update the degree of a given variable.

Parameters:
variable the variable whose degree 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