cloudy trunk
Loading...
Searching...
No Matches
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

◆ count_ptr() [1/2]

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

Definition at line 17 of file count_ptr.h.

◆ count_ptr() [2/2]

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

Definition at line 20 of file count_ptr.h.

References count_ptr< T >::m_count.

◆ ~count_ptr()

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

Definition at line 25 of file count_ptr.h.

References count_ptr< T >::cancel().

Here is the call graph for this function:

Member Function Documentation

◆ cancel()

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

Definition at line 71 of file count_ptr.h.

References count_ptr< T >::m_count, and count_ptr< T >::m_ptr.

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

◆ compare()

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

Definition at line 62 of file count_ptr.h.

References count_ptr< T >::m_ptr.

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

◆ count()

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

Definition at line 53 of file count_ptr.h.

References count_ptr< T >::m_count.

◆ equiv()

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.

References count_ptr< T >::m_ptr.

◆ get_ptr()

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

Definition at line 49 of file count_ptr.h.

References count_ptr< T >::m_ptr.

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

◆ operator*()

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

Definition at line 37 of file count_ptr.h.

References count_ptr< T >::m_ptr.

◆ operator->()

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

Definition at line 41 of file count_ptr.h.

References count_ptr< T >::m_ptr.

◆ operator=()

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

Definition at line 30 of file count_ptr.h.

References count_ptr< T >::swap().

Here is the call graph for this function:

◆ swap()

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

Definition at line 57 of file count_ptr.h.

References count_ptr< T >::m_count, and count_ptr< T >::m_ptr.

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

Field Documentation

◆ m_count

template<class T >
long* count_ptr< T >::m_count
private

◆ m_ptr

template<class T >
T* count_ptr< T >::m_ptr
private

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