Class: TFPExceptionSet

Declaration: FPEnvironment.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Represents multiple floating-point exceptions. These exceptions are defined by the IEEE Floating-Point standards. A TFPExceptionSet object represents the names of the exceptions indicated by the arguments to its constructor.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This class is not intended to be derived.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TFPExceptionSet::TFPExceptionSet

  1. TFPExceptionSet ()
  2. TFPExceptionSet (EFPException)
  3. TFPExceptionSet (EFPException, EFPException)
  4. TFPExceptionSet (EFPException, EFPException, EFPException)
  5. TFPExceptionSet (EFPException, EFPException, EFPException, EFPException)
  6. TFPExceptionSet (EFPException, EFPException, EFPException, EFPException, EFPException)

Interface Category:

API.

Purpose:

  1. Default constructor. Creates the empty exception set.
  2. Creates an exception set with one element.
  3. Creates an exception set with two elements.
  4. Creates an exception set with three elements.
  5. Creates an exception set with four elements.
  6. Creates an exception set with five elements.

Calling Context:

  1. Called by the stream-in operators and the floating-point exception classes (derived classes of TFPException).

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFPExceptionSet::~TFPExceptionSet

~ TFPExceptionSet ()

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: TFPExceptionSet::Intersects

bool Intersects (const TFPExceptionSet &) const

Interface Category:

API.

Purpose:

Determines whether two exception sets have an element in common.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if and only if the two sets have any exception in common.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

Note that because of the conversion from EFPException to TFPExceptionSet, an EFPException can be an argument.

Member Function: TFPExceptionSet::Add

void Add (const TFPExceptionSet &)

Interface Category:

API.

Purpose:

Creates the union of two exception sets.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

Note that because of the conversion from EFPException to TFPExceptionSet, an EFPException can be an argument.

Member Function: TFPExceptionSet::Remove

void Remove (const TFPExceptionSet &)

Interface Category:

API.

Purpose:

Creates the set difference of two exception sets.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

Note that because of the conversion from EFPException to TFPExceptionSet, an EFPException can be an argument.

Member Function: TFPExceptionSet::Intersection

void Intersection (const TFPExceptionSet &)

Interface Category:

API.

Purpose:

Creates the intersection of two exception sets.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

Note that because of the conversion from EFPException to TFPExceptionSet, an EFPException can be an argument.

Member Function: TFPExceptionSet::operator>>=

TStream & operator >>=(TStream & destination) 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:

Multithread safe.

Other Considerations:

None.

Member Function: TFPExceptionSet::operator<<=

TStream & operator <<= (TStream & source)

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:

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.