sc_SavableState - Man Page
Base class for objects that can save/restore state.
Synopsis
#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::MP2R12Energy [virtual], sc::MolecularCoor, sc::MolecularFrequencies, sc::MolecularHessian [virtual], sc::Molecule, 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.
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.
Public Member Functions inherited from sc::DescribedClass
DescribedClass (const DescribedClass &)
DescribedClass & operator= (const DescribedClass &)
ClassDesc * class_desc () const throw ()
This returns the unique pointer to the ClassDesc corresponding to the given type_info object.
const char * class_name () const
Return the name of the object's exact type.
int class_version () const
Return the version of the class.
virtual void print (std::ostream &=ExEnv::out0()) const
Print the object.
Public Member Functions inherited from sc::RefCount
int lock_ptr () const
Lock this object.
int unlock_ptr () const
Unlock this object.
void use_locks (bool inVal)
start and stop using locks on this object
refcount_t nreference () const
Return the reference count.
refcount_t reference ()
Increment the reference count and return the new count.
refcount_t dereference ()
Decrement the reference count and return the new count.
int managed () const
void unmanage ()
Turn off the reference counting mechanism for this object.
int managed () const
Return 1 if the object is managed. Otherwise return 0.
Public Member Functions inherited from sc::Identity
Identifier identifier ()
Return the Identifier for this argument.
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.
Protected Member Functions inherited from sc::RefCount
RefCount (const RefCount &)
RefCount & operator= (const RefCount &)
Detailed Description
Base class for objects that can save/restore state.
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 sc::AccumH, sc::AccumHNull, sc::AngularIntegrator, sc::AtomInfo, sc::Becke88XFunctional, sc::BeckeIntegrationWeight, sc::BEMSolventH, sc::BFGSUpdate, sc::CartMolecularCoor, sc::CLHF, sc::CLKS, sc::CLSCF, sc::Convergence, sc::Debugger, sc::DenFunctional, sc::DenIntegrator, sc::DFPUpdate, sc::DiagMolecularHessian, sc::DIIS, sc::EFCOpt, sc::EulerMaclaurinRadialIntegrator, sc::ExtendedHuckelWfn, sc::FinDispMolecularHessian, sc::Function, sc::G96XFunctional, sc::GaussianBasisSet, sc::GaussianShell, sc::GaussLegendreAngularIntegrator, sc::GDIISOpt, sc::GuessMolecularHessian, sc::HCoreWfn, sc::HessianUpdate, sc::HSOSHF, sc::HSOSKS, sc::HSOSSCF, sc::IntCoor, sc::IntCoorGen, sc::Integral, sc::IntegralCCA, sc::IntegralCints, sc::IntegralV3, sc::IntegrationWeight, sc::IntMolecularCoor, sc::LebedevLaikovIntegrator, sc::LineOpt, sc::LSDACFunctional, sc::LYPCFunctional, sc::MBPT2, sc::MBPT2_R12, sc::MOIndexSpace, sc::MOIntsTransformFactory, sc::MolecularCoor, sc::MolecularEnergy, sc::MolecularFrequencies, sc::MolecularHessian, sc::Molecule, sc::MolEnergyConvergence, sc::MP2BasisExtrap, sc::MP2R12Energy, sc::mPW91XFunctional, sc::NElFunctional, sc::NewP86CFunctional, sc::NewtonOpt, sc::OneBodyWavefunction, sc::Optimize, sc::OSSHF, sc::OSSSCF, sc::OverlapOrthog, sc::P86CFunctional, sc::PBECFunctional, sc::PBEXFunctional, sc::PointGroup, sc::PowellUpdate, sc::PsiCCSD, sc::PsiCCSD_T, sc::PsiSCF, sc::PsiWavefunction, sc::PW86XFunctional, sc::PW91CFunctional, sc::PW91XFunctional, sc::PW92LCFunctional, sc::PZ81LCFunctional, sc::QNewtonOpt, sc::R12IntEval, sc::R12IntEvalInfo, sc::R12IntsAcc, sc::R12IntsAcc_MemoryGrp, sc::R12IntsAcc_MPIIOFile, sc::R12IntsAcc_MPIIOFile_Ind, sc::R12IntsAcc_Node0File, sc::RadialAngularIntegrator, sc::RadialIntegrator, sc::ReadMolecularHessian, sc::RedundMolecularCoor, sc::SCBlockInfo, sc::SCDestructiveElementProduct, sc::SCDimension, sc::SCElementAssign, sc::SCElementDot, sc::SCElementInvert, sc::SCElementKNorm, sc::SCElementMaxAbs, sc::SCElementMinAbs, sc::SCElementRandomize, sc::SCElementScalarProduct, sc::SCElementScale, sc::SCElementScaleDiagonal, sc::SCElementShiftDiagonal, sc::SCElementSquareRoot, sc::SCElementSumAbs, sc::SCExtrapData, sc::SCExtrapError, sc::SCF, sc::SCMatrixBlock, sc::SCMatrixBlockList, sc::SCMatrixDiagBlock, sc::SCMatrixDiagSubBlock, sc::SCMatrixLTriBlock, sc::SCMatrixLTriSubBlock, sc::SCMatrixRectBlock, sc::SCMatrixRectSubBlock, sc::SCVectorSimpleBlock, sc::SCVectorSimpleSubBlock, sc::SelfConsistentExtrapolation, sc::SetIntCoor, sc::ShellPairCints, sc::ShellPairsCints, sc::SimpleCo, sc::SlaterXFunctional, sc::StdDenFunctional, sc::SteepestDescentOpt, sc::SumAccumH, sc::SumDenFunctional, sc::SumIntCoor, sc::SumMolecularEnergy, sc::SymmMolecularCoor, sc::SymmSCMatrix2SCExtrapData, sc::SymmSCMatrix4SCExtrapData, sc::SymmSCMatrixNSCExtrapData, sc::SymmSCMatrixSCExtrapData, sc::SymmSCMatrixSCExtrapError, sc::TaylorMolecularEnergy, sc::TCHF, sc::TCSCF, sc::TwoBodyGrid, sc::TwoBodyMOIntsTransform, sc::TwoBodyMOIntsTransform_ijxy, sc::TwoBodyMOIntsTransform_ikjy, sc::TwoBodyMOIntsTransform_ixjy, sc::UHF, sc::UKS, sc::Units, sc::UnrestrictedSCF, sc::VWN1LCFunctional, sc::VWN2LCFunctional, sc::VWN3LCFunctional, sc::VWN4LCFunctional, sc::VWN5LCFunctional, sc::VWNLCFunctional, sc::Wavefunction, and sc::XalphaFunctional.
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.