Class AssocPtr


			
class AssocPtr : public ObjectPtr
Programmer: Ryan Davis

Description:

I provide an extension of ObjectPtr's services to include named accessors and utilities for associations.

Public Methods:

static ObjectPtr create ();
I am create. I act as a "factory method" for creating new association objects.

static ObjectPtr create (const ObjectPtr & key, const ObjectPtr & value);
parameter should not be const!!! DWH - MDS : Bullshit! - RWD I, too, act as a "factory method" for creating new association objects with their values.

static AssocPtr convert (const ObjectPtr & obj);
parameter should not be const!!! DWH - MDS : Bullshit! - RWD I convert obj to a valid AssocPtr or gNil if obj wasn't an association.

AssocPtr (const ObjectPtr & pointee);
This is the constructor. It has a default value of gNil, so it can be used as the generic constructor as well. This constructor creates a Object pointer that points to the address passed in through .

ObjectPtr & key ();
I am the accessor for my object's key.

ObjectPtr & value ();
I am the accessor for my object's value. I am the method used to test the validity of the other methods in AssocPtr. TESTING

Protected Methods:

static ClassPtr & klassPtr ();


Protected Members: