count_ptr< T > Class Template Reference

#include <count_ptr.h>

Collaboration diagram for count_ptr< T >:
[legend]

Public Member Functions

 count_ptr (T *ptr=0)
 count_ptr (const count_ptr< T > &p)
 ~count_ptr () throw ()
count_ptr< T > & operator= (count_ptr< T > temp)
T & operator* () const
T * operator-> () const throw ()
int equiv (const count_ptr< T > &p) const throw ()
T * get_ptr () const throw ()
long count () const
void swap (count_ptr< T > &a) throw ()
int compare (const count_ptr< T > &a) const

Private Member Functions

void cancel ()

Private Attributes

T * m_ptr
long * m_count

Detailed Description

template<class T>
class count_ptr< T >

Definition at line 9 of file count_ptr.h.


Constructor & Destructor Documentation

template<class T>
count_ptr< T >::count_ptr ( T *  ptr = 0  )  [inline, explicit]

Definition at line 15 of file count_ptr.h.

template<class T>
count_ptr< T >::count_ptr ( const count_ptr< T > &  p  )  [inline]

Definition at line 18 of file count_ptr.h.

template<class T>
count_ptr< T >::~count_ptr (  )  throw () [inline]

Definition at line 23 of file count_ptr.h.


Member Function Documentation

template<class T>
void count_ptr< T >::cancel (  )  [inline, private]

Definition at line 69 of file count_ptr.h.

Referenced by count_ptr< TransitionListImpl >::~count_ptr().

template<class T>
int count_ptr< T >::compare ( const count_ptr< T > &  a  )  const [inline]

Definition at line 60 of file count_ptr.h.

Referenced by newspecies(), operator==(), operator>(), and operator>=().

template<class T>
long count_ptr< T >::count (  )  const [inline]

Definition at line 51 of file count_ptr.h.

template<class T>
int count_ptr< T >::equiv ( const count_ptr< T > &  p  )  const throw () [inline]

Definition at line 43 of file count_ptr.h.

template<class T>
T* count_ptr< T >::get_ptr (  )  const throw () [inline]

Definition at line 47 of file count_ptr.h.

Referenced by TransitionList::isSame(), newisotope(), and parse_species_label().

template<class T>
T& count_ptr< T >::operator* (  )  const [inline]

Definition at line 35 of file count_ptr.h.

template<class T>
T* count_ptr< T >::operator-> (  )  const throw () [inline]

Definition at line 39 of file count_ptr.h.

template<class T>
count_ptr<T>& count_ptr< T >::operator= ( count_ptr< T >  temp  )  [inline]

Definition at line 28 of file count_ptr.h.

template<class T>
void count_ptr< T >::swap ( count_ptr< T > &  a  )  throw () [inline]

Field Documentation

template<class T>
long* count_ptr< T >::m_count [private]
template<class T>
T* count_ptr< T >::m_ptr [private]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1