Janitor< T > Class Template Reference

#include <Janitor.hpp>

Inheritance diagram for Janitor< T >:

XMemory List of all members.

Public Member Functions

 Janitor (T *const toDelete)
 ~Janitor ()
void orphan ()
T & operator * () const
T * operator-> () const
T * get () const
T * release ()
void reset (T *p=0)

Private Member Functions

 Janitor ()
 Janitor (const Janitor< T > &)

Private Attributes

T * fData

Detailed Description

template<class T>
class Janitor< T >

Definition at line 115 of file Janitor.hpp.


Constructor & Destructor Documentation

template<class T>
XERCES_CPP_NAMESPACE_BEGIN Janitor< T >::Janitor ( T *const   toDelete  ) 

Log
Janitor.c,v
Revision 1.1.1.1 2004/05/22 17:43:33 cvsadm created new repository GT2004_WM

Revision 1.1 2003/10/25 10:24:03 roefer Xerces added for SimRobXP

Revision 1.1.1.1 2003/09/02 14:51:15 roefer Pre-alpha version, not functional

Revision 1.4 2003/05/21 03:34:52 jberry Cast away CodeWarrior complaint of casting away const if we're holding a const obj

Revision 1.3 2003/05/15 19:04:35 knoaman Partial implementation of the configurable memory manager.

Revision 1.2 2002/11/04 15:22:04 tng C++ Namespace Support.

Revision 1.1.1.1 2002/02/01 22:22:10 peiyongz sane_include

Revision 1.6 2000/10/13 22:45:11 andyh Complete removal of ArrayJanitory::operator->(). Was just commented out earlier.

Revision 1.5 2000/10/10 23:52:10 andyh From Janitor, remove the addition that is having compile problems in MSVC.

Revision 1.4 2000/10/09 18:32:31 jberry Add some auto_ptr functionality to allow modification of monitored pointer value. This eases use of Janitor in some situations.

Revision 1.3 2000/03/02 19:54:40 roddey This checkin includes many changes done while waiting for the 1.1.0 code to be finished. I can't list them all here, but a list is available elsewhere.

Revision 1.2 2000/02/06 07:48:02 rahulj Year 2K copyright swat.

Revision 1.1.1.1 1999/11/09 01:04:26 twl Initial checkin

Revision 1.2 1999/11/08 20:45:08 rahul Swat for adding in Product name and CVS comment log variable.

Definition at line 119 of file Janitor.c.

template<class T>
Janitor< T >::~Janitor (  ) 

Definition at line 125 of file Janitor.c.

References Janitor< T >::reset().

template<class T>
Janitor< T >::Janitor (  )  [private]

template<class T>
Janitor< T >::Janitor ( const Janitor< T > &   )  [private]


Member Function Documentation

template<class T>
T * Janitor< T >::get (  )  const

Definition at line 156 of file Janitor.c.

References Janitor< T >::fData.

template<class T>
T & Janitor< T >::operator * (  )  const

Definition at line 142 of file Janitor.c.

References Janitor< T >::fData.

template<class T>
T * Janitor< T >::operator-> (  )  const

Definition at line 149 of file Janitor.c.

References Janitor< T >::fData.

template<class T>
void Janitor< T >::orphan (  ) 

Definition at line 135 of file Janitor.c.

References Janitor< T >::release().

template<class T>
T * Janitor< T >::release (  ) 

Definition at line 163 of file Janitor.c.

References Janitor< T >::fData.

Referenced by Janitor< T >::orphan().

template<class T>
void Janitor< T >::reset ( T *  p = 0  ) 

Definition at line 171 of file Janitor.c.

References Janitor< T >::fData.

Referenced by Janitor< T >::~Janitor().


Member Data Documentation

template<class T>
T* Janitor< T >::fData [private]

Definition at line 150 of file Janitor.hpp.

Referenced by Janitor< T >::get(), Janitor< T >::operator *(), Janitor< T >::operator->(), Janitor< T >::release(), and Janitor< T >::reset().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:39:26 2006 for DT2005.panorama by  doxygen 1.4.7