Int64 Class Reference

A signed 64-bit value. More...

#include <Int64.h>

List of all members.

Public Member Functions

 Int64 ()
 Int64 (int64_t value)
BROKEN_INLINE_HINT Int64operator= (const Int64 &right)
bool operator== (const Int64 &right) const
int64_t get () const
 operator int64_t () const


Detailed Description

A signed 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 Int64.h.


Constructor & Destructor Documentation

Int64::Int64 (  ) 

Construct a default signed 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 Int64.h.

Int64::Int64 ( int64_t  value  )  [explicit]

Construct a signed 64-bit object with the given value.

Parameters:
value The signed 64-bit value that this object should wrap.

Definition at line 42 of file Int64.h.


Member Function Documentation

BROKEN_INLINE_HINT Int64& Int64::operator= ( const Int64 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 Int64.h.

bool Int64::operator== ( const Int64 right  )  const

Compares two Int64 objects.

Parameters:
right The object to compare with.
Returns:
Returns true if both Int64 objects wrap the same signed 64-bit integer value.

Definition at line 69 of file Int64.h.

int64_t Int64::get (  )  const

Access the signed 64-bit integer value.

This class does not provide a set() function and that is by design. You must use the Int64 constructor to set a value into this object.

Returns:
Returns the wrapped signed 64-bit integer value.

Definition at line 81 of file Int64.h.

Int64::operator int64_t (  )  const

Access the signed 64-bit integer value.

Returns:
Returns the wrapped signed 64-bit integer value.

Definition at line 91 of file Int64.h.


Software Development Kit - Opticks 4.9.0 Build 16218