Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::Value64 Union Reference

Union of all 64 bit value types used within the Bond compiler, the CBO file format, and the Bond Virtual Machine. More...

#include <bond/types/value.h>

Public Member Functions

 Value64 ()
 Constructs a Value64 object whose value is 0.
 Value64 (int64_t value)
 Constructs a Value64 object holding an int64_t.
 Value64 (uint64_t value)
 Constructs a Value64 object holding a uint64_t.
 Value64 (double value)
 Constructs a Value64 object holding a double.
 Value64 (const uint8_t value[])
 Constructs a Value64 object from the first 8 bytes of the given array, in memory order.

Public Attributes

int64_t mLong
 The value as a signed 64-bit integer.
uint64_t mULong
 The value as an unsigned 64-bit integer.
double mDouble
 The value as a double.
uint8_t mBytes [8]
 The bytes of the value in memory order.

Detailed Description

Union of all 64 bit value types used within the Bond compiler, the CBO file format, and the Bond Virtual Machine.

Constructor & Destructor Documentation

◆ Value64() [1/5]

Bond::Value64::Value64 ( )
inline

Constructs a Value64 object whose value is 0.

◆ Value64() [2/5]

Bond::Value64::Value64 ( int64_t value)
inlineexplicit

Constructs a Value64 object holding an int64_t.

◆ Value64() [3/5]

Bond::Value64::Value64 ( uint64_t value)
inlineexplicit

Constructs a Value64 object holding a uint64_t.

◆ Value64() [4/5]

Bond::Value64::Value64 ( double value)
inlineexplicit

Constructs a Value64 object holding a double.

◆ Value64() [5/5]

Bond::Value64::Value64 ( const uint8_t value[])
inlineexplicit

Constructs a Value64 object from the first 8 bytes of the given array, in memory order.

Member Data Documentation

◆ mBytes

uint8_t Bond::Value64::mBytes[8]

The bytes of the value in memory order.

◆ mDouble

double Bond::Value64::mDouble

The value as a double.

◆ mLong

int64_t Bond::Value64::mLong

The value as a signed 64-bit integer.

◆ mULong

uint64_t Bond::Value64::mULong

The value as an unsigned 64-bit integer.


The documentation for this union was generated from the following file:
  • include/bond/types/value.h