Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

stdbase::system::ObjectRef Class Reference

Reference implementation for the Object class and its instances. More...

List of all members.

Public Methods

 ObjectRef (Object *obj)
 Constructor used by the create() factory method. More...

 ObjectRef (Abstract *obj)
 Constructor used by the create() factory method. More...

 ObjectRef (const ObjectRef &r)
 Copy constructor for making a local object reference. More...

 ~ObjectRef (void)
 The normal destructor.

const ObjectRef & operator= (const ObjectRef &r) const
 The const version of the assignment operator.

bool operator== (const ObjectRef &r) const
 Boolean comparison of two objects for equality.

bool operator!= (const ObjectRef &r) const
 Boolean comparison of two objects for inequality.

Objectget ()
 A way to get access to the internal pointer. More...

const Objectget () const
 Same as the other get() method but assumes the ObjectRef will not change as a result.


Detailed Description

Reference implementation for the Object class and its instances.

This class knows how to maintain reference counts.

See also:
Object

Definition at line 59 of file RefCount.


Constructor & Destructor Documentation

stdbase::system::ObjectRef::ObjectRef Object * obj
 

Constructor used by the create() factory method.

For internal use only.

Definition at line 59 of file RefCount.cpp.

stdbase::system::ObjectRef::ObjectRef Abstract * obj
 

Constructor used by the create() factory method.

For internal use only.

Definition at line 50 of file RefCount.cpp.

stdbase::system::ObjectRef::ObjectRef const ObjectRef & r
 

Copy constructor for making a local object reference.

This is the constructor most developers will use either directly or indirectly.

Definition at line 68 of file RefCount.cpp.


Member Function Documentation

Object * stdbase::system::ObjectRef::get
 

A way to get access to the internal pointer.

Needed especially for String.

Definition at line 114 of file RefCount.cpp.


The documentation for this class was generated from the following files:
Generated at Tue Aug 13 14:19:42 2002 for stdnet2 by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001