UInt64 Class Reference
A unsigned 64-bit value.
More...
#include <UInt64.h>
List of all members.
Detailed Description
A unsigned 64-bit value.
This class exists because there is no single primitive 64-bit type available in all of the C++ compilers that can effectively be serialized/deserialized across multiple platforms. This class does not provide a set() function and that is by design.
Definition at line 25 of file UInt64.h.
Constructor & Destructor Documentation
Construct a default unsigned 64-bit value.
The value returned from get() will be undefined. This constructor shouldn't normally be used, you should use the constructor that takes an initial value. This constructor is provided because in order to allow this type inside a DataVariant, a default constructor is required.
Definition at line 34 of file UInt64.h.
| UInt64::UInt64 |
( |
uint64_t |
value |
) |
[explicit] |
Construct a unsigned 64-bit object with the given value.
- Parameters:
-
| value | The unsigned 64-bit value that this object should wrap. |
Definition at line 42 of file UInt64.h.
Member Function Documentation
| BROKEN_INLINE_HINT UInt64& UInt64::operator= |
( |
const UInt64 & |
right |
) |
|
Assignment operator.
- Parameters:
-
| right | The right hand of the assignment. |
- Returns:
- A reference to *this, which has been changed to have a copy of the contents of right
Definition at line 52 of file UInt64.h.
| bool UInt64::operator== |
( |
const UInt64 & |
right |
) |
const |
Compares two UInt64 objects.
- Parameters:
-
| right | The object to compare with. |
- Returns:
- Returns true if both UInt64 objects wrap the same unsigned 64-bit integer value.
Definition at line 69 of file UInt64.h.
| uint64_t UInt64::get |
( |
|
) |
const |
Access the unsigned 64-bit integer value.
This class does not provide a set() function and that is by design. You must use the UInt64 constructor to set a value into this object.
- Returns:
- Returns the wrapped unsigned 64-bit integer value.
Definition at line 81 of file UInt64.h.
| UInt64::operator uint64_t |
( |
|
) |
const |
Access the unsigned 64-bit integer value.
- Returns:
- Returns the wrapped unsigned 64-bit integer value.
Definition at line 91 of file UInt64.h.