Class: TBadUseOfMemoryHeap

Declaration: MemoryHeapExceptions.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TMemoryHeapUsageViolation

Inherited By:

None.

Purpose:

TBadUseOfMemoryHeap is an exception that is thrown when a heap is used incorrectly. For example, an attempt to modify a read-only heap results in this exception being thrown.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TBadUseOfMemoryHeap.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TBadUseOfMemoryHeap::TBadUseOfMemoryHeap

  1. TBadUseOfMemoryHeap (EViolation what)
  2. TBadUseOfMemoryHeap (const TBadUseOfMemoryHeap & other)
  3. TBadUseOfMemoryHeap ()

Interface Category:

API.

Purpose:

  1. Creates a TBadUseOfMemoryHeap for the specified violation.
  2. Copy constructor.
  3. Default constructor.

Calling Context:

  1. Called to create a TBadUseOfMemoryHeap for a specified violation.
  2. Called to copy an object.
  3. Called to create a TBadUseOfMemoryHeap object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBadUseOfMemoryHeap::~TBadUseOfMemoryHeap

virtual ~ TBadUseOfMemoryHeap ()

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TBadUseOfMemoryHeap::operator>>=

virtual TStream & operator >>=(TStream & toStream) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBadUseOfMemoryHeap::operator<<=

virtual TStream & operator <<= (TStream & fromStream)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBadUseOfMemoryHeap::Violation

virtual EViolation Violation () const

Interface Category:

API.

Purpose:

Returns the violation value associated with this exception.

Calling Context:

Called by exception message formatters.

Parameters:

Return Value:

Returns a violation value.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBadUseOfMemoryHeap::Throw

virtual void Throw () const

Interface Category:

API.

Purpose:

Provides polymorphic rethrowing for this object.

Calling Context:

Called when a exception from which this class is derived is caught and needs to be rethrown as this class.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBadUseOfMemoryHeap::operator=

TBadUseOfMemoryHeap & operator =(const TBadUseOfMemoryHeap & other)

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TBadUseOfMemoryHeap::GetDescriptionIndex

virtual int GetDescriptionIndex () const

Interface Category:

API.

Purpose:

Returns the description index for this exception so that it can be mapped to a platform-specific message.

Calling Context:

Called to obtain the description index for this exception.

Parameters:

Return Value:

The description index for this exception.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBadUseOfMemoryHeap::SameException

virtual bool SameException (const TStandardException & other) const

Interface Category:

API.

Purpose:

Determines if the specified object is equivalent to this object.

Calling Context:

Called to determine if the specified object is equivalent to this object.

Parameters:

Return Value:

Returns true if the two objects are equivalent.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not 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.