The wrapper for the primitive type long. More...
#include <Long.h>

Public Member Functions | |
| Long (int64 value) | |
| virtual int64 | longValue () |
| Returns the value of this Long as a long value. More... | |
| virtual int32 | hashCode () |
| Returns a hash code for this Long. More... | |
| virtual bool | equals (const GCommonObj &o) |
| Compares this object to the specified object. More... | |
Public Member Functions inherited from Glympse::Common< ILong > | |
| virtual int32 | retain () |
| Add a reference to our object in a COM-like way. | |
| virtual int32 | release () |
| Release a reference to our object in a COM-like way. | |
| virtual int32 | hold () |
| Add a reference to our object in a COM-like way. | |
| virtual int32 | unhold () |
| Release a reference to our object in a COM-like way. | |
| virtual GString | toString () |
| Returns a string containing a concise, human-readable description of this object. | |
| virtual void | attachObject (const GCommon &obj) |
| Asociates arbitrary object with the instance. | |
| virtual GCommon | extractObject () |
| Extracts associated object or NULL if no association is established. | |
Static Public Member Functions | |
| static GLong | valueOf (int64 value) |
Static Public Member Functions inherited from Glympse::Common< ILong > | |
| static int32 | hashCode (int64 value) |
| Calculates hash code (32-bit value) of 64-bit value. | |
Static Public Attributes | |
| static const int64 | MAX_VALUE |
Additional Inherited Members | |
Protected Member Functions inherited from Glympse::Common< ILong > | |
| Common () | |
| Our constructor. More... | |
| virtual | ~Common () |
| Our destructor is here simply to create an entry in the vtable to ensure derived classes destruct correctly. | |
Protected Attributes inherited from Glympse::CommonStorage | |
| int32 | _ref |
| Our private ref count. | |
| int32 | _holders |
| A number of external referrers associated with the attached object. | |
| GCommon | _attachedObject |
| Arbitrary object attached externally. | |
The wrapper for the primitive type long.
This class also serves the purpose of being an example of extending and implementing the ICommon interface.
|
inlinevirtual |
Compares this object to the specified object.
The result is true if and only if the argument is not null and is a Long object that contains the same long value as this object.
Reimplemented from Glympse::Common< ILong >.
|
inlinevirtual |
Returns a hash code for this Long.
The result is the exclusive OR of the two halves of the primitive long value held by this Long object. That is, the hashcode is the value of the expression: (int)(this.longValue()^(this.longValue()>>>32))
Reimplemented from Glympse::Common< ILong >.
|
inlinevirtual |
Returns the value of this Long as a long value.
Implements Glympse::ILong.
1.8.4