#include <wx/longlong.h>
This is a legacy class wrapping an unsigned 64-bit integer.
See wxLongLong for more details.
Public Member Functions | |
wxULongLong () | |
Default constructor initializes the object to 0. More... | |
wxULongLong (wxLongLong_t ll) | |
Constructor from native unsigned long long (only for compilers supporting it). More... | |
wxULongLong (wxUint32 hi, wxUint32 lo) | |
Constructor from 2 longs: the high and low part are combined into one wxULongLong. More... | |
wxUint32 | GetHi () const |
Returns the high 32 bits of 64 bit integer. More... | |
wxUint32 long | GetLo () const |
Returns the low 32 bits of 64 bit integer. More... | |
wxULongLong_t | GetValue () const |
Convert to native long long (only for compilers supporting it). More... | |
double | ToDouble () const |
Returns the value as double . More... | |
unsigned long | ToULong () const |
Truncate wxULongLong to long. More... | |
wxString | ToString () const |
Returns the string representation of a wxULongLong. More... | |
wxULongLong | operator+ (const wxULongLong &ll) const |
Adds 2 wxLongLongs together and returns the result. More... | |
wxULongLong & | operator+ (const wxULongLong &ll) |
Add another wxULongLong to this one. More... | |
wxULongLong | operator- (const wxULongLong &ll) const |
Subtracts 2 wxLongLongs and returns the result. More... | |
wxULongLong & | operator- (const wxULongLong &ll) |
Subtracts another wxULongLong from this one. More... | |
wxULongLong & | operator= (const wxLongLong &ll) |
Assignment operator from signed long long. More... | |
wxULongLong & | operator= (wxLongLong_t ll) |
Assignment operator from native long long (only for compilers supporting it). More... | |
wxULongLong & | operator= (wxULongLong_t ll) |
Assignment operator from native unsigned long long (only for compilers supporting it). More... | |
wxULongLong & | operator= (long l) |
Assignment operator from long. More... | |
wxULongLong & | operator= (unsigned long l) |
Assignment operator from unsigned long. More... | |
wxULongLong | operator++ () |
Pre/post increment operator. More... | |
wxULongLong | operator++ (int) |
Pre/post increment operator. More... | |
wxULongLong | operator-- () |
Pre/post decrement operator. More... | |
wxULongLong | operator-- (int) |
Pre/post decrement operator. More... | |
wxULongLong::wxULongLong | ( | ) |
Default constructor initializes the object to 0.
wxULongLong::wxULongLong | ( | wxLongLong_t | ll | ) |
Constructor from native unsigned long long (only for compilers supporting it).
Constructor from 2 longs: the high and low part are combined into one wxULongLong.
wxUint32 wxULongLong::GetHi | ( | ) | const |
Returns the high 32 bits of 64 bit integer.
wxUint32 long wxULongLong::GetLo | ( | ) | const |
Returns the low 32 bits of 64 bit integer.
wxULongLong_t wxULongLong::GetValue | ( | ) | const |
Convert to native long long (only for compilers supporting it).
wxULongLong& wxULongLong::operator+ | ( | const wxULongLong & | ll | ) |
Add another wxULongLong to this one.
wxULongLong wxULongLong::operator+ | ( | const wxULongLong & | ll | ) | const |
Adds 2 wxLongLongs together and returns the result.
wxULongLong wxULongLong::operator++ | ( | ) |
Pre/post increment operator.
wxULongLong wxULongLong::operator++ | ( | int | ) |
Pre/post increment operator.
wxULongLong& wxULongLong::operator- | ( | const wxULongLong & | ll | ) |
Subtracts another wxULongLong from this one.
wxULongLong wxULongLong::operator- | ( | const wxULongLong & | ll | ) | const |
Subtracts 2 wxLongLongs and returns the result.
wxULongLong wxULongLong::operator-- | ( | ) |
Pre/post decrement operator.
wxULongLong wxULongLong::operator-- | ( | int | ) |
Pre/post decrement operator.
wxULongLong& wxULongLong::operator= | ( | const wxLongLong & | ll | ) |
Assignment operator from signed long long.
The sign bit will be copied too.
wxULongLong& wxULongLong::operator= | ( | long | l | ) |
Assignment operator from long.
wxULongLong& wxULongLong::operator= | ( | unsigned long | l | ) |
Assignment operator from unsigned long.
wxULongLong& wxULongLong::operator= | ( | wxLongLong_t | ll | ) |
Assignment operator from native long long (only for compilers supporting it).
wxULongLong& wxULongLong::operator= | ( | wxULongLong_t | ll | ) |
Assignment operator from native unsigned long long (only for compilers supporting it).
double wxULongLong::ToDouble | ( | ) | const |
Returns the value as double
.
wxString wxULongLong::ToString | ( | ) | const |
Returns the string representation of a wxULongLong.
unsigned long wxULongLong::ToULong | ( | ) | const |
Truncate wxULongLong to long.
If the conversion loses data (i.e. the wxULongLong value is outside the range of built-in long type), an assert will be triggered in debug mode.