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

stdbase::system::Object Class Reference

Base class for all classes that can be instantiated and manipulated via a reference and use the synchronized technique for mutual-exclusion. More...

Inheritance diagram for stdbase::system::Object::

stdbase::io::FileInputStream stdbase::io::FilterInputStream stdbase::io::PrintStream stdbase::system::String stdbase::io::BufferedInputStream List of all members.

Public Methods

synchronized synchronize ()
 Factory method used to ensure mutual exclusion. More...

virtual bool equals (ObjectRef object)
 Compares two objects by content and type. More...

virtual system::reference<
String
toString () const
 Provide object a String representation of this object.


Protected Methods

 Object (void)
 Object instances can only be created via a create() factory (static) function.

virtual ~Object (void)
 Destructor - called only by ObjectRef when the Object instance is no longer needed. More...

virtual void inc () const
virtual unsigned dec () const

Protected Attributes

unsigned count
platform::Lock lock

Friends

class ObjectRef

Detailed Description

Base class for all classes that can be instantiated and manipulated via a reference and use the synchronized technique for mutual-exclusion.

For any class there should only be one base class derived from Object. Object maintains reference counts and thread locks. For each instance, the Object part of it MUST be unique or very bad things happen.

Last maintained by

Author:
w-molloy
Date:
2002/07/26 08:09:53

Author:
Warwick Molloy
Version:
Revision:
1.3

Definition at line 76 of file Object.


Constructor & Destructor Documentation

stdbase::system::Object::~Object void [protected, virtual]
 

Destructor - called only by ObjectRef when the Object instance is no longer needed.

Objects are automatically destroyed as per the memory management implementation chosen.

Definition at line 55 of file Object.cpp.


Member Function Documentation

bool stdbase::system::Object::equals ObjectRef obj [virtual]
 

Compares two objects by content and type.

Parameters:
object   the instance to which this will be compared (should be a matching class).

Definition at line 78 of file Object.cpp.

synchronized stdbase::system::Object::synchronize [inline]
 

Factory method used to ensure mutual exclusion.

This is similar to using Java's synchronize keyword.

Definition at line 159 of file Object.


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