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

sc::SavableState - Base class for objects that can save/restore state.

#include <state.h>

Inherits sc::DescribedClass.

Inherited by 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], and sc::Units.


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 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)


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.

Base class for objects that can save/restore state.

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.

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.

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

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.

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.

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.)

Generated automatically by Doxygen for MPQC from the source code.

Sun Oct 4 2020 Version 2.3.1