cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes
count_ptr< T > Class Template Reference

#include <count_ptr.h>

Collaboration diagram for count_ptr< T >:
Collaboration graph
[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 11 of file count_ptr.h.

Constructor & Destructor Documentation

template<class T>
count_ptr< T >::count_ptr ( T *  ptr = 0)
inlineexplicit

Definition at line 17 of file count_ptr.h.

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

Definition at line 20 of file count_ptr.h.

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

Definition at line 25 of file count_ptr.h.

Member Function Documentation

template<class T>
void count_ptr< T >::cancel ( )
inlineprivate

Definition at line 71 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 62 of file count_ptr.h.

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

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

Definition at line 53 of file count_ptr.h.

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

Definition at line 45 of file count_ptr.h.

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

Definition at line 49 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 37 of file count_ptr.h.

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

Definition at line 41 of file count_ptr.h.

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

Definition at line 30 of file count_ptr.h.

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

Definition at line 57 of file count_ptr.h.

Referenced by count_ptr< TransitionListImpl >::operator=(), and swap().

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: