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

Union of all 32 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

 Value32 ()
 Constructs a Value32 object whose value is 0.
 Value32 (int32_t value)
 Constructs a Value32 object holding an int32_t.
 Value32 (uint32_t value)
 Constructs a Value32 object holding a uint32_t.
 Value32 (float value)
 Constructs a Value32 object holding a float.
 Value32 (const uint8_t value[])
 Constructs a Value32 object from the first 4 bytes of the given array, in memory order.

Public Attributes

int32_t mInt
 The value as a signed 32-bit integer.
uint32_t mUInt
 The value as an unsigned 32-bit integer.
float mFloat
 The value as a float.
uint8_t mBytes [4]
 The bytes of the value in memory order.

Detailed Description

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

Constructor & Destructor Documentation

◆ Value32() [1/5]

Bond::Value32::Value32 ( )
inline

Constructs a Value32 object whose value is 0.

◆ Value32() [2/5]

Bond::Value32::Value32 ( int32_t value)
inlineexplicit

Constructs a Value32 object holding an int32_t.

◆ Value32() [3/5]

Bond::Value32::Value32 ( uint32_t value)
inlineexplicit

Constructs a Value32 object holding a uint32_t.

◆ Value32() [4/5]

Bond::Value32::Value32 ( float value)
inlineexplicit

Constructs a Value32 object holding a float.

◆ Value32() [5/5]

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

Constructs a Value32 object from the first 4 bytes of the given array, in memory order.

Member Data Documentation

◆ mBytes

uint8_t Bond::Value32::mBytes[4]

The bytes of the value in memory order.

◆ mFloat

float Bond::Value32::mFloat

The value as a float.

◆ mInt

int32_t Bond::Value32::mInt

The value as a signed 32-bit integer.

◆ mUInt

uint32_t Bond::Value32::mUInt

The value as an unsigned 32-bit integer.


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