LSharable is a mix-in PowerPlant class that is used for reference counted objects.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Source files:
Ancestors:
Purpose:
The constructor creates objects.
Access :
Prototype:
LSharable();
Purpose:
The destructor destroys the object.
Access :
Prototype:
virtual ~LSharable();
Purpose:
Access :
Prototype:
virtual void AddUser( void* inUser);Parameters:
Return:
Purpose:
Retrieve the use count of the object.
Access :
Prototype:
virtual SInt32 GetUseCount();Parameters:
Return:
Purpose:
Internal function called when use count drops to zero.
Access :
Prototype:
virtual void NoMoreUsers();Parameters:
Return:
Purpose:
Specify that a user is no longer sharing a Sharable object. This method ignores the user and just decrements the use count. Override if you wish to keep track users.
NOTE: Do not throw an exception from this method.
Access :
Prototype:
virtual void RemoveUser (void* inUser);Parameters:
Return:
Purpose:
Access :
Prototype:
SInt32 mUseCount;