home | help
sc::SavableState(3)		      MPQC		     sc::SavableState(3)

NAME
     sc::SavableState - 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::Gaus-
     sianBasisSet, sc::GaussianShell, sc::HessianUpdate [virtual],  sc::IntCoor,
     sc::IntCoorGen, sc::Integral, sc::IntegrationWeight [virtual], sc::MOIndex-
     Space  [virtual],	sc::MOIntsTransformFactory  [virtual],	sc::MP2R12Energy
     [virtual], sc::MolecularCoor, sc::MolecularFrequencies,  sc::MolecularHess-
     ian  [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::TwoBody-
     Grid [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	*object-
	 name, 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  call-
     ing  save_object_state, save_vbase_state, and save_data_state listed above.
     All  derived   class   StateIn&   constructors   must   invoke   the   Sav-
     ableState(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::IntCoor, sc::SumIntCoor, sc::SetIntCoor, sc::IntCoor-
     Gen,   sc::MolecularCoor,	 sc::IntMolecularCoor,	  sc::SymmMolecularCoor,
     sc::RedundMolecularCoor,	  sc::CartMolecularCoor,    sc::MolecularEnergy,
     sc::SumMolecularEnergy, sc::MolEnergyConvergence, sc::FinDispMolecularHess-
     ian,   sc::MolecularHessian,   sc::ReadMolecularHessian,	sc::GuessMolecu-
     larHessian,  sc::DiagMolecularHessian,  sc::Molecule, sc::MolecularFrequen-
     cies,   sc::SimpleCo,   sc::TaylorMolecularEnergy,    sc::GaussianBasisSet,
     sc::GaussianShell,   sc::Integral,   sc::OverlapOrthog,  sc::IntegralCints,
     sc::ShellPairCints,   sc::ShellPairsCints,   sc::CLKS,   sc::DenFunctional,
     sc::NElFunctional,  sc::SumDenFunctional,	sc::StdDenFunctional, sc::LSDAC-
     Functional,  sc::PBECFunctional,  sc::PW91CFunctional,  sc::P86CFunctional,
     sc::NewP86CFunctional,	 sc::SlaterXFunctional,     sc::VWNLCFunctional,
     sc::VWN1LCFunctional,	sc::VWN2LCFunctional,	   sc::VWN3LCFunctional,
     sc::VWN4LCFunctional,	sc::VWN5LCFunctional,	   sc::PW92LCFunctional,
     sc::PZ81LCFunctional,     sc::XalphaFunctional,	 sc::Becke88XFunctional,
     sc::LYPCFunctional, sc::PW86XFunctional, sc::PBEXFunctional, sc::PW91XFunc-
     tional,  sc::mPW91XFunctional, sc::G96XFunctional, sc::HSOSKS, sc::DenInte-
     grator, sc::IntegrationWeight, sc::BeckeIntegrationWeight,  sc::RadialInte-
     grator,	  sc::AngularIntegrator,     sc::EulerMaclaurinRadialIntegrator,
     sc::LebedevLaikovIntegrator, sc::GaussLegendreAngularIntegrator,  sc::Radi-
     alAngularIntegrator,  sc::UKS,  sc::IntegralCCA, sc::IntegralV3, sc::MBPT2,
     sc::MP2BasisExtrap,  sc::MBPT2_R12,   sc::MOIndexSpace,   sc::MP2R12Energy,
     sc::R12IntsAcc,	 sc::R12IntsAcc_MemoryGrp,     sc::R12IntsAcc_MPIIOFile,
     sc::R12IntsAcc_MPIIOFile_Ind,   sc::R12IntsAcc_Node0File,	 sc::R12IntEval,
     sc::MOIntsTransformFactory,  sc::TwoBodyMOIntsTransform_ijxy,  sc::TwoBody-
     MOIntsTransform_ikjy,     sc::TwoBodyMOIntsTransform_ixjy,     sc::TwoBody-
     MOIntsTransform,  sc::TwoBodyGrid, sc::R12IntEvalInfo, sc::PsiWavefunction,
     sc::PsiSCF, sc::PsiCCSD, sc::PsiCCSD_T,  sc::CLHF,  sc::CLSCF,  sc::HSOSHF,
     sc::HSOSSCF,  sc::OSSHF, sc::OSSSCF, sc::SCF, sc::TCHF, sc::TCSCF, sc::UHF,
     sc::UnrestrictedSCF, sc::AccumH, sc::AccumHNull, sc::SumAccumH, sc::Extend-
     edHuckelWfn,   sc::OneBodyWavefunction,   sc::HCoreWfn,	sc::BEMSolventH,
     sc::Wavefunction,	 sc::Convergence,  sc::DIIS,  sc::EFCOpt,  sc::Function,
     sc::GDIISOpt,  sc::NewtonOpt,  sc::Optimize,  sc::LineOpt,  sc::QNewtonOpt,
     sc::SCExtrapData,	  sc::SCExtrapError,	sc::SelfConsistentExtrapolation,
     sc::SymmSCMatrixSCExtrapData, sc::SymmSCMatrix2SCExtrapData,  sc::SymmSCMa-
     trix4SCExtrapData, sc::SymmSCMatrixNSCExtrapData, sc::SymmSCMatrixSCExtrap-
     Error,  sc::SteepestDescentOpt,  sc::HessianUpdate, sc::DFPUpdate, sc::BFG-
     SUpdate, sc::PowellUpdate, sc::SCMatrixBlockList,	sc::SCVectorSimpleBlock,
     sc::SCVectorSimpleSubBlock,   sc::SCMatrixRectBlock,   sc::SCMatrixRectSub-
     Block, sc::SCMatrixLTriBlock,  sc::SCMatrixLTriSubBlock,  sc::SCMatrixDiag-
     Block,    sc::SCMatrixDiagSubBlock,    sc::SCBlockInfo,	sc::SCDimension,
     sc::SCElementScalarProduct,   sc::SCDestructiveElementProduct,   sc::SCEle-
     mentScale,    sc::SCElementRandomize,    sc::SCElementAssign,    sc::SCEle-
     mentSquareRoot, sc::SCElementInvert, sc::SCElementScaleDiagonal, sc::SCEle-
     mentShiftDiagonal,  sc::SCElementMaxAbs,  sc::SCElementMinAbs,   sc::SCEle-
     mentSumAbs,  sc::SCElementKNorm,  sc::SCElementDot, sc::Debugger, sc::Atom-
     Info, sc::SCMatrixBlock, sc::Units, and sc::PointGroup.

   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 rou-
     tine 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 De-
     scribedClass and SavableState virtual base classes.  This	must  be  imple-
     mented  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.

Version 2.3.1			 Thu Sep 3 2026 	     sc::SavableState(3)

home | help