v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::wasm::Result< T > Class Template Reference

#include <wasm-result.h>

Collaboration diagram for v8::internal::wasm::Result< T >:

Public Member Functions

 Result ()=default
 
 Result (Result< T > &&)=default
 
Resultoperator= (Result< T > &&)=default
 
Resultoperator= (const Result< T > &)=delete
 
 Result (const Result &)=delete
 
template<typename U >
 Result (U &&value)
 
 Result (WasmError error)
 
template<typename U >
requires (std::is_assignable_v<U, T &&>)
 operator Result< U > () const &&
 
bool ok () const
 
bool failed () const
 
const WasmErrorerror () const &
 
WasmError && error () &&
 
const Tvalue () const &
 
T && value () &&
 

Private Attributes

T value_ = T{}
 
WasmError error_
 

Detailed Description

template<typename T>
class v8::internal::wasm::Result< T >

Definition at line 68 of file wasm-result.h.

Constructor & Destructor Documentation

◆ Result() [1/5]

template<typename T >
v8::internal::wasm::Result< T >::Result ( )
default

◆ Result() [2/5]

template<typename T >
v8::internal::wasm::Result< T >::Result ( Result< T > && )
default

◆ Result() [3/5]

template<typename T >
v8::internal::wasm::Result< T >::Result ( const Result< T > & )
delete

◆ Result() [4/5]

template<typename T >
template<typename U >
v8::internal::wasm::Result< T >::Result ( U && value)
inlineexplicit

Definition at line 85 of file wasm-result.h.

◆ Result() [5/5]

template<typename T >
v8::internal::wasm::Result< T >::Result ( WasmError error)
inlineexplicit

Definition at line 87 of file wasm-result.h.

Member Function Documentation

◆ error() [1/2]

template<typename T >
WasmError && v8::internal::wasm::Result< T >::error ( ) &&
inline

Definition at line 102 of file wasm-result.h.

◆ error() [2/2]

template<typename T >
const WasmError & v8::internal::wasm::Result< T >::error ( ) const &
inline

Definition at line 101 of file wasm-result.h.

Here is the caller graph for this function:

◆ failed()

template<typename T >
bool v8::internal::wasm::Result< T >::failed ( ) const
inline

Definition at line 100 of file wasm-result.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ok()

template<typename T >
bool v8::internal::wasm::Result< T >::ok ( ) const
inline

Definition at line 99 of file wasm-result.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator Result< U >()

template<typename T >
template<typename U >
requires (std::is_assignable_v<U, T &&>)
v8::internal::wasm::Result< T >::operator Result< U > ( ) const &&
inline

Definition at line 93 of file wasm-result.h.

Here is the call graph for this function:

◆ operator=() [1/2]

template<typename T >
Result & v8::internal::wasm::Result< T >::operator= ( const Result< T > & )
delete

◆ operator=() [2/2]

template<typename T >
Result & v8::internal::wasm::Result< T >::operator= ( Result< T > && )
default

◆ value() [1/2]

template<typename T >
T && v8::internal::wasm::Result< T >::value ( ) &&
inline

Definition at line 112 of file wasm-result.h.

Here is the call graph for this function:

◆ value() [2/2]

template<typename T >
const T & v8::internal::wasm::Result< T >::value ( ) const &
inline

Definition at line 108 of file wasm-result.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ error_

template<typename T >
WasmError v8::internal::wasm::Result< T >::error_
private

Definition at line 119 of file wasm-result.h.

◆ value_

template<typename T >
T v8::internal::wasm::Result< T >::value_ = T{}
private

Definition at line 118 of file wasm-result.h.


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