Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
vulkan::VulkanProcTable::Proc< T > Class Template Reference

#include <vulkan_proc_table.h>

Public Types

using Proto = T
 

Public Member Functions

 Proc (T proc=nullptr)
 
 ~Proc ()
 
Proc operator= (T proc)
 
Proc operator= (PFN_vkVoidFunction proc)
 
 operator bool () const
 
 operator T () const
 

Detailed Description

template<class T>
class vulkan::VulkanProcTable::Proc< T >

Definition at line 23 of file vulkan_proc_table.h.

Member Typedef Documentation

◆ Proto

template<class T >
using vulkan::VulkanProcTable::Proc< T >::Proto = T

Definition at line 25 of file vulkan_proc_table.h.

Constructor & Destructor Documentation

◆ Proc()

template<class T >
vulkan::VulkanProcTable::Proc< T >::Proc ( T  proc = nullptr)
inlineexplicit

Definition at line 27 of file vulkan_proc_table.h.

27: proc_(proc) {}

◆ ~Proc()

template<class T >
vulkan::VulkanProcTable::Proc< T >::~Proc ( )
inline

Definition at line 29 of file vulkan_proc_table.h.

29{ proc_ = nullptr; }

Member Function Documentation

◆ operator bool()

template<class T >
vulkan::VulkanProcTable::Proc< T >::operator bool ( ) const
inlineexplicit

Definition at line 41 of file vulkan_proc_table.h.

41{ return proc_ != nullptr; }

◆ operator T()

template<class T >
vulkan::VulkanProcTable::Proc< T >::operator T ( ) const
inline

Definition at line 43 of file vulkan_proc_table.h.

43{ return proc_; } // NOLINT(google-explicit-constructor)

◆ operator=() [1/2]

template<class T >
Proc vulkan::VulkanProcTable::Proc< T >::operator= ( PFN_vkVoidFunction  proc)
inline

Definition at line 36 of file vulkan_proc_table.h.

36 {
37 proc_ = reinterpret_cast<Proto>(proc);
38 return *this;
39 }

◆ operator=() [2/2]

template<class T >
Proc vulkan::VulkanProcTable::Proc< T >::operator= ( T  proc)
inline

Definition at line 31 of file vulkan_proc_table.h.

31 {
32 proc_ = proc;
33 return *this;
34 }

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