CVC3  2.4.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CVC3::CDOmapOrdered< Key, Data > Class Template Reference

#include <cdmap_ordered.h>

Inheritance diagram for CVC3::CDOmapOrdered< Key, Data >:
CVC3::ContextObj

Public Member Functions

 CDOmapOrdered (Context *context, CDMapOrdered< Key, Data > *cdmap, const Key &key, const Data &data, int scope=-1)
 
 ~CDOmapOrdered ()
 
void set (const Data &data, int scope=-1)
 
const Key & getKey () const
 
const Data & get () const
 
 operator Data ()
 
CDOmapOrdered< Key, Data > & operator= (const Data &data)
 
CDOmapOrdered< Key, Data > * next () const
 
- 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...
 

Private Attributes

Key d_key
 
Data d_data
 
bool d_inMap
 
CDMapOrdered< Key, Data > * d_cdmap
 
CDOmapOrdered< Key, Data > * d_prev
 
CDOmapOrdered< Key, Data > * d_next
 

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 Key, class Data>
class CVC3::CDOmapOrdered< Key, Data >

Definition at line 48 of file cdmap_ordered.h.

Constructor & Destructor Documentation

template<class Key, class Data>
CVC3::CDOmapOrdered< Key, Data >::CDOmapOrdered ( Context context,
CDMapOrdered< Key, Data > *  cdmap,
const Key &  key,
const Data &  data,
int  scope = -1 
)
inline
template<class Key, class Data>
CVC3::CDOmapOrdered< Key, Data >::~CDOmapOrdered ( )
inline

Definition at line 101 of file cdmap_ordered.h.

Member Function Documentation

template<class Key, class Data>
virtual ContextObj* CVC3::CDOmapOrdered< Key, Data >::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 58 of file cdmap_ordered.h.

template<class Key, class Data>
virtual void CVC3::CDOmapOrdered< Key, Data >::restoreData ( ContextObj data)
inlineprivatevirtual

Restore the current object from the given data.

Reimplemented from CVC3::ContextObj.

Definition at line 61 of file cdmap_ordered.h.

References CVC3::CDOmapOrdered< Key, Data >::d_data, CVC3::CDOmapOrdered< Key, Data >::d_inMap, and CVC3::CDOmapOrdered< Key, Data >::setNull().

template<class Key, class Data>
virtual void CVC3::CDOmapOrdered< Key, Data >::setNull ( void  )
inlineprivatevirtual
template<class Key, class Data>
void CVC3::CDOmapOrdered< Key, Data >::set ( const Data &  data,
int  scope = -1 
)
inline
template<class Key, class Data>
const Key& CVC3::CDOmapOrdered< Key, Data >::getKey ( ) const
inline

Definition at line 105 of file cdmap_ordered.h.

References CVC3::CDOmapOrdered< Key, Data >::d_key.

template<class Key, class Data>
const Data& CVC3::CDOmapOrdered< Key, Data >::get ( ) const
inline

Definition at line 106 of file cdmap_ordered.h.

References CVC3::CDOmapOrdered< Key, Data >::d_data.

template<class Key, class Data>
CVC3::CDOmapOrdered< Key, Data >::operator Data ( )
inline

Definition at line 107 of file cdmap_ordered.h.

template<class Key, class Data>
CDOmapOrdered<Key,Data>& CVC3::CDOmapOrdered< Key, Data >::operator= ( const Data &  data)
inline

Definition at line 108 of file cdmap_ordered.h.

template<class Key, class Data>
CDOmapOrdered<Key,Data>* CVC3::CDOmapOrdered< Key, Data >::next ( ) const
inline

Member Data Documentation

template<class Key, class Data>
Key CVC3::CDOmapOrdered< Key, Data >::d_key
private
template<class Key, class Data>
Data CVC3::CDOmapOrdered< Key, Data >::d_data
private
template<class Key, class Data>
bool CVC3::CDOmapOrdered< Key, Data >::d_inMap
private
template<class Key, class Data>
CDMapOrdered<Key, Data>* CVC3::CDOmapOrdered< Key, Data >::d_cdmap
private
template<class Key, class Data>
CDOmapOrdered<Key,Data>* CVC3::CDOmapOrdered< Key, Data >::d_prev
private
template<class Key, class Data>
CDOmapOrdered<Key,Data>* CVC3::CDOmapOrdered< Key, Data >::d_next
private

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