.TH "sc::Compute" 3 "Sun Oct 4 2020" "Version 2.3.1" "MPQC" \" -*- nroff -*- .ad l .nh .SH NAME sc::Compute \- The \fBCompute\fP class provides a means of keeping results up to date\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherited by \fBsc::Function\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual void \fBobsolete\fP ()" .br .RI "Marks all results as being out of date\&. " .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual void \fBcompute\fP ()=0" .br .RI "Recompute at least the results that have compute true and are not already computed\&. " .in -1c .SS "Friends" .in +1c .ti -1c .RI "class \fBResultInfo\fP" .br .ti -1c .RI "class \fBAccResultInfo\fP" .br .in -1c .SH "Detailed Description" .PP The \fBCompute\fP 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\&. .SH "Member Function Documentation" .PP .SS "virtual void sc::Compute::compute ()\fC [protected]\fP, \fC [pure virtual]\fP" .PP Recompute at least the results that have compute true and are not already computed\&. This should only be called by \fBResult\fP's members\&. .PP Implemented in \fBsc::Volume\fP, \fBsc::Shape\fP, \fBsc::Orbital\fP, \fBsc::BatchElectronDensity\fP, \fBsc::ElectronDensity\fP, \fBsc::SCF\fP, \fBsc::PsiWavefunction\fP, \fBsc::MBPT2_R12\fP, \fBsc::MP2BasisExtrap\fP, \fBsc::MBPT2\fP, \fBsc::TaylorMolecularEnergy\fP, and \fBsc::SumMolecularEnergy\fP\&. .SS "virtual void sc::Compute::obsolete ()\fC [virtual]\fP" .PP Marks all results as being out of date\&. Any subsequent access to results will cause \fBCompute::compute()\fP to be called\&. .PP Reimplemented in \fBsc::Wavefunction\fP, \fBsc::SCF\fP, \fBsc::MBPT2_R12\fP, and \fBsc::MBPT2\fP\&. .PP Referenced by sc::Function::get_x_reference()\&. .SH "Author" .PP Generated automatically by Doxygen for MPQC from the source code\&.