Base Framework
Public Member Functions | Public Attributes | List of all members
WebAssembly::FunctionType Class Reference

#include <base/webassembly/WebAssembly.h>

Public Member Functions

 FunctionType ()
 
template<typename RESULT , typename... ARGS>
 FunctionType (RESULT(*)(ARGS... args))
 
template<class TYPE , typename RESULT , typename... ARGS>
 FunctionType (RESULT(TYPE::*)(ARGS... args))
 
bool operator== (const FunctionType &type) const noexcept
 
bool operator!= (const FunctionType &type) const noexcept
 

Public Attributes

Array< Typearguments
 
Array< Typeresults
 

Detailed Description

Function type.

Constructor & Destructor Documentation

◆ FunctionType() [1/3]

WebAssembly::FunctionType::FunctionType ( )

Initializes void function() type.

◆ FunctionType() [2/3]

template<typename RESULT , typename... ARGS>
WebAssembly::FunctionType::FunctionType ( RESULT(*)(ARGS... args)  )
inline

Get function type from given function pointer.

◆ FunctionType() [3/3]

template<class TYPE , typename RESULT , typename... ARGS>
WebAssembly::FunctionType::FunctionType ( RESULT(TYPE::*)(ARGS... args)  )
inline

Get function type from given function pointer.

Member Function Documentation

◆ operator!=()

bool WebAssembly::FunctionType::operator!= ( const FunctionType type) const
inlinenoexcept

Returns true if not equal.

◆ operator==()

bool WebAssembly::FunctionType::operator== ( const FunctionType type) const
noexcept

Returns true if equal.

Member Data Documentation

◆ arguments

Array<Type> WebAssembly::FunctionType::arguments

The arguments types.

◆ results

Array<Type> WebAssembly::FunctionType::results

The result types.