sc::Compute(3)

πŸ“¦
version 2.3.1 Β· 4 versions
, in ubuntu jammy

πŸ’– NAME πŸ’–

sc::Compute β€” okay bestie, welcome to the manual page for sc::Compute(3) ✨. The whole vibe is: the Compute class provides a means of keeping results up to date. That's the job. That's the moment. Periodt πŸ’….


🌸 SYNOPSIS 🌸

#include <compute.h>

Inherited by sc::Function.


🫢 Public Member Functions 🫢

  • virtual void obsolete () β€” marks all results as being out of date πŸ’€. Yes, all of them. It's giving "new season, old results canceled."

πŸ¦‹ Protected Member Functions πŸ¦‹

  • virtual void compute ()=0 β€” recompute at least the results that have compute true and are not already computed πŸ‘‘.

πŸ’œ Friends πŸ’œ

  • class ResultInfo
  • class AccResultInfo

πŸ‘‘ Detailed Description πŸ‘‘

The Compute class provides a means of keeping results up to date. Main character energy: freshness is the whole point. ✨

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 getting the requested result computed. 🫑


πŸ’… Member Function Documentation πŸ’…

virtual void sc::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. Do not just call it from anywhere, bestie β€” it's literally not for that. 🫢

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.

virtual void sc::Compute::obsolete () [virtual]

Marks all results as being out of date. Any subsequent access to results will cause Compute::compute() to be called. πŸ”₯ So yes, touching a result after obsolete() wakes up compute().

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

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


🌈 Author 🌈

Generated automatically by Doxygen for MPQC from the source code. πŸ€–

πŸ’– Cute sign-off: this iconic page is from MPQC, Version 2.3.1, dated Sun Oct 4 2020. Byeee bestie, go keep those results up to date βœ¨πŸ’…

πŸ“¦ where this page comes from