#include <context.h>
Inheritance diagram for CVC3::ContextObj:
Definition at line 200 of file context.h.
CVC3::ContextObj::ContextObj | ( | const ContextObj & | co | ) | [inline, protected] |
Copy constructor (defined mainly for debugging purposes).
Definition at line 220 of file context.h.
References DebugAssert, and IF_DEBUG.
ContextObj::~ContextObj | ( | ) | [virtual] |
void ContextObj::update | ( | int | scope = -1 |
) | [private] |
Update on the given scope, on the current scope if 'scope' == -1.
Definition at line 153 of file context.cpp.
References CVC3::Scope::addToChain(), ContextObjChain, d_restore, d_scope, DebugAssert, getCMM(), IF_DEBUG, CVC3::Scope::level(), level(), makeCopy(), CVC3::Scope::prevScope(), and CVC3::Scope::topScope().
ContextObj& CVC3::ContextObj::operator= | ( | const ContextObj & | co | ) | [inline, protected] |
Assignment operator (defined mainly for debugging purposes).
Definition at line 229 of file context.h.
References DebugAssert.
virtual ContextObj* CVC3::ContextObj::makeCopy | ( | ContextMemoryManager * | cmm | ) | [protected, pure virtual] |
Make a copy of the current object so it can be restored to its current state.
Implemented in CVC3::CDFlags, CVC3::CDList< T >, CVC3::CDOmap< Key, Data, HashFcn >, CVC3::CDMapData, CVC3::CDMap< Key, Data, HashFcn >, CVC3::CDOmapOrdered< Key, Data >, CVC3::CDMapOrderedData, CVC3::CDMapOrdered< Key, Data >, CVC3::CDO< T >, CVC3::CDList< Theory * >, CVC3::CDList< Theorem >, CVC3::CDList< Literal >, CVC3::CDList< Splitter >, CVC3::CDList< ProcessKinds >, CVC3::CDList< dynTrig >, CVC3::CDList< Expr >, CVC3::CDList< ClauseOwner >, CVC3::CDList< Clause >, CVC3::CDList< Trigger >, CVC3::CDList< SmartCDO< Theorem > >, CVC3::CDOmap< Expr, EpsRational, HashFcn >, CVC3::CDOmap< Expr, bool, HashFcn >, CVC3::CDOmap< Expr, std::vector< Expr >, HashFcn >, CVC3::CDOmap< std::string, bool, HashFcn >, CVC3::CDOmap< Expr, Rational, HashFcn >, CVC3::CDOmap< Expr, DifferenceLogicGraph::EpsRational, HashFcn >, CVC3::CDOmap< Expr, std::set< std::vector< Expr > >, HashFcn >, CVC3::CDOmap< Expr, UserAssertion, HashFcn >, CVC3::CDOmap< Expr, int, HashFcn >, CVC3::CDOmap< Expr, FreeConst, HashFcn >, CVC3::CDOmap< Expr, Theorem, HashFcn >, CVC3::CDOmap< Expr, BoundInfo, HashFcn >, CVC3::CDOmap< Expr, Literal, HashFcn >, CVC3::CDOmap< Expr, SmartCDO< Unsigned >, HashFcn >, CVC3::CDOmap< Expr, Expr, HashFcn >, CVC3::CDMap< std::string, bool >, CVC3::CDMap< Expr, EpsRational, HashFcn >, CVC3::CDMap< Expr, bool, HashFcn >, CVC3::CDMap< Expr, SmartCDO< Unsigned > >, CVC3::CDMap< Expr, EpsRational >, CVC3::CDMap< Expr, std::set< std::vector< Expr > > >, CVC3::CDMap< Expr, std::vector< Expr >, HashFcn >, CVC3::CDMap< Expr, int >, CVC3::CDMap< std::string, bool, HashFcn >, CVC3::CDMap< Expr, Rational, HashFcn >, CVC3::CDMap< Expr, FreeConst >, CVC3::CDMap< Expr, DifferenceLogicGraph::EpsRational, HashFcn >, CVC3::CDMap< Expr, std::set< std::vector< Expr > >, HashFcn >, CVC3::CDMap< Expr, Literal >, CVC3::CDMap< Expr, DifferenceLogicGraph::EpsRational >, CVC3::CDMap< Expr, UserAssertion, HashFcn >, CVC3::CDMap< Expr, bool >, CVC3::CDMap< Expr, int, HashFcn >, CVC3::CDMap< Expr, FreeConst, HashFcn >, CVC3::CDMap< Expr, Theorem, HashFcn >, CVC3::CDMap< Expr, BoundInfo, HashFcn >, CVC3::CDMap< Expr, Literal, HashFcn >, CVC3::CDMap< Expr, BoundInfo >, CVC3::CDMap< Expr, Rational >, CVC3::CDMap< Expr, std::vector< Expr > >, CVC3::CDMap< Expr, Expr >, CVC3::CDMap< Expr, Theorem >, CVC3::CDMap< Expr, UserAssertion >, CVC3::CDMap< Expr, SmartCDO< Unsigned >, HashFcn >, CVC3::CDMap< Expr, Expr, HashFcn >, CVC3::CDO< int >, CVC3::CDO< Theorem >, CVC3::CDO< unsigned int >, CVC3::CDO< U >, CVC3::CDO< std::set< LitPriorityPair >::const_iterator >, CVC3::CDO< Expr >, CVC3::CDO< QueryResult >, CVC3::CDO< size_t >, CVC3::CDO< Unsigned >, CVC3::CDO< Clause >, CVC3::CDO< unsigned >, CVC3::CDO< bool >, and CVC3::CDO< Rational >.
Referenced by update().
virtual void CVC3::ContextObj::restoreData | ( | ContextObj * | data | ) | [inline, protected, virtual] |
Restore the current object from the given data.
Reimplemented in CVC3::CDFlags, CVC3::CDList< T >, CVC3::CDOmap< Key, Data, HashFcn >, CVC3::CDMapData, CVC3::CDMap< Key, Data, HashFcn >, CVC3::CDOmapOrdered< Key, Data >, CVC3::CDMapOrderedData, CVC3::CDMapOrdered< Key, Data >, CVC3::CDO< T >, CVC3::CDList< Theory * >, CVC3::CDList< Theorem >, CVC3::CDList< Literal >, CVC3::CDList< Splitter >, CVC3::CDList< ProcessKinds >, CVC3::CDList< dynTrig >, CVC3::CDList< Expr >, CVC3::CDList< ClauseOwner >, CVC3::CDList< Clause >, CVC3::CDList< Trigger >, CVC3::CDList< SmartCDO< Theorem > >, CVC3::CDOmap< Expr, EpsRational, HashFcn >, CVC3::CDOmap< Expr, bool, HashFcn >, CVC3::CDOmap< Expr, std::vector< Expr >, HashFcn >, CVC3::CDOmap< std::string, bool, HashFcn >, CVC3::CDOmap< Expr, Rational, HashFcn >, CVC3::CDOmap< Expr, DifferenceLogicGraph::EpsRational, HashFcn >, CVC3::CDOmap< Expr, std::set< std::vector< Expr > >, HashFcn >, CVC3::CDOmap< Expr, UserAssertion, HashFcn >, CVC3::CDOmap< Expr, int, HashFcn >, CVC3::CDOmap< Expr, FreeConst, HashFcn >, CVC3::CDOmap< Expr, Theorem, HashFcn >, CVC3::CDOmap< Expr, BoundInfo, HashFcn >, CVC3::CDOmap< Expr, Literal, HashFcn >, CVC3::CDOmap< Expr, SmartCDO< Unsigned >, HashFcn >, CVC3::CDOmap< Expr, Expr, HashFcn >, CVC3::CDMap< std::string, bool >, CVC3::CDMap< Expr, EpsRational, HashFcn >, CVC3::CDMap< Expr, bool, HashFcn >, CVC3::CDMap< Expr, SmartCDO< Unsigned > >, CVC3::CDMap< Expr, EpsRational >, CVC3::CDMap< Expr, std::set< std::vector< Expr > > >, CVC3::CDMap< Expr, std::vector< Expr >, HashFcn >, CVC3::CDMap< Expr, int >, CVC3::CDMap< std::string, bool, HashFcn >, CVC3::CDMap< Expr, Rational, HashFcn >, CVC3::CDMap< Expr, FreeConst >, CVC3::CDMap< Expr, DifferenceLogicGraph::EpsRational, HashFcn >, CVC3::CDMap< Expr, std::set< std::vector< Expr > >, HashFcn >, CVC3::CDMap< Expr, Literal >, CVC3::CDMap< Expr, DifferenceLogicGraph::EpsRational >, CVC3::CDMap< Expr, UserAssertion, HashFcn >, CVC3::CDMap< Expr, bool >, CVC3::CDMap< Expr, int, HashFcn >, CVC3::CDMap< Expr, FreeConst, HashFcn >, CVC3::CDMap< Expr, Theorem, HashFcn >, CVC3::CDMap< Expr, BoundInfo, HashFcn >, CVC3::CDMap< Expr, Literal, HashFcn >, CVC3::CDMap< Expr, BoundInfo >, CVC3::CDMap< Expr, Rational >, CVC3::CDMap< Expr, std::vector< Expr > >, CVC3::CDMap< Expr, Expr >, CVC3::CDMap< Expr, Theorem >, CVC3::CDMap< Expr, UserAssertion >, CVC3::CDMap< Expr, SmartCDO< Unsigned >, HashFcn >, CVC3::CDMap< Expr, Expr, HashFcn >, CVC3::CDO< int >, CVC3::CDO< Theorem >, CVC3::CDO< unsigned int >, CVC3::CDO< U >, CVC3::CDO< std::set< LitPriorityPair >::const_iterator >, CVC3::CDO< Expr >, CVC3::CDO< QueryResult >, CVC3::CDO< size_t >, CVC3::CDO< Unsigned >, CVC3::CDO< Clause >, CVC3::CDO< unsigned >, CVC3::CDO< bool >, and CVC3::CDO< Rational >.
Definition at line 239 of file context.h.
References FatalAssert.
Referenced by CVC3::ContextObjChain::restore().
const ContextObj* CVC3::ContextObj::getRestore | ( | ) | [inline, protected] |
Definition at line 244 of file context.h.
References CVC3::ContextObjChain::d_data, and CVC3::ContextObjChain::d_restore.
Referenced by CVC3::CDList< SmartCDO< Theorem > >::pop_back().
virtual void CVC3::ContextObj::setNull | ( | void | ) | [protected, pure virtual] |
Set the current object to be invalid.
Implemented in CVC3::CDFlags, CVC3::CDList< T >, CVC3::CDOmap< Key, Data, HashFcn >, CVC3::CDMapData, CVC3::CDMap< Key, Data, HashFcn >, CVC3::CDOmapOrdered< Key, Data >, CVC3::CDMapOrderedData, CVC3::CDMapOrdered< Key, Data >, CVC3::CDO< T >, CVC3::CDList< Theory * >, CVC3::CDList< Theorem >, CVC3::CDList< Literal >, CVC3::CDList< Splitter >, CVC3::CDList< ProcessKinds >, CVC3::CDList< dynTrig >, CVC3::CDList< Expr >, CVC3::CDList< ClauseOwner >, CVC3::CDList< Clause >, CVC3::CDList< Trigger >, CVC3::CDList< SmartCDO< Theorem > >, CVC3::CDOmap< Expr, EpsRational, HashFcn >, CVC3::CDOmap< Expr, bool, HashFcn >, CVC3::CDOmap< Expr, std::vector< Expr >, HashFcn >, CVC3::CDOmap< std::string, bool, HashFcn >, CVC3::CDOmap< Expr, Rational, HashFcn >, CVC3::CDOmap< Expr, DifferenceLogicGraph::EpsRational, HashFcn >, CVC3::CDOmap< Expr, std::set< std::vector< Expr > >, HashFcn >, CVC3::CDOmap< Expr, UserAssertion, HashFcn >, CVC3::CDOmap< Expr, int, HashFcn >, CVC3::CDOmap< Expr, FreeConst, HashFcn >, CVC3::CDOmap< Expr, Theorem, HashFcn >, CVC3::CDOmap< Expr, BoundInfo, HashFcn >, CVC3::CDOmap< Expr, Literal, HashFcn >, CVC3::CDOmap< Expr, SmartCDO< Unsigned >, HashFcn >, CVC3::CDOmap< Expr, Expr, HashFcn >, CVC3::CDMap< std::string, bool >, CVC3::CDMap< Expr, EpsRational, HashFcn >, CVC3::CDMap< Expr, bool, HashFcn >, CVC3::CDMap< Expr, SmartCDO< Unsigned > >, CVC3::CDMap< Expr, EpsRational >, CVC3::CDMap< Expr, std::set< std::vector< Expr > > >, CVC3::CDMap< Expr, std::vector< Expr >, HashFcn >, CVC3::CDMap< Expr, int >, CVC3::CDMap< std::string, bool, HashFcn >, CVC3::CDMap< Expr, Rational, HashFcn >, CVC3::CDMap< Expr, FreeConst >, CVC3::CDMap< Expr, DifferenceLogicGraph::EpsRational, HashFcn >, CVC3::CDMap< Expr, std::set< std::vector< Expr > >, HashFcn >, CVC3::CDMap< Expr, Literal >, CVC3::CDMap< Expr, DifferenceLogicGraph::EpsRational >, CVC3::CDMap< Expr, UserAssertion, HashFcn >, CVC3::CDMap< Expr, bool >, CVC3::CDMap< Expr, int, HashFcn >, CVC3::CDMap< Expr, FreeConst, HashFcn >, CVC3::CDMap< Expr, Theorem, HashFcn >, CVC3::CDMap< Expr, BoundInfo, HashFcn >, CVC3::CDMap< Expr, Literal, HashFcn >, CVC3::CDMap< Expr, BoundInfo >, CVC3::CDMap< Expr, Rational >, CVC3::CDMap< Expr, std::vector< Expr > >, CVC3::CDMap< Expr, Expr >, CVC3::CDMap< Expr, Theorem >, CVC3::CDMap< Expr, UserAssertion >, CVC3::CDMap< Expr, SmartCDO< Unsigned >, HashFcn >, CVC3::CDMap< Expr, Expr, HashFcn >, CVC3::CDO< int >, CVC3::CDO< Theorem >, CVC3::CDO< unsigned int >, CVC3::CDO< U >, CVC3::CDO< std::set< LitPriorityPair >::const_iterator >, CVC3::CDO< Expr >, CVC3::CDO< QueryResult >, CVC3::CDO< size_t >, CVC3::CDO< Unsigned >, CVC3::CDO< Clause >, CVC3::CDO< unsigned >, CVC3::CDO< bool >, and CVC3::CDO< Rational >.
ContextMemoryManager* CVC3::ContextObj::getCMM | ( | ) | [inline, protected] |
int CVC3::ContextObj::level | ( | void | ) | const [inline] |
Definition at line 269 of file context.h.
Referenced by CVC3::Expr::getFindLevel(), update(), and CVC3::CDFlags::update().
bool CVC3::ContextObj::isCurrent | ( | int | scope = -1 |
) | const [inline] |
Definition at line 270 of file context.h.
Referenced by CVC3::CDList< SmartCDO< Theorem > >::pop_back().
void CVC3::ContextObj::makeCurrent | ( | int | scope = -1 |
) | [inline] |
Definition at line 274 of file context.h.
Referenced by CVC3::CDList< SmartCDO< Theorem > >::push_back(), CVC3::CDO< Rational >::set(), CVC3::CDOmapOrdered< Key, Data >::set(), CVC3::CDOmap< Expr, Expr, HashFcn >::set(), and CVC3::CDFlags::update().
void* CVC3::ContextObj::operator new | ( | size_t | size, | |
MemoryManager * | mm | |||
) | [inline] |
void CVC3::ContextObj::operator delete | ( | void * | pMem, | |
MemoryManager * | mm | |||
) | [inline] |
void* CVC3::ContextObj::operator new | ( | size_t | size, | |
bool | b | |||
) | [inline] |
void CVC3::ContextObj::operator delete | ( | void * | pMem, | |
bool | b | |||
) | [inline] |
void CVC3::ContextObj::operator delete | ( | void * | ) | [inline] |
friend class ContextObjChain [friend] |
Scope* CVC3::ContextObj::d_scope [private] |
Last scope in which this object was modified.
Definition at line 206 of file context.h.
Referenced by CVC3::Scope::finalize(), CVC3::ContextObjChain::restore(), update(), and CVC3::CDFlags::update().
ContextObjChain* CVC3::ContextObj::d_restore [private] |
The list of values on previous scopes; our destructor should clean up those.
Definition at line 210 of file context.h.
Referenced by CVC3::Scope::finalize(), CVC3::ContextObjChain::restore(), update(), CVC3::CDFlags::update(), and ~ContextObj().