F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Svc::WasmSequencer_TrapReason Class Reference

#include <Svc/WasmSequencer/WasmSequencer_TrapReasonEnumAc.hpp>

Inheritance diagram for Svc::WasmSequencer_TrapReason:
Fw::Serializable

Public Types

enum  T {
  NONE = -1, UNREACHABLE = 0, HOST = 1, DIVIDE_BY_ZERO = 2,
  INVALID_TABLE_INDEX = 3, INVALID_TABLE_FUNCTION_TYPE = 4, UNINITIALIZED_TABLE_ELEMENT = 5, GLOBAL_GET_FAILED = 6,
  GLOBAL_SET_FAILED = 7, OUT_OF_MEMORY = 8, MEMORY_REF_NOT_UNIQUE = 9, MEMORY_OUT_OF_BOUNDS = 10,
  STACK_OVERFLOW = 11, UNREPRESENTABLE_RESULT = 12, INTEGER_OVERFLOW = 13, BAD_CONVERSION_TO_INTEGER = 14,
  MALFORMED_IR = 15
}
 The raw enum type. More...
 
enum  { SERIALIZED_SIZE = sizeof(SerialType), NUM_CONSTANTS = 17 }
 
using SerialType = I32
 The serial representation type. More...
 
using t = enum T
 For backwards compatibility. More...
 
- Public Types inherited from Fw::Serializable
using SizeType = FwSizeType
 

Public Member Functions

 WasmSequencer_TrapReason ()
 Constructor (default value of NONE) More...
 
 WasmSequencer_TrapReason (const enum T e1)
 Constructor (user-provided value) More...
 
 WasmSequencer_TrapReason (const SerialType e1)
 Constructor (serial representation value) More...
 
 WasmSequencer_TrapReason (const WasmSequencer_TrapReason &obj)
 Copy constructor. More...
 
WasmSequencer_TrapReasonoperator= (const WasmSequencer_TrapReason &obj)
 Copy assignment operator (object) More...
 
WasmSequencer_TrapReasonoperator= (SerialType e1)
 Assignment operator (serial representation value) More...
 
WasmSequencer_TrapReasonoperator= (enum T e1)
 Copy assignment operator (raw enum) More...
 
 operator enum T () const
 Conversion operator. More...
 
bool operator== (enum T e1) const
 Equality operator. More...
 
bool operator!= (enum T e1) const
 Inequality operator. More...
 
bool isValid () const
 Check raw enum value for validity. More...
 
Fw::SerializeStatus serializeTo (Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
 Serialize raw enum value to SerialType. More...
 
Fw::SerializeStatus deserializeFrom (Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
 Deserialize raw enum value from SerialType. More...
 
- Public Member Functions inherited from Fw::Serializable
 DEPRECATED (SerializeStatus serialize(SerialBufferBase &buffer) const, "Use serializeTo(SerialBufferBase& buffer) instead")
 
 DEPRECATED (SerializeStatus deserialize(SerialBufferBase &buffer), "Use deserializeFrom(SerialBufferBase& buffer) instead")
 

Static Public Member Functions

static bool isValid (SerialType serialTypeValue)
 Check serial type value for validity. More...
 

Public Attributes

enum T e
 The raw enum value. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Fw::Serializable
 Serializable ()
 Default constructor. More...
 
virtual ~Serializable ()
 Virtual destructor. More...
 

Detailed Description

Definition at line 17 of file WasmSequencer_TrapReasonEnumAc.hpp.

Member Typedef Documentation

◆ SerialType

The serial representation type.

Definition at line 28 of file WasmSequencer_TrapReasonEnumAc.hpp.

◆ t

For backwards compatibility.

Definition at line 69 of file WasmSequencer_TrapReasonEnumAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SERIALIZED_SIZE 

The size of the serial representation.

NUM_CONSTANTS 

The number of enumerated constants.

Definition at line 77 of file WasmSequencer_TrapReasonEnumAc.hpp.

◆ T

The raw enum type.

Enumerator
NONE 

No recorded trap.

UNREACHABLE 

Triggered by unreachable instruction.

HOST 

A host function has noted an unrecoverable failure.

DIVIDE_BY_ZERO 

Integer or floating point division by zero.

INVALID_TABLE_INDEX 

An indirect call tried to map to a table function out of range.

INVALID_TABLE_FUNCTION_TYPE 

The function type in an indirect call does not match the function pointer's type.

UNINITIALIZED_TABLE_ELEMENT 

An indirect call referenced an uninitialized table element.

GLOBAL_GET_FAILED 

An imported global could not be read.

GLOBAL_SET_FAILED 

An imported global could not be set.

OUT_OF_MEMORY 

The interpreter ran out of memory.

MEMORY_REF_NOT_UNIQUE 

memory.grow failed because a host function has taken ownership of a memory

MEMORY_OUT_OF_BOUNDS 

A memory operation is out of bounds.

STACK_OVERFLOW 

Ran out of stack space.

UNREPRESENTABLE_RESULT 

Attempting to convert Inf to integer.

INTEGER_OVERFLOW 

Signed division causes integer overflow.

BAD_CONVERSION_TO_INTEGER 

Attempting to convert NaN to integer.

MALFORMED_IR 

The IR decoder reached an opcode or immediate it cannot interpret.

Definition at line 31 of file WasmSequencer_TrapReasonEnumAc.hpp.

Constructor & Destructor Documentation

◆ WasmSequencer_TrapReason() [1/4]

Svc::WasmSequencer_TrapReason::WasmSequencer_TrapReason ( )
inline

Constructor (default value of NONE)

Definition at line 91 of file WasmSequencer_TrapReasonEnumAc.hpp.

◆ WasmSequencer_TrapReason() [2/4]

Svc::WasmSequencer_TrapReason::WasmSequencer_TrapReason ( const enum T  e1)
inline

Constructor (user-provided value)

Parameters
e1The raw enum value

Definition at line 97 of file WasmSequencer_TrapReasonEnumAc.hpp.

◆ WasmSequencer_TrapReason() [3/4]

Svc::WasmSequencer_TrapReason::WasmSequencer_TrapReason ( const SerialType  e1)
inline

Constructor (serial representation value)

Parameters
e1The serial representation value

Definition at line 106 of file WasmSequencer_TrapReasonEnumAc.hpp.

◆ WasmSequencer_TrapReason() [4/4]

Svc::WasmSequencer_TrapReason::WasmSequencer_TrapReason ( const WasmSequencer_TrapReason obj)
inline

Copy constructor.

Parameters
objThe source object

Definition at line 115 of file WasmSequencer_TrapReasonEnumAc.hpp.

Member Function Documentation

◆ deserializeFrom()

Fw::SerializeStatus Svc::WasmSequencer_TrapReason::deserializeFrom ( Fw::SerialBufferBase buffer,
Fw::Endianness  mode = Fw::Endianness::BIG 
)
virtual

Deserialize raw enum value from SerialType.

Parameters
bufferThe serial buffer
modeEndianness of serialized buffer

Implements Fw::Serializable.

Definition at line 93 of file WasmSequencer_TrapReasonEnumAc.cpp.

◆ isValid() [1/2]

bool Svc::WasmSequencer_TrapReason::isValid ( ) const

Check raw enum value for validity.

Definition at line 69 of file WasmSequencer_TrapReasonEnumAc.cpp.

◆ isValid() [2/2]

bool Svc::WasmSequencer_TrapReason::isValid ( SerialType  serialTypeValue)
static

Check serial type value for validity.

Parameters
serialTypeValueThe serial type value

Definition at line 192 of file WasmSequencer_TrapReasonEnumAc.cpp.

◆ operator enum T()

Svc::WasmSequencer_TrapReason::operator enum T ( ) const
inline

Conversion operator.

Definition at line 148 of file WasmSequencer_TrapReasonEnumAc.hpp.

◆ operator!=()

bool Svc::WasmSequencer_TrapReason::operator!= ( enum T  e1) const
inline

Inequality operator.

Definition at line 160 of file WasmSequencer_TrapReasonEnumAc.hpp.

◆ operator=() [1/3]

WasmSequencer_TrapReason & Svc::WasmSequencer_TrapReason::operator= ( const WasmSequencer_TrapReason obj)

Copy assignment operator (object)

Parameters
objThe source object

Definition at line 19 of file WasmSequencer_TrapReasonEnumAc.cpp.

◆ operator=() [2/3]

WasmSequencer_TrapReason & Svc::WasmSequencer_TrapReason::operator= ( SerialType  e1)

Assignment operator (serial representation value)

Parameters
e1The serial representation value

Definition at line 30 of file WasmSequencer_TrapReasonEnumAc.cpp.

◆ operator=() [3/3]

WasmSequencer_TrapReason & Svc::WasmSequencer_TrapReason::operator= ( enum T  e1)

Copy assignment operator (raw enum)

Parameters
e1The enum value

Definition at line 42 of file WasmSequencer_TrapReasonEnumAc.cpp.

◆ operator==()

bool Svc::WasmSequencer_TrapReason::operator== ( enum T  e1) const
inline

Equality operator.

Definition at line 154 of file WasmSequencer_TrapReasonEnumAc.hpp.

◆ serializeTo()

Fw::SerializeStatus Svc::WasmSequencer_TrapReason::serializeTo ( Fw::SerialBufferBase buffer,
Fw::Endianness  mode = Fw::Endianness::BIG 
) const
virtual

Serialize raw enum value to SerialType.

Parameters
bufferThe serial buffer
modeEndianness of serialized buffer

Implements Fw::Serializable.

Definition at line 75 of file WasmSequencer_TrapReasonEnumAc.cpp.

Member Data Documentation

◆ e

enum T Svc::WasmSequencer_TrapReason::e

The raw enum value.

Definition at line 232 of file WasmSequencer_TrapReasonEnumAc.hpp.


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