DOKK / manpages / debian 11 / libsc-doc / sc_Compute.3.en
sc::Compute(3) MPQC sc::Compute(3)

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

#include <compute.h>

Inherited by sc::Function.


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


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


class ResultInfo
class AccResultInfo

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.

Recompute at least the results that have compute true and are not already computed. This should only be called by Result's members.

Implemented in sc::Volume, sc::Shape, sc::Orbital, sc::BatchElectronDensity, sc::ElectronDensity, sc::SCF, sc::PsiWavefunction, sc::MBPT2_R12, sc::MP2BasisExtrap, sc::MBPT2, sc::TaylorMolecularEnergy, and sc::SumMolecularEnergy.

Marks all results as being out of date. Any subsequent access to results will cause Compute::compute() to be called.

Reimplemented in sc::Wavefunction, sc::SCF, sc::MBPT2_R12, and sc::MBPT2.

Referenced by sc::Function::get_x_reference().

Generated automatically by Doxygen for MPQC from the source code.

Sun Oct 4 2020 Version 2.3.1