Version: 3.1.4
wxULongLong Class Reference

#include <wx/longlong.h>

Detailed Description

This class represents an unsigned 64 bit long number.

See wxLongLong for more details.

Library:  wxBase
Category:  Data Structures

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...
 
wxULongLongoperator+ (const wxULongLong &ll)
 Add another wxULongLong to this one. More...
 
wxULongLong operator- (const wxULongLong &ll) const
 Subtracts 2 wxLongLongs and returns the result. More...
 
wxULongLongoperator- (const wxULongLong &ll)
 Subtracts another wxULongLong from this one. More...
 
wxULongLongoperator= (const wxLongLong &ll)
 Assignment operator from signed long long. More...
 
wxULongLongoperator= (wxLongLong_t ll)
 Assignment operator from native long long (only for compilers supporting it). More...
 
wxULongLongoperator= (wxULongLong_t ll)
 Assignment operator from native unsigned long long (only for compilers supporting it). More...
 
wxULongLongoperator= (long l)
 Assignment operator from long. More...
 
wxULongLongoperator= (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...
 

Constructor & Destructor Documentation

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).

wxULongLong::wxULongLong ( wxUint32  hi,
wxUint32  lo 
)

Constructor from 2 longs: the high and low part are combined into one wxULongLong.

Member Function Documentation

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) const

Adds 2 wxLongLongs together and returns the result.

wxULongLong& wxULongLong::operator+ ( const wxULongLong ll)

Add another wxULongLong to this one.

wxULongLong wxULongLong::operator++ ( )

Pre/post increment operator.

wxULongLong wxULongLong::operator++ ( int  )

Pre/post increment operator.

wxULongLong wxULongLong::operator- ( const wxULongLong ll) const

Subtracts 2 wxLongLongs and returns the result.

wxULongLong& wxULongLong::operator- ( const wxULongLong ll)

Subtracts another wxULongLong from this one.

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.

Since
2.7.0
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).

Since
2.7.0
wxULongLong& wxULongLong::operator= ( long  l)

Assignment operator from long.

Since
2.7.0
wxULongLong& wxULongLong::operator= ( unsigned long  l)

Assignment operator from unsigned long.

Since
2.7.0
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.