template<class T, ptr::SafeProperty property> class GradSoft::counted_mt_ptr

shared counted pointer (thread-safe);

Inheritance:


Public Methods

[more] counted_mt_ptr() throw()
initialize to NULL value
[more] counted_mt_ptr(const counted_mt_ptr& x) throw()
copy constructror
[more]explicit counted_mt_ptr(T* pT) throw(std::bad_alloc)
explicit constructor with pointer
     * Usage:     *   counted_mt_ptr<My> my(new My());     *
[more] ~counted_mt_ptr()
destructor
[more]counted_mt_ptr operator=(const counted_mt_ptr& x)
[more]T* operator->() throw(NullPointerException)
return pointer to holded value Note: throw NullPointerException on NULL when safety is set to true
[more]const T* operator->() const throw(NullPointerException)
[more]T& operator*() throw(NullPointerException)
[more]T* get() const throw()
[more]T* get_() const throw()
unsafe get
[more]void assign(T* newT) throw(std::runtime_error)
[more]void assign_(T* newT) throw(std::bad_alloc)
unsafe assign
[more]int getRefCount(void) const
[more]int getRefCount_(void) const throw()
[more]Mutex& getMutex()
[more]bool operator==(const counted_ptr<T, property>& x) const
[more]bool operator==(const counted_mt_ptr& x) const
[more]bool operator==(const T* x) const
[more]bool equal(const T* x) const
[more]bool equal_(const T* x) const
equal without mt checking
[more]bool isNULL() const
[more]bool isNULL_() const
[more]bool operator!=(const counted_mt_ptr& x) const


Documentation

shared counted pointer (thread-safe);
o counted_mt_ptr() throw()
initialize to NULL value

o counted_mt_ptr(const counted_mt_ptr& x) throw()
copy constructror

oexplicit counted_mt_ptr(T* pT) throw(std::bad_alloc)
explicit constructor with pointer
    * Usage:
    *   counted_mt_ptr<My> my(new My());
    *

o ~counted_mt_ptr()
destructor

ocounted_mt_ptr operator=(const counted_mt_ptr& x)

oT* operator->() throw(NullPointerException)
return pointer to holded value Note: throw NullPointerException on NULL when safety is set to true

oconst T* operator->() const throw(NullPointerException)

oT& operator*() throw(NullPointerException)

oT* get() const throw()

oT* get_() const throw()
unsafe get

ovoid assign(T* newT) throw(std::runtime_error)

ovoid assign_(T* newT) throw(std::bad_alloc)
unsafe assign

oint getRefCount(void) const

oint getRefCount_(void) const throw()

oMutex& getMutex()

obool operator==(const counted_ptr<T, property>& x) const

obool operator==(const counted_mt_ptr& x) const

obool operator==(const T* x) const

obool equal(const T* x) const

obool equal_(const T* x) const
equal without mt checking

obool isNULL() const

obool isNULL_() const

obool operator!=(const counted_mt_ptr& x) const


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.