Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Public Attributes | List of all members
impeller::android::AndroidProc< T > Struct Template Reference

#include <proc_table.h>

Public Types

using AndroidProcType = T
 

Public Member Functions

constexpr bool IsAvailable () const
 
constexpr operator bool () const
 
template<class... Args>
auto operator() (Args &&... args) const
 
void Reset ()
 

Public Attributes

const char * proc_name = nullptr
 
AndroidProcTypeproc = nullptr
 

Detailed Description

template<class T>
struct impeller::android::AndroidProc< T >

Definition at line 69 of file proc_table.h.

Member Typedef Documentation

◆ AndroidProcType

template<class T >
using impeller::android::AndroidProc< T >::AndroidProcType = T

Definition at line 70 of file proc_table.h.

Member Function Documentation

◆ IsAvailable()

template<class T >
constexpr bool impeller::android::AndroidProc< T >::IsAvailable ( ) const
inlineconstexpr

Definition at line 76 of file proc_table.h.

76{ return proc != nullptr; }
AndroidProcType * proc
Definition: proc_table.h:74

◆ operator bool()

template<class T >
constexpr impeller::android::AndroidProc< T >::operator bool ( ) const
inlineexplicitconstexpr

Definition at line 78 of file proc_table.h.

78{ return IsAvailable(); }
constexpr bool IsAvailable() const
Definition: proc_table.h:76

◆ operator()()

template<class T >
template<class... Args>
auto impeller::android::AndroidProc< T >::operator() ( Args &&...  args) const
inline

Definition at line 81 of file proc_table.h.

81 {
83 << "Android method " << proc_name
84 << " is not available on this device. Missing check.";
85 return proc(std::forward<Args>(args)...);
86 }
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
#define FML_DCHECK(condition)
Definition: logging.h:103

◆ Reset()

template<class T >
void impeller::android::AndroidProc< T >::Reset ( )
inline

Definition at line 88 of file proc_table.h.

88{ proc = nullptr; }

Member Data Documentation

◆ proc

template<class T >
AndroidProcType* impeller::android::AndroidProc< T >::proc = nullptr

Definition at line 74 of file proc_table.h.

◆ proc_name

template<class T >
const char* impeller::android::AndroidProc< T >::proc_name = nullptr

Definition at line 72 of file proc_table.h.


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