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

Union of all value types representable by a Token in the Bond compiler. More...

#include <bond/types/value.h>

Classes

struct  [struct].mString
 The value as a string, which is not null terminated. More...

Public Member Functions

 Value ()
 Constructs a Value object whose mInt member is 0.
 Value (bool value)
 Constructs a Value object holding a bool in mBool.
 Value (int32_t value)
 Constructs a Value object holding an int32_t in mInt.
 Value (uint32_t value)
 Constructs a Value object holding a uint32_t in mUInt.
 Value (int64_t value)
 Constructs a Value object holding an int64_t in mLong.
 Value (uint64_t value)
 Constructs a Value object holding a uint64_t in mULong.
 Value (float value)
 Constructs a Value object holding a float in mFloat.
 Value (double value)
 Constructs a Value object holding a double in mDouble.

Public Attributes

bool mBool
 The value as a bool.
int32_t mInt
 The value as a signed 32-bit integer.
uint32_t mUInt
 The value as an unsigned 32-bit integer.
int64_t mLong
 The value as a signed 64-bit integer.
uint64_t mULong
 The value as an unsigned 64-bit integer.
float mFloat
 The value as a float.
double mDouble
 The value as a double.
struct  mString

Detailed Description

Union of all value types representable by a Token in the Bond compiler.

Constructor & Destructor Documentation

◆ Value() [1/8]

Bond::Value::Value ( )
inline

Constructs a Value object whose mInt member is 0.

◆ Value() [2/8]

Bond::Value::Value ( bool value)
inlineexplicit

Constructs a Value object holding a bool in mBool.

◆ Value() [3/8]

Bond::Value::Value ( int32_t value)
inlineexplicit

Constructs a Value object holding an int32_t in mInt.

◆ Value() [4/8]

Bond::Value::Value ( uint32_t value)
inlineexplicit

Constructs a Value object holding a uint32_t in mUInt.

◆ Value() [5/8]

Bond::Value::Value ( int64_t value)
inlineexplicit

Constructs a Value object holding an int64_t in mLong.

◆ Value() [6/8]

Bond::Value::Value ( uint64_t value)
inlineexplicit

Constructs a Value object holding a uint64_t in mULong.

◆ Value() [7/8]

Bond::Value::Value ( float value)
inlineexplicit

Constructs a Value object holding a float in mFloat.

◆ Value() [8/8]

Bond::Value::Value ( double value)
inlineexplicit

Constructs a Value object holding a double in mDouble.

Member Data Documentation

◆ mBool

bool Bond::Value::mBool

The value as a bool.

◆ mDouble

double Bond::Value::mDouble

The value as a double.

◆ mFloat

float Bond::Value::mFloat

The value as a float.

◆ mInt

int32_t Bond::Value::mInt

The value as a signed 32-bit integer.

◆ mLong

int64_t Bond::Value::mLong

The value as a signed 64-bit integer.

◆ mString

struct Bond::Value::[struct].mString Bond::Value::mString

◆ mUInt

uint32_t Bond::Value::mUInt

The value as an unsigned 32-bit integer.

◆ mULong

uint64_t Bond::Value::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