Tizen WASM Player
Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
samsung::wasm::Result< T > Struct Template Reference

#include <common.h>

Public Member Functions

 operator bool () const noexcept
 Checks if the operation ended with success. More...
 
T & operator* ()
 Returns Result<T>::value. Defined if T is not void. More...
 
const T & operator* () const
 Returns Result<T>::value. Defined if T is not void. More...
 
T * operator-> ()
 Accesses Result<T>::value. Defined if T is not void. More...
 
const T * operator-> () const
 Accesses Result<T>::value. Defined if T is not void. More...
 

Public Attributes

value
 
OperationResult operation_result
 Operation result. More...
 

Detailed Description

template<class T>
struct samsung::wasm::Result< T >

Helper type which carries both an error code and return value of an operation.

Definition at line 19 of file common.h.

Member Function Documentation

◆ operator bool()

template<class T >
samsung::wasm::Result< T >::operator bool ( ) const
inlineexplicitnoexcept

Checks if the operation ended with success.

Definition at line 56 of file common.h.

◆ operator*() [1/2]

template<class T >
T & samsung::wasm::Result< T >::operator* ( )

Returns Result<T>::value. Defined if T is not void.

Definition at line 65 of file common.h.

◆ operator*() [2/2]

template<class T >
const T & samsung::wasm::Result< T >::operator* ( ) const

Returns Result<T>::value. Defined if T is not void.

Definition at line 70 of file common.h.

◆ operator->() [1/2]

template<class T >
T * samsung::wasm::Result< T >::operator-> ( )

Accesses Result<T>::value. Defined if T is not void.

Definition at line 75 of file common.h.

◆ operator->() [2/2]

template<class T >
const T * samsung::wasm::Result< T >::operator-> ( ) const

Accesses Result<T>::value. Defined if T is not void.

Definition at line 80 of file common.h.

Member Data Documentation

◆ operation_result

template<class T>
OperationResult samsung::wasm::Result< T >::operation_result

Operation result.

Definition at line 25 of file common.h.

◆ value

template<class T>
T samsung::wasm::Result< T >::value

A value returned by an operation, valid only if operation_result is equal to OperationResult::kSuccess. Defined if T is not void.

Definition at line 22 of file common.h.


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