QuISP
Loading...
Searching...
No Matches
quisp::runtime::MemoryValue Class Reference

memory value More...

#include <Value.h>

Collaboration diagram for quisp::runtime::MemoryValue:

Public Member Functions

 MemoryValue (int val)
 
 MemoryValue (MeasurementOutcome val)
 
int intValue () const
 return integer value if the type check passed.
 
MeasurementOutcome outcome () const
 returns measurement outcome if the type check passed.
 

Public Attributes

ValueType type
 

Private Attributes

ValueUnion val
 

Detailed Description

memory value

Constructor & Destructor Documentation

◆ MemoryValue() [1/2]

quisp::runtime::MemoryValue::MemoryValue ( int val)
inline

◆ MemoryValue() [2/2]

quisp::runtime::MemoryValue::MemoryValue ( MeasurementOutcome val)
inline

Member Function Documentation

◆ intValue()

int quisp::runtime::MemoryValue::intValue ( ) const
inline

return integer value if the type check passed.

◆ outcome()

MeasurementOutcome quisp::runtime::MemoryValue::outcome ( ) const
inline

returns measurement outcome if the type check passed.

Member Data Documentation

◆ type

ValueType quisp::runtime::MemoryValue::type

◆ val

ValueUnion quisp::runtime::MemoryValue::val
private

The documentation for this class was generated from the following file: