Base Framework
|
An unsigned long integer. More...
#include <base/UnsignedLongInteger.h>
Inherits Object.
Public Types | |
enum | { FLAG_ALLOW_SPACES = 1 << 0 } |
enum | BaseOptions { BIN = 1, DEC = 2, OCT = 4, HEX = 8, PREFIX = 16, ANY =BIN|DEC|OCT|HEX|PREFIX, FLAG_DEFAULT = FLAG_ALLOW_SPACES | ANY } |
Public Member Functions | |
UnsignedLongInteger () noexcept | |
UnsignedLongInteger (unsigned long long value) noexcept | |
UnsignedLongInteger (const UnsignedLongInteger ©) noexcept | |
UnsignedLongInteger & | operator= (const UnsignedLongInteger &assign) noexcept |
UnsignedLongInteger & | operator= (unsigned long long value) noexcept |
unsigned long long | getValue () const noexcept |
void | setValue (unsigned long long value) noexcept |
operator unsigned long long () const noexcept | |
Static Public Member Functions | |
static unsigned long long | parse (const char *src, const char *end, unsigned int flags=FLAG_DEFAULT) |
static unsigned long long | parse (const String &string, unsigned int flags=FLAG_DEFAULT) |
Static Public Attributes | |
static const bool | SIGNED = false |
static const unsigned long long | MINIMUM = PrimitiveTraits<unsigned long long>::MINIMUM |
static const unsigned long long | MAXIMUM = PrimitiveTraits<unsigned long long>::MAXIMUM |
Protected Attributes | |
unsigned long long | value = 0 |
An unsigned long integer.
Unsigned long integer (64 bits or more). This class maps onto the unsigned long long primitive. There is no wrapper class available for the long primitive.
|
inlinenoexcept |
Initializes the integer as zero.
|
inlinenoexcept |
Initializes the integer with the specified value. Implicit initialization allowed.
value | The desired value. |
|
inlinenoexcept |
|
inlinenoexcept |
Gets the value of the integer.
|
inlinenoexcept |
Casts integer to native type.
|
inlinenoexcept |
Assignment of integer to this integer.
|
inlinenoexcept |
Assignment of native type to this integer.
|
static |
Returns the value of the integer string representation.
src | The string representation. |
end | The string representation. |
accept | Specifies the integer bases to accept. Default is FLAG_DEFAULT. |
|
inlinestatic |
Returns the value of the integer string representation.
string | The string. |
accept | Specifies the integer bases to accept. Default is FLAG_DEFAULT. |
|
inlinenoexcept |
Sets the value of the integer.
value | The desired value. |
|
static |
Specifies the maximum value.
|
static |
Specifies the minimum value.
|
static |
True if the integer type is signed.
|
protected |
The value.