C++ API Library Reference  4.3.2-74-ge1d4cca
Public Types | Public Functions | Friends | List of all members
CountedPtr< T > Class Template Reference

template<class T>
class CSI::CountedPtr< T >

The CountedPtr class implements a counted pointer.

Public Types

typedef T Type
 

Public Functions

template<class D >
 CountedPtr (const CountedPtr< D > &p) throw ()
 
T * get () const throw ()
 
 operator bool () const throw ()
 
bool operator!= (CountedPtr const &other) const throw ()
 
template<class D >
bool operator!= (const CountedPtr< D > &other) const throw ()
 
T & operator* () const throw ()
 
T * operator-> () const throw ()
 
bool operator< (CountedPtr const &other) const throw ()
 
template<class D >
bool operator< (const CountedPtr< D > &other) const throw ()
 
bool operator<= (CountedPtr const &other) const throw ()
 
template<class D >
bool operator<= (const CountedPtr< D > &other) const throw ()
 
CountedPtroperator= (CountedPtr const &other) throw ()
 
CountedPtroperator= (T *p)
 
template<typename D >
CountedPtroperator= (D *p) throw ()
 
template<class D >
CountedPtroperator= (const CountedPtr< D > &other) throw ()
 
bool operator== (CountedPtr const &other) const throw ()
 
template<class D >
bool operator== (const CountedPtr< D > &other) const throw ()
 
bool operator> (CountedPtr const &other) const throw ()
 
template<class D >
bool operator> (const CountedPtr< D > &other) const throw ()
 
bool operator>= (CountedPtr const &other) const throw ()
 
template<class D >
bool operator>= (const CountedPtr< D > &other) const throw ()
 
bool unique () const throw ()
 
Constructors and Destructors
 CountedPtr () throw ()
 
 CountedPtr (T *p)
 
 ~CountedPtr ()
 
 CountedPtr (CountedPtr const &other) throw ()
 

Friends

template<typename D >
class CountedPtr
 
class WeakPtr< T >
 

Member Typedef Documentation

typedef T Type

Usage Description

T* get ( ) const
throw (
)
inline
operator bool ( ) const
throw (
)
inline
bool operator!= ( CountedPtr< T > const &  other) const
throw (
)
inline

Checks if the current instance is equal to the specified other instance. Returns true if they are not equal, otherwise returns false.

bool operator!= ( const CountedPtr< D > &  other) const
throw (
)
inline

Checks if the constant reference to the current instance is equal to the specified other instance. Returns true if they are not equal, otherwise returns false.

T& operator* ( ) const
throw (
)
inline
T* operator-> ( ) const
throw (
)
inline
bool operator< ( CountedPtr< T > const &  other) const
throw (
)
inline

Checks if the current instance is less than the specified other instance. Returns true if it is, otherwise returns false.

bool operator< ( const CountedPtr< D > &  other) const
throw (
)
inline

Checks if the constant reference to the current instance is less than the specified other instance. Returns true if it is, otherwise returns false.

bool operator<= ( CountedPtr< T > const &  other) const
throw (
)
inline

Checks if the current instance is less than or equal to the specified other instance. Returns true if it is, otherwise returns false.

bool operator<= ( const CountedPtr< D > &  other) const
throw (
)
inline

Checks if the constant reference to the current instance is less or equal to than the specified other instance. Returns true if it is, otherwise returns false.

CountedPtr& operator= ( CountedPtr< T > const &  other)
throw (
)
inline

Assigns to the current instance the value of the specified other instance.

CountedPtr& operator= ( T *  p)
inline
CountedPtr& operator= ( D *  p)
throw (
)
inline
CountedPtr& operator= ( const CountedPtr< D > &  other)
throw (
)
inline
bool operator== ( CountedPtr< T > const &  other) const
throw (
)
inline

Checks if the current instance is equal to the specified other instance. Returns true if they are equal, otherwise returns false.

bool operator== ( const CountedPtr< D > &  other) const
throw (
)
inline

Checks if the constant reference to the current instance is equal to the specified other instance. Returns true if they are equal, otherwise returns false.

bool operator> ( CountedPtr< T > const &  other) const
throw (
)
inline

Checks if the current instance is greater than the specified other instance. Returns true if it is, otherwise returns false.

bool operator> ( const CountedPtr< D > &  other) const
throw (
)
inline

Checks if the constant reference to the current instance is greater than the specified other instance. Returns true if it is, otherwise returns false.

bool operator>= ( CountedPtr< T > const &  other) const
throw (
)
inline

Checks if the current instance is greater than or equal to the specified other instance. Returns true if it is, otherwise returns false.

bool operator>= ( const CountedPtr< D > &  other) const
throw (
)
inline

Checks if the constant reference to the current instance is greater than or equal to the specified other instance. Returns true if it is, otherwise returns false.

bool unique ( ) const
throw (
)
inline

Friends And Related Function Documentation

friend class CountedPtr
friend
friend class WeakPtr< T >
friend