Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBsharedObjPtr Class Template Reference

Shared object pointer - read-write access. More...

#include <CTBsharedObjPtr.hxx>

Inheritance diagram for CTBsharedObjPtr:

Inheritance graph
[legend]
Collaboration diagram for CTBsharedObjPtr:

Collaboration graph
[legend]
List of all members.

Public Methods

 CTBsharedObjPtr ()
 CTBsharedObjPtr (const CTBsharedObjPtr< T > &rhs)
 CTBsharedObjPtr (T *p)
CTBsharedObjPtr< T > & operator= (T *rhs)
Toperator * () const
Toperator-> () const

Detailed Description

template<class T>
class CTBsharedObjPtr< T >

Shared object pointer - read-write access.

Definition at line 60 of file CTBsharedObjPtr.hxx.


Constructor & Destructor Documentation

template<class T>
CTBsharedObjPtr< T >::CTBsharedObjPtr [inline]
 

Default constructor.

Definition at line 281 of file CTBsharedObjPtr.icc.

template<class T>
CTBsharedObjPtr< T >::CTBsharedObjPtr const CTBsharedObjPtr< T > & rhs [inline]
 

Copy constructor.

If rhs is non-zero, the reference count of the object controlled by rhs is increased by one.

Definition at line 293 of file CTBsharedObjPtr.icc.

template<class T>
CTBsharedObjPtr< T >::CTBsharedObjPtr T * p [inline]
 

Construct from pointer.

The object refered to by p becomes a controlled object, its reference count is set to one. In most cases the argument is the new operator, like

    CTBsharedObjPtr<foo>  p(new foo(a1,a2));

Definition at line 308 of file CTBsharedObjPtr.icc.


Member Function Documentation

template<class T>
CTBsharedObjPtr< T > & CTBsharedObjPtr< T >::operator= T * rhs [inline]
 

Make rhs the controlled object.

Reimplemented from CTBsharedCObjPtr.

Definition at line 316 of file CTBsharedObjPtr.icc.

template<class T>
T & CTBsharedObjPtr< T >::operator * const [inline]
 

Dereference pointer (access controlled object).

Reimplemented from CTBsharedCObjPtr.

Definition at line 326 of file CTBsharedObjPtr.icc.

template<class T>
T * CTBsharedObjPtr< T >::operator-> const [inline]
 

Access member of controlled object.

Reimplemented from CTBsharedCObjPtr.

Definition at line 335 of file CTBsharedObjPtr.icc.


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:14:06 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001