Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
None.
Inherited By:
None.
Purpose:
Implements a signed integer data type twice as wide as the long data-type. It supports most standard integer operations, as defined by ANSI C, thus serving as an extension of the long data type.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
None. Do not derive from this class.
Concurrency:
Multithread safe.
Resource Use:
No special requirements.
Other Considerations:
None.
- TDoubleLong (long mostSignificant, unsigned long leastSignificant)
- TDoubleLong (unsigned long)
- TDoubleLong (long)
- TDoubleLong (unsigned int)
- TDoubleLong (int)
- TDoubleLong ()
- TDoubleLong (long double)
- TDoubleLong (double)
Interface Category:
API.
Purpose:
- Creates a TDoubleLong object, given its high and low long words.
- Creates a TDoubleLong object from an unsigned long integral type.
- Creates a TDoubleLong object from a long integral type.
- Creates a TDoubleLong object from an unsigned int integral type.
- Creates a TDoubleLong object from an int integral type.
- Default constructor -does no initialization.
- Creates a TDoubleLong object from a long double floating-point type.
- Creates a TDoubleLong object from a double floating-point type.
Calling Context:
- Designed to work in nondefault floating-point modes.
Call this function directly.
- Designed to work in nondefault floating-point modes.
Call this function directly.
- Designed to work in nondefault floating-point modes.
Call this function directly.
- Designed to work in nondefault floating-point modes.
Call this function directly.
- Designed to work in nondefault floating-point modes.
Call this function directly.
- Called by the stream-in operators.
- Designed to work in nondefault floating-point modes.
Call this function directly.
- Designed to work in nondefault floating-point modes.
Call this function directly.
Parameters:
- long mostSignificant -The high long word.
- unsigned long leastSignificant -The low (unsigned) long word.
- unsigned long
- long
- unsigned int
- int
- Takes no parameters.
- long double
- double
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
~ TDoubleLong ()
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: TDoubleLong::operatorlongdouble
operator long double () const
Interface Category:
API.
Purpose:
Conversion from TDoubleLong to long double.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
Long double. Result of long double casting a TDoubleLong.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
Uses floating-point directly.
Member Function: TDoubleLong::TDoubleLongMax
static TDoubleLong TDoubleLongMax (void)
Interface Category:
API.
Purpose:
Returns the largest TDoubleLong value.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
- void -Takes no parameters.
Return Value:
Returns a TDoubleLong object containing the largest TDoubleLong value.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::TDoubleLongMin
static TDoubleLong TDoubleLongMin (void)
Interface Category:
API.
Purpose:
Returns the smallest (most negative) TDoubleLong value.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
- void -Takes no parameters.
Return Value:
Returns a TDoubleLong object containing the smallest TDoubleLong value.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::GetMostSignificant
long GetMostSignificant () const
Interface Category:
API.
Purpose:
Returns the high long word of a TDoubleLong object.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
Returns the high long word of a TDoubleLong object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::GetLeastSignificant
unsigned long GetLeastSignificant () const
Interface Category:
API.
Purpose:
Returns the low unsigned long word of a TDoubleLong object.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
Returns the low unsigned long word of a TDoubleLong object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::Hash
HashResult Hash () const
Interface Category:
API.
Purpose:
Hashes a TDoubleLong object to type HashResult.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
HashResult -Returns a hash value that is dependent on a TDoubleLong object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator>>=
- TStream & operator >>=(TStream &) const
- TDoubleLong & operator >>=(int)
Interface Category:
API.
Purpose:
- Stream-out operator.
- Right-shift assignment operator.
Calling Context:
- Called to stream out data. Designed to work in nondefault floating-point modes.
- Call this function directly.
Parameters:
- TStream & -The stream the object is streamed out to.
- int -The amount to shift by.
Return Value:
- Returns a reference to the stream the object streams itself out to.
- Returns a reference to the shifted object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator<<=
- TStream & operator <<= (TStream &)
- TDoubleLong & operator <<= (int)
Interface Category:
API.
Purpose:
- Stream-in operator.
- Left-shift assignment operator.
Calling Context:
- Called to stream in data. Designed to work in nondefault floating-point modes.
- Call this function directly.
Parameters:
- TStream & -The stream the object is streamed in from.
- int -The amount to shift by.
Return Value:
- Returns a reference to the stream the object streams itself in from.
- Returns a reference to the shifted object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator++
- TDoubleLong & operator ++ ()
- TDoubleLong & operator ++ (int)
Interface Category:
API.
Purpose:
- Prefix increment operator.
- Postfix increment operator.
Calling Context:
- Call this function directly.
- Call this function directly.
Parameters:
- Takes no parameters.
- int -Dummy parameter, to distinguish prefix from postfix.
Return Value:
TDoubleLong -Original value incremented by one.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator--
- TDoubleLong & operator --()
- TDoubleLong & operator --(int)
Interface Category:
API.
Purpose:
- Prefix decrement operator.
- Postfix decrement operator.
Calling Context:
- Call this function directly.
- Call this function directly.
Parameters:
- Takes no parameters.
- int -Dummy parameter, to distinguish prefix from postfix.
Return Value:
TDoubleLong -Original value decremented by one.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator+=
TDoubleLong & operator += (const TDoubleLong &)
Interface Category:
API.
Purpose:
Addition assignment operator.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
A reference to the modified object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator-=
TDoubleLong & operator -=(const TDoubleLong &)
Interface Category:
API.
Purpose:
Subtraction assignment operator.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
A reference to the modified object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator*=
TDoubleLong & operator *= (const TDoubleLong &)
Interface Category:
API.
Purpose:
Multiplication assignment operator.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
A reference to the modified object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator/=
TDoubleLong & operator /= (const TDoubleLong &)
Interface Category:
API.
Purpose:
Division assignment operator.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
A reference to the modified object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator%=
TDoubleLong & operator %= (const TDoubleLong &)
Interface Category:
API.
Purpose:
Remainder assignment operator.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
A reference to the modified object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator|=
TDoubleLong & operator |=(const TDoubleLong &)
Interface Category:
API.
Purpose:
Bitwise inclusive OR assignment operator.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
A reference to the modified object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator&=
TDoubleLong & operator &= (const TDoubleLong &)
Interface Category:
API.
Purpose:
Bitwise AND assignment operator.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
A reference to the modified object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TDoubleLong::operator^=
TDoubleLong & operator ^= (const TDoubleLong &)
Interface Category:
API.
Purpose:
Bitwise exclusive OR assignment operator.
Calling Context:
Designed to work in nondefault floating-point modes. Call this function directly.
Parameters:
Return Value:
A reference to the modified object.
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.