Base Framework
|
A signed long integer. More...
#include <base/LongInteger.h>
Inherits Object.
Public Types | |
enum | { FLAG_ALLOW_SPACES = 1 << 0, FLAG_ALLOW_SIGN = 1 << 1, FLAG_DEFAULT = FLAG_ALLOW_SPACES | FLAG_ALLOW_SIGN } |
Public Member Functions | |
LongInteger () noexcept | |
LongInteger (long long value) noexcept | |
LongInteger (const LongInteger ©) noexcept | |
LongInteger & | operator= (const LongInteger &assign) noexcept |
long long | getValue () const noexcept |
void | setValue (long long value) noexcept |
operator long long () const noexcept | |
Static Public Member Functions | |
static long long | parse (const char *src, const char *end, unsigned int flags=FLAG_DEFAULT) |
static long long | parse (const String &string, unsigned int flags=FLAG_DEFAULT) |
Static Public Attributes | |
static const bool | SIGNED = true |
static const long long | MAXIMUM = PrimitiveTraits<long long>::MAXIMUM |
static const long long | MINIMUM = PrimitiveTraits<long long>::MINIMUM |
Protected Attributes | |
long long | value = 0 |
A signed long integer.
Signed and long integer (64 bits or more).
|
inlinenoexcept |
Initializes the long integer as zero.
|
inlinenoexcept |
Initializes the long integer with the specified value. Implicit initialization allowed.
value | The desired value. |
|
inlinenoexcept |
Initializes integer by copying from other integer.
|
inlinenoexcept |
Gets the value of the integer.
|
inlinenoexcept |
Casts integer to native type.
|
inlinenoexcept |
Assignment of integer to this integer.
|
static |
Returns the value of the integer string representation.
string | The string representation. |
flags | The parsing flags. |
|
inlinestatic |
Returns the value of the integer string representation.
string | The string representation. |
flags | The parsing flags. |
|
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.