CVC3  2.4.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CVC3::CDO< T > Class Template Reference

#include <cdo.h>

Inheritance diagram for CVC3::CDO< T >:
CVC3::ContextObj

Public Member Functions

 CDO (Context *context)
 
 CDO (Context *context, const T &data, int scope=-1)
 
 ~CDO ()
 
void set (const T &data, int scope=-1)
 
const T & get () const
 
 operator T ()
 
CDO< T > & operator= (const T &data)
 
- Public Member Functions inherited from CVC3::ContextObj
 ContextObj (Context *context)
 Create a new ContextObj. More...
 
virtual ~ContextObj ()
 
int level () const
 
bool isCurrent (int scope=-1) const
 
void makeCurrent (int scope=-1)
 
void * operator new (size_t size, MemoryManager *mm)
 
void operator delete (void *pMem, MemoryManager *mm)
 
void * operator new (size_t size, bool b)
 
void operator delete (void *pMem, bool b)
 
void operator delete (void *)
 

Private Member Functions

virtual ContextObjmakeCopy (ContextMemoryManager *cmm)
 Make a copy of the current object so it can be restored to its current state. More...
 
virtual void restoreData (ContextObj *data)
 Restore the current object from the given data. More...
 
virtual void setNull (void)
 Set the current object to be invalid. More...
 
 CDO (const CDO< T > &cdo)
 
CDO< T > & operator= (const CDO< T > &cdo)
 

Private Attributes

d_data
 

Additional Inherited Members

- Protected Member Functions inherited from CVC3::ContextObj
 ContextObj (const ContextObj &co)
 Copy constructor (defined mainly for debugging purposes) More...
 
ContextObjoperator= (const ContextObj &co)
 Assignment operator (defined mainly for debugging purposes) More...
 
const ContextObjgetRestore ()
 
ContextMemoryManagergetCMM ()
 Return our name (for debugging) More...
 

Detailed Description

template<class T>
class CVC3::CDO< T >

Definition at line 39 of file cdo.h.

Constructor & Destructor Documentation

template<class T>
CVC3::CDO< T >::CDO ( const CDO< T > &  cdo)
inlineprivate

Definition at line 51 of file cdo.h.

template<class T>
CVC3::CDO< T >::CDO ( Context context)
inline

Definition at line 55 of file cdo.h.

template<class T>
CVC3::CDO< T >::CDO ( Context context,
const T &  data,
int  scope = -1 
)
inline

Definition at line 57 of file cdo.h.

template<class T>
CVC3::CDO< T >::~CDO ( )
inline

Definition at line 62 of file cdo.h.

Member Function Documentation

template<class T>
virtual ContextObj* CVC3::CDO< T >::makeCopy ( ContextMemoryManager cmm)
inlineprivatevirtual

Make a copy of the current object so it can be restored to its current state.

Implements CVC3::ContextObj.

Definition at line 42 of file cdo.h.

template<class T>
virtual void CVC3::CDO< T >::restoreData ( ContextObj data)
inlineprivatevirtual

Restore the current object from the given data.

Reimplemented from CVC3::ContextObj.

Definition at line 44 of file cdo.h.

template<class T>
virtual void CVC3::CDO< T >::setNull ( void  )
inlineprivatevirtual

Set the current object to be invalid.

Implements CVC3::ContextObj.

Definition at line 47 of file cdo.h.

template<class T>
CDO<T>& CVC3::CDO< T >::operator= ( const CDO< T > &  cdo)
inlineprivate

Definition at line 52 of file cdo.h.

template<class T>
void CVC3::CDO< T >::set ( const T &  data,
int  scope = -1 
)
inline
template<class T>
const T& CVC3::CDO< T >::get ( ) const
inline
template<class T>
CVC3::CDO< T >::operator T ( )
inline

Definition at line 65 of file cdo.h.

template<class T>
CDO<T>& CVC3::CDO< T >::operator= ( const T &  data)
inline

Definition at line 66 of file cdo.h.

Member Data Documentation

template<class T>
T CVC3::CDO< T >::d_data
private

The documentation for this class was generated from the following file: