Flutter Impeller
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 77 of file proc_table.h.

Member Typedef Documentation

◆ AndroidProcType

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

Definition at line 78 of file proc_table.h.

Member Function Documentation

◆ IsAvailable()

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

◆ operator bool()

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

Definition at line 86 of file proc_table.h.

86 { return IsAvailable(); }
constexpr bool IsAvailable() const
Definition: proc_table.h:84

References impeller::android::AndroidProc< T >::IsAvailable().

◆ operator()()

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

Definition at line 89 of file proc_table.h.

89  {
90  FML_DCHECK(IsAvailable())
91  << "Android method " << proc_name
92  << " is not available on this device. Missing check.";
93  return proc(std::forward<Args>(args)...);
94  }

References impeller::android::AndroidProc< T >::IsAvailable(), impeller::android::AndroidProc< T >::proc, and impeller::android::AndroidProc< T >::proc_name.

◆ Reset()

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

Definition at line 96 of file proc_table.h.

96 { proc = nullptr; }

References impeller::android::AndroidProc< T >::proc.

Member Data Documentation

◆ proc

◆ proc_name

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

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