Class: TAllocationHeap

Declaration: AllocationHeap.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

TAllocationHeap is a class that provides a default heap allocation policy. TAllocationHeap is intended to be used as the default heap and combines good performance with a simple and easy-to-use interface.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TAllocationHeap.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TAllocationHeap::TAllocationHeap

  1. TAllocationHeap (const void * anObject)
  2. TAllocationHeap (TMemoryHeap * aHeap)
  3. TAllocationHeap (const TAllocationHeap & that)

Interface Category:

API.

Purpose:

  1. Creates a TAllocationHeap on the same heap as anObject. If anObject cannot be found, the default heap is used.
  2. Creates a TAllocationHeap to represent aHeap. If aHeap is NIL, the default is used.
  3. Copy constructor.

Calling Context:

  1. Called to create a TAllocationHeap to represent the heap.
  2. Called to create a TAllocationHeap on the specified heap.
  3. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAllocationHeap::~TAllocationHeap

~ TAllocationHeap ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAllocationHeap::operator=

TAllocationHeap & operator =(const TAllocationHeap & that)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAllocationHeap::operator->

TMemoryHeap * operator ->() const

Interface Category:

API.

Purpose:

Allows this object to be used as a TMemoryHeap pointer.

Calling Context:

Called whenever this object is referenced as a TAllocationHeap.

Parameters:

Return Value:

A reference to this heap.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAllocationHeap::operatorTMemoryHeap*

operator TMemoryHeap * () const

Interface Category:

API.

Purpose:

Allows a TAllocationHeap to be referenced as a TMemoryHeap.

Calling Context:

Called automatically whenever this object is referenced as a TMemoryHeap.

Parameters:

Return Value:

A reference to this heap.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.