Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

Compute Class Reference

The Compute class provides a means of keeping results up to date. More...

#include <compute.h>

Inheritance diagram for Compute

Inheritance graph
[legend]
Collaboration diagram for Compute:

Collaboration graph
[legend]
List of all members.

Public Methods

 Compute ()
virtual ~Compute ()
virtual void obsolete ()
 Marks all results as being out of date. More...


Protected Methods

virtual void compute ()=0
 Recompute at least the results that have compute true and are not already computed. More...


Friends

class  ResultInfo
class  AccResultInfo

Detailed Description

The Compute class provides a means of keeping results up to date.

Derived classes can have member data which is registered with the compute class. When this member data is accessed and it is not available, the compute member function is called. The compute member must be implemented in derived classes and is responsible for computed the requested result.


Member Function Documentation

void Compute::compute ( ) [protected, pure virtual]
 

Recompute at least the results that have compute true and are not already computed.

This should only be called by Result's members.

Reimplemented in MBPT2, SCF, Shape, and Volume.

void Compute::obsolete ( ) [virtual]
 

Marks all results as being out of date.

Any subsequent access to results will cause Compute::compute() to be called.

Reimplemented in MBPT2, and Wavefunction.


The documentation for this class was generated from the following file:
Generated at Thu Oct 4 18:08:59 2001 for MPQC 2.0.0 using the documentation package Doxygen 1.2.5.