Wasmtime
wasmtime::HeapType Class Reference

Representation of a heap type in WebAssembly. More...

#include <val.hh>

Public Member Functions

 HeapType (const HeapType &other)
 Copy constructor.
 
HeapTypeoperator= (const HeapType &other)
 Copy assignment operator.
 
 HeapType (HeapType &&other)
 Move constructor.
 
HeapTypeoperator= (HeapType &&other)
 Move assignment operator.
 
 HeapType (const FuncType &ty)
 Constructor for a concrete function heap type.
 
 HeapType (const ArrayType &ty)
 Constructor for a concrete array heap type.
 
 HeapType (const StructType &ty)
 Constructor for a concrete struct heap type.
 
 HeapType (const ExnType &ty)
 Constructor for a concrete exception heap type.
 
bool is_concrete () const
 Is this a concrete heap type?
 
bool is_extern () const
 Is this the abstract extern heap type?
 
bool is_noextern () const
 Is this the abstract noextern heap type?
 
bool is_func () const
 Is this the abstract func heap type?
 
std::optional< FuncType::Refas_concrete_func () const
 If this is a concrete function type, returns the underlying function type.
 
bool is_nofunc () const
 Is this the abstract nofunc heap type?
 
bool is_any () const
 Is this the abstract any heap type?
 
bool is_none () const
 Is this the abstract none heap type?
 
bool is_eq () const
 Is this the abstract eq heap type?
 
bool is_i31 () const
 Is this the abstract i31 heap type?
 
bool is_array () const
 Is this the abstract array heap type?
 
const ArrayTypeas_concrete_array () const
 If this is a concrete array type, returns the underlying array type.
 
bool is_struct () const
 Is this the abstract struct heap type?
 
const StructTypeas_concrete_struct () const
 If this is a concrete struct type, returns the underlying struct type.
 
bool is_exn () const
 Is this the abstract exn heap type?
 
const ExnTypeas_concrete_exn () const
 If this is a concrete exception type, returns the underlying exception type.
 
bool is_noexn () const
 Is this the abstract noexn heap type?
 
const wasmtime_heaptype_tcapi () const
 Returns the underlying C API heap type.
 

Static Public Member Functions

static HeapType extern_ ()
 Constructor for the extern heap type.
 
static HeapType noextern ()
 Constructor for the noextern heap type.
 
static HeapType func ()
 Constructor for the func heap type.
 
static HeapType nofunc ()
 Constructor for the nofunc heap type.
 
static HeapType any ()
 Constructor for the any heap type.
 
static HeapType none ()
 Constructor for the none heap type.
 
static HeapType eq ()
 Constructor for the eq heap type.
 
static HeapType i31 ()
 Constructor for the i31 heap type.
 
static HeapType array ()
 Constructor for the array heap type.
 
static HeapType struct_ ()
 Constructor for the struct heap type.
 
static HeapType exn ()
 Constructor for the exn heap type.
 
static HeapType noexn ()
 Constructor for the noexn heap type.
 

Detailed Description

Representation of a heap type in WebAssembly.


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