logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Generated automatically by Doxygen for MPQC from the source code.

Version 2.3.1                                    Sun Oct 4 2020                                   sc::Compute(3)

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

virtualvoidsc::Compute::compute()[protected],[purevirtual]
       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::SumMolecularEnergy, sc::MBPT2, sc::BatchElectronDensity, sc::MBPT2_R12,
       sc::SCF, sc::TaylorMolecularEnergy, sc::PsiWavefunction, sc::Shape, sc::ElectronDensity, sc::Orbital, and
       sc::MP2BasisExtrap.

   virtualvoidsc::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 sc::MBPT2, sc::Wavefunction, sc::MBPT2_R12, and sc::SCF.

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

Name

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

Synopsis

       #include <compute.h>

       Inherited by sc::Function.

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

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

   Friends
       class ResultInfo
       class AccResultInfo

See Also