Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_GrowZone Class Reference

List of all members.

Memory management

SInt32 HandleGrowZoneRecoverMemory (SInt32 inBytesNeeded)
virtual SInt32 RecoverMemmory (SInt32 inBytesNeeded)
SInt32 UseMemoryReserve ()
static pascal SInt32 CP_GrowZoneCallBack (SInt32 inBytesNeeded)

Public Member Functions

Constructor / Destructor
 CP_GrowZone (SInt32 inMemoryReserve)
 Constructor.
virtual ~CP_GrowZone ()
 Destructor.
Setters
void AlertUser ()
Testers
bool HasMemoryReserve ()

Static Public Member Functions

Instance
static CP_GrowZoneInstance ()

Protected Attributes

Handle fReservedMemory
Size fReservedMemorySize
bool fAlertUser

Static Protected Attributes

static CP_GrowZonefsInstance = NULL
static GrowZoneUPP gGrowZoneUPP = NULL

Constructor & Destructor Documentation

CP_GrowZone::CP_GrowZone SInt32  inMemoryReserve  ) 
 

CP_GrowZone::~CP_GrowZone  )  [virtual]
 


Member Function Documentation

CP_GrowZone * CP_GrowZone::Instance  )  [static]
 

Returns the single instance of this object.

Exceptions:
none 
Returns:
CP_GrowZone Returns the single instance of this class.

void CP_GrowZone::AlertUser  ) 
 

Sets a flag to alert the user when memory is getting low.

Exceptions:
none 
Returns:
void

bool CP_GrowZone::HasMemoryReserve  ) 
 

SInt32 CP_GrowZone::HandleGrowZoneRecoverMemory SInt32  inBytesNeeded  )  [protected]
 

SInt32 CP_GrowZone::RecoverMemmory SInt32  inBytesNeeded  )  [protected, virtual]
 

SInt32 CP_GrowZone::UseMemoryReserve  )  [protected]
 

pascal SInt32 CP_GrowZone::CP_GrowZoneCallBack SInt32  inBytesNeeded  )  [static, protected]
 


Member Data Documentation

CP_GrowZone * CP_GrowZone::fsInstance = NULL [static, protected]
 

GrowZoneUPP CP_GrowZone::gGrowZoneUPP = NULL [static, protected]
 

Single instance of this class.

Handle CP_GrowZone::fReservedMemory [protected]
 

UPP used with the grow zone to manage memory.

Size CP_GrowZone::fReservedMemorySize [protected]
 

Desired amount of memory to hold in reserve.

bool CP_GrowZone::fAlertUser [protected]
 

Actual amount of memory being held in reserve.


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:44 2005 for CPLAT by  doxygen 1.4.0