Public Member Functions | Private Attributes
t_local_id_class Class Reference

This class allows us to assign a unique ID to each of its derived instances. More...

List of all members.

Public Member Functions

 SetParentObj ($in_parent_obj)
 Sets the object's "parent" (Container) object, as a reference.
 GetParentObj ()
 Returns a reference to the object's container.

Private Attributes

 $_local_id_parent_obj = null
 This is the parent (container) object that holds this instance.

Detailed Description

This class allows us to assign a unique ID to each of its derived instances.

We keep a static array of instantiated subclasses. When a new instance is created, the array is consulted to assign a new ID. When


Member Function Documentation

t_local_id_class::GetParentObj ( )

Returns a reference to the object's container.

Returns:
A reference to the object's parent object.

Implements i_comdef_has_parent.

t_local_id_class::SetParentObj ( in_parent_obj)

Sets the object's "parent" (Container) object, as a reference.

We check for recursion here. We go up to a hundred levels deep (should never get close to that).

Prevent looping forever, in case a recursed object is presented.

Parameters:
in_parent_objA reference to the parent object.

Implements i_comdef_has_parent.


Member Data Documentation

t_local_id_class::$_local_id_parent_obj = null [private]

This is the parent (container) object that holds this instance.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations