These are the actual (decimal floating‐point) types being implemented. They use a different name to cause an error if the official types are forward declared: The exact definition of the decimal types is left unspecified so that that can potentially be aliases for built‐in types.

Synopsis

Declared in <bdldfp_decimal.h>

class Decimal_Type32;

Member Functions

Name

Description

Decimal_Type32 [constructor]

Constructors

bdexStreamIn

Assign to this object the value read from the specified input stream using the specified version format, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported, this object is unaltered and stream is invalidated, but otherwise unmodified. If version is supported but stream becomes invalid during this operation, this object has an undefined, but valid, state. Note that no version is read from stream. See the bslx package‐level documentation for more information on BDEX streaming of value‐semantic types and containers.

bdexStreamOut

Write the value of this object, using the specified version format, to the specified output stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported, stream is invalidated, but otherwise unmodified. Note that version is not written to stream. See the bslx package‐level documentation for more information on BDEX streaming of value‐semantic types and containers.

data

data overloads

operator*=

Multiplication assignment operators

operator++

Add 1.0 to the value of this object and return a reference to it. Note that this is a floating‐point value so this operation may not change the value of this object at all (if the value is large) or it may just set it to 1.0 (if the original value is small).

operator+=

Addition assignment operators

operator‐‐

Add ‐1.0 to the value of this object and return a reference to it. Note that this is a floating‐point value so this operation may not change the value of this object at all (if the value is large) or it may just set it to ‐1.0 (if the original value is small).

operator‐=

Subtraction assignment operators

operator/=

Division assignment operators

value

Return the value of the underlying implementation.

operator BloombergLP::bslmf::NestedTraitDeclaration<Decimal_Type32, is_trivially_copyable>

Declare the specified nested trait for this decimal type.

Static Member Functions

Name

Description

maxSupportedBdexVersion

maxSupportedBdexVersion overloads

Created with MrDocs