DGtal
1.5.beta
|
Specialization of NumberTraitsImpl for DGtal::BigInteger. More...
#include <DGtal/kernel/NumberTraits.h>
Public Types | |
typedef TagTrue | IsIntegral |
A BigInteger is of integral type. More... | |
typedef TagFalse | IsBounded |
A BigInteger is not bounded. More... | |
typedef TagTrue | IsUnsigned |
A BigInteger can be signed and unsigned. More... | |
typedef TagTrue | IsSigned |
a BigInteger can be signed and unsigned. More... | |
typedef TagTrue | IsSpecialized |
Is that a number type with specific traits. More... | |
typedef DGtal::BigInteger | SignedVersion |
Alias to the signed version of a BigInteger (aka a BigInteger). More... | |
typedef DGtal::BigInteger | UnsignedVersion |
Alias to the unsigned version of a BigInteger (aka a BigInteger). More... | |
typedef DGtal::BigInteger | ReturnType |
Alias to the type that should be used as return type. More... | |
typedef boost::call_traits< BigInteger >::param_type | ParamType |
Defines a type that represents the "best" way to pass a parameter of type T to a function. More... | |
Static Public Member Functions | |
static ReturnType | zero () noexcept |
Return the zero of this integer. More... | |
static ReturnType | one () noexcept |
Return the one of this integer. More... | |
static ReturnType | min () noexcept |
Return the minimum possible value (trigger an error since BitInteger is unbounded). More... | |
static ReturnType | max () noexcept |
Return the maximum possible value (trigger an error since BitInteger is unbounded). More... | |
static unsigned int | digits () noexcept |
Return the number of significant binary digits (trigger an error since BitInteger is unbounded). More... | |
static BoundEnum | isBounded () noexcept |
Return the bounding type of the number. More... | |
static SignEnum | isSigned () noexcept |
Return the sign type of the number. More... | |
static DGtal::int64_t | castToInt64_t (const DGtal::BigInteger &aT) noexcept |
Cast method to DGtal::int64_t (for I/O or board export uses only). More... | |
static DGtal::uint64_t | castToUInt64_t (const DGtal::BigInteger &aT) noexcept |
Cast method to DGtal::uint64_t (for I/O or board export uses only). More... | |
static double | castToDouble (const DGtal::BigInteger &aT) noexcept |
Cast method to double (for I/O or board export uses only). More... | |
static bool | even (ParamType aT) noexcept |
Check the parity of a number. More... | |
static bool | odd (ParamType aT) noexcept |
Check the parity of a number. More... | |
Static Public Attributes | |
static const DGtal::BigInteger | ZERO = 0 |
Constant Zero. More... | |
static const DGtal::BigInteger | ONE = 1 |
Constant One. More... | |
Specialization of NumberTraitsImpl for DGtal::BigInteger.
Note that DGtal::BigInteger represents signed and unsigned arbitrary-size integers. Therefore both IsUnsigned and IsSigned are TagTrue.
Definition at line 407 of file NumberTraits.h.
typedef TagFalse DGtal::NumberTraitsImpl< DGtal::BigInteger, Enable >::IsBounded |
A BigInteger is not bounded.
Definition at line 410 of file NumberTraits.h.
typedef TagTrue DGtal::NumberTraitsImpl< DGtal::BigInteger, Enable >::IsIntegral |
A BigInteger is of integral type.
Definition at line 409 of file NumberTraits.h.
typedef TagTrue DGtal::NumberTraitsImpl< DGtal::BigInteger, Enable >::IsSigned |
a BigInteger can be signed and unsigned.
Definition at line 412 of file NumberTraits.h.
typedef TagTrue DGtal::NumberTraitsImpl< DGtal::BigInteger, Enable >::IsSpecialized |
Is that a number type with specific traits.
Definition at line 413 of file NumberTraits.h.
typedef TagTrue DGtal::NumberTraitsImpl< DGtal::BigInteger, Enable >::IsUnsigned |
A BigInteger can be signed and unsigned.
Definition at line 411 of file NumberTraits.h.
typedef boost::call_traits<BigInteger>::param_type DGtal::NumberTraitsImpl< DGtal::BigInteger, Enable >::ParamType |
Defines a type that represents the "best" way to pass a parameter of type T to a function.
Definition at line 422 of file NumberTraits.h.
typedef DGtal::BigInteger DGtal::NumberTraitsImpl< DGtal::BigInteger, Enable >::ReturnType |
Alias to the type that should be used as return type.
Definition at line 417 of file NumberTraits.h.
typedef DGtal::BigInteger DGtal::NumberTraitsImpl< DGtal::BigInteger, Enable >::SignedVersion |
Alias to the signed version of a BigInteger (aka a BigInteger).
Definition at line 415 of file NumberTraits.h.
typedef DGtal::BigInteger DGtal::NumberTraitsImpl< DGtal::BigInteger, Enable >::UnsignedVersion |
Alias to the unsigned version of a BigInteger (aka a BigInteger).
Definition at line 416 of file NumberTraits.h.
|
inlinestaticnoexcept |
Cast method to double (for I/O or board export uses only).
Definition at line 514 of file NumberTraits.h.
|
inlinestaticnoexcept |
Cast method to DGtal::int64_t (for I/O or board export uses only).
Definition at line 493 of file NumberTraits.h.
|
inlinestaticnoexcept |
Cast method to DGtal::uint64_t (for I/O or board export uses only).
Definition at line 503 of file NumberTraits.h.
|
inlinestaticnoexcept |
Return the number of significant binary digits (trigger an error since BitInteger is unbounded).
Definition at line 462 of file NumberTraits.h.
|
inlinestaticnoexcept |
Check the parity of a number.
aT | any number. |
Definition at line 525 of file NumberTraits.h.
|
inlinestaticnoexcept |
Return the bounding type of the number.
Definition at line 473 of file NumberTraits.h.
References DGtal::UNBOUNDED.
|
inlinestaticnoexcept |
Return the sign type of the number.
Definition at line 483 of file NumberTraits.h.
References DGtal::SIGNED.
|
inlinestaticnoexcept |
Return the maximum possible value (trigger an error since BitInteger is unbounded).
Definition at line 454 of file NumberTraits.h.
References DGtal::NumberTraitsImpl< T, Enable >::ZERO.
|
inlinestaticnoexcept |
Return the minimum possible value (trigger an error since BitInteger is unbounded).
Definition at line 446 of file NumberTraits.h.
References DGtal::NumberTraitsImpl< T, Enable >::ZERO.
|
inlinestaticnoexcept |
Check the parity of a number.
aT | any number. |
Definition at line 536 of file NumberTraits.h.
|
inlinestaticnoexcept |
Return the one of this integer.
Definition at line 439 of file NumberTraits.h.
References DGtal::NumberTraitsImpl< T, Enable >::ONE.
|
inlinestaticnoexcept |
Return the zero of this integer.
Definition at line 432 of file NumberTraits.h.
References DGtal::NumberTraitsImpl< T, Enable >::ZERO.
|
static |
Constant One.
Definition at line 428 of file NumberTraits.h.
|
static |
Constant Zero.
Definition at line 425 of file NumberTraits.h.