sc::SavableState(3)

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

πŸ’– sc::SavableState(3) β€” MPQC manual, bestie πŸ’–

Okay so this is the manual page for sc::SavableState(3) from the MPQC docs, and it’s lowkey iconic because it’s the blueprint for saving/restoring object state. Buckle up, bestie. πŸŽ€


🌸 NAME 🌸

sc::SavableState β€” Base class for objects that can save/restore state. Periodt.


✨ SYNOPSIS ✨

#include <state.h>

Inherits sc::DescribedClass.

Inherited by this whole extended family:

  • sc::AccumH [virtual]
  • sc::AngularIntegrator [virtual]
  • sc::AtomInfo
  • sc::Convergence [virtual]
  • sc::Debugger
  • sc::DenFunctional [virtual]
  • sc::DenIntegrator [virtual]
  • sc::Function [virtual]
  • sc::GaussianBasisSet
  • sc::GaussianShell
  • sc::HessianUpdate [virtual]
  • sc::IntCoor
  • sc::IntCoorGen
  • sc::Integral
  • sc::IntegrationWeight [virtual]
  • sc::MOIndexSpace [virtual]
  • sc::MOIntsTransformFactory [virtual]
  • sc::MolecularCoor
  • sc::MolecularFrequencies
  • sc::MolecularHessian [virtual]
  • sc::Molecule
  • sc::MP2R12Energy [virtual]
  • sc::Optimize [virtual]
  • sc::OverlapOrthog [virtual]
  • sc::PointGroup
  • sc::R12IntEval [virtual]
  • sc::R12IntEvalInfo [virtual]
  • sc::R12IntsAcc [virtual]
  • sc::RadialIntegrator [virtual]
  • sc::SCBlockInfo
  • sc::SCDimension
  • sc::SCElementOp
  • sc::SCElementOp2
  • sc::SCElementOp3
  • sc::SCExtrapData
  • sc::SCExtrapError
  • sc::SCMatrixBlock
  • sc::SCMatrixBlockList
  • sc::SelfConsistentExtrapolation
  • sc::SetIntCoor
  • sc::ShellPairCints [virtual]
  • sc::ShellPairsCints [virtual]
  • sc::TwoBodyGrid [virtual]
  • sc::TwoBodyMOIntsTransform [virtual]
  • sc::Units

πŸ’œ Public Member Functions πŸ’œ

  • SavableState & operator= (const SavableState &)
  • void save_state (StateOut &) β€” Save the state of the object as specified by the StateOut object.
  • void save_object_state (StateOut &) β€” This can be used for saving state when the exact type of the object is known for both the save and the restore.
  • virtual void save_vbase_state (StateOut &) β€” Save the virtual bases for the object.
  • virtual void save_data_state (StateOut &) β€” Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them.

πŸ¦‹ Static Public Member Functions πŸ¦‹

  • static void save_state (SavableState *s, StateOut &)
  • static SavableState * restore_state (StateIn &si) β€” Restores objects saved with save_state.
  • static SavableState * key_restore_state (StateIn &si, const char *keyword) β€” Like restore_state, but keyword is used to override values while restoring.
  • static SavableState * dir_restore_state (StateIn &si, const char *objectname, const char *keyword=0)

🧚 Protected Member Functions 🧚

  • SavableState (const SavableState &)
  • SavableState (StateIn &) β€” Each derived class StateIn CTOR handles the restore corresponding to calling save_object_state, save_vbase_state, and save_data_state listed above. All derived class StateIn& constructors must invoke the SavableState(StateIn&) constructor.

πŸ¦‹ Detailed Description πŸ¦‹

Real talk: this is the base class for objects that can save/restore state. No cap, that’s the whole vibe of this class. 🫢


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

sc::SavableState::SavableState (StateIn &) [protected]

Each derived class StateIn CTOR handles the restore corresponding to calling save_object_state, save_vbase_state, and save_data_state listed above. All derived class StateIn& constructors must invoke the SavableState(StateIn&) constructor.


πŸ’… Member Function Documentation πŸ’…

🌈 static SavableState* sc::SavableState::restore_state (StateIn & si) [static]

Restores objects saved with save_state. The exact type of the next object in si can be any type publically derived from the SavableState. Derived classes implement a similar static function that returns a pointer to the derived class. If the objectname is given the directory will be consulted to find and restore that object.

🧁 virtual void sc::SavableState::save_data_state (StateOut &) [virtual]

Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them. This must be implemented by the derived class if the class has data.

Reimplemented in this exact roll call β€” yes, every single one, bestie:

sc::PointGroup, sc::AtomInfo, sc::Units,
sc::SCMatrixBlock, sc::G96XFunctional, sc::mPW91XFunctional,
sc::CartMolecularCoor, sc::PW91XFunctional, sc::RedundMolecularCoor,
sc::PBEXFunctional, sc::SymmMolecularCoor, sc::PW86XFunctional,
sc::LYPCFunctional, sc::Becke88XFunctional, sc::XalphaFunctional,
sc::IntMolecularCoor, sc::PZ81LCFunctional, sc::PW92LCFunctional,
sc::VWN5LCFunctional, sc::VWN4LCFunctional, sc::VWN3LCFunctional,
sc::VWN2LCFunctional, sc::VWN1LCFunctional, sc::VWNLCFunctional,
sc::SlaterXFunctional, sc::Molecule, sc::NewP86CFunctional,
sc::RadialAngularIntegrator, sc::P86CFunctional, sc::GaussianBasisSet,
sc::PW91CFunctional, sc::SCElementDot, sc::MolecularCoor,
sc::SCMatrixDiagSubBlock, sc::SCElementKNorm,
sc::GaussLegendreAngularIntegrator, sc::PBECFunctional,
sc::SCElementSumAbs, sc::SCMatrixDiagBlock, sc::IntCoorGen,
sc::SCElementMinAbs, sc::LSDACFunctional, sc::SCElementMaxAbs,
sc::StdDenFunctional, sc::LebedevLaikovIntegrator,
sc::SCMatrixLTriSubBlock, sc::SCElementShiftDiagonal,
sc::SCElementScaleDiagonal, sc::MolEnergyConvergence,
sc::SCMatrixLTriBlock, sc::SCElementInvert, sc::SCElementSquareRoot,
sc::SCElementAssign, sc::EulerMaclaurinRadialIntegrator, sc::MBPT2,
sc::SCMatrixRectSubBlock, sc::SCElementRandomize, sc::MBPT2_R12,
sc::R12IntEval, sc::AngularIntegrator, sc::SCElementScale,
sc::SetIntCoor, sc::SumMolecularEnergy, sc::HCoreWfn,
sc::SumDenFunctional, sc::SCDestructiveElementProduct,
sc::RadialIntegrator, sc::SCF, sc::SCMatrixRectBlock,
sc::SCElementScalarProduct, sc::BeckeIntegrationWeight,
sc::DiagMolecularHessian, sc::PsiCCSD_T, sc::SCVectorSimpleSubBlock,
sc::NElFunctional, sc::FinDispMolecularHessian, sc::Debugger,
sc::GuessMolecularHessian, sc::PsiCCSD, sc::Wavefunction,
sc::TwoBodyMOIntsTransform, sc::SumIntCoor, sc::LineOpt,
sc::IntegrationWeight, sc::MolecularEnergy, sc::SCDimension,
sc::SCVectorSimpleBlock, sc::GaussianShell, sc::R12IntEvalInfo,
sc::PowellUpdate, sc::R12IntsAcc_MPIIOFile_Ind,
sc::ReadMolecularHessian, sc::Convergence, sc::Function,
sc::DenFunctional, sc::QNewtonOpt, sc::BFGSUpdate,
sc::SCMatrixBlockList, sc::HSOSSCF, sc::MolecularFrequencies,
sc::SimpleCo, sc::MOIndexSpace, sc::SymmSCMatrixSCExtrapError,
sc::SelfConsistentExtrapolation, sc::IntegralCCA, sc::R12IntsAcc,
sc::EFCOpt, sc::OverlapOrthog, sc::DIIS, sc::DFPUpdate,
sc::DenIntegrator, sc::SymmSCMatrixNSCExtrapData, sc::Optimize,
sc::SumAccumH, sc::MOIntsTransformFactory, sc::Integral,
sc::ShellPairsCints, sc::R12IntsAcc_MPIIOFile, sc::R12IntsAcc_Node0File,
sc::PsiSCF, sc::IntCoor, sc::MP2R12Energy, sc::HSOSKS, sc::SCBlockInfo,
sc::SymmSCMatrix4SCExtrapData, sc::OneBodyWavefunction, sc::UKS,
sc::CLSCF, sc::SCExtrapError, sc::R12IntsAcc_MemoryGrp, sc::AccumHNull,
sc::CLKS, sc::UnrestrictedSCF, sc::BEMSolventH,
sc::TaylorMolecularEnergy, sc::GDIISOpt, sc::MolecularHessian,
sc::TCSCF, sc::TwoBodyGrid, sc::IntegralCints,
sc::TwoBodyMOIntsTransform_ikjy, sc::TwoBodyMOIntsTransform_ixjy,
sc::TwoBodyMOIntsTransform_ijxy, sc::ExtendedHuckelWfn,
sc::HessianUpdate, sc::OSSSCF, sc::NewtonOpt, sc::SteepestDescentOpt,
sc::IntegralV3, sc::SymmSCMatrix2SCExtrapData, sc::PsiWavefunction,
sc::ShellPairCints, sc::UHF, sc::AccumH, sc::SCExtrapData, sc::CLHF,
sc::HSOSHF, sc::MP2BasisExtrap, sc::OSSHF, sc::TCHF, and
sc::SymmSCMatrixSCExtrapData.

πŸ“ void sc::SavableState::save_object_state (StateOut &)

This can be used for saving state when the exact type of the object is known for both the save and the restore. To restore objects saved in this way the user must directly invoke the object's StateIn& constructor.

🌸 void sc::SavableState::save_state (StateOut &)

Save the state of the object as specified by the StateOut object. This routine saves the state of the object (which includes the nonvirtual bases), the virtual bases, and type information. The default implementation should be adequate.

⭐ virtual void sc::SavableState::save_vbase_state (StateOut &) [virtual]

Save the virtual bases for the object. This must be done in the same order that the ctor initializes the virtual bases. This does not include the DescribedClass and SavableState virtual base classes. This must be implemented by the user if the class has other virtual bases. (These virtual bases must come after SavableState, if SavableState is virtual.)


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code.


πŸ’– Cute sign-off: this was the MPQC manual page for sc::SavableState(3), Version 2.3.1, dated Sun Oct 4 2020. Bye bestie, go save some state responsibly! πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from