Flutter Engine
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 24 of file vulkan_proc_table.h.

Member Typedef Documentation

◆ Proto

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

Definition at line 26 of file vulkan_proc_table.h.

Constructor & Destructor Documentation

◆ Proc()

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

Definition at line 28 of file vulkan_proc_table.h.

28 : proc_(proc) {}

◆ ~Proc()

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

Definition at line 30 of file vulkan_proc_table.h.

30 { proc_ = nullptr; }

Member Function Documentation

◆ operator bool()

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

Definition at line 42 of file vulkan_proc_table.h.

42 { return proc_ != nullptr; }

◆ operator T()

◆ operator=() [1/2]

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

Definition at line 32 of file vulkan_proc_table.h.

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

◆ operator=() [2/2]

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

Definition at line 37 of file vulkan_proc_table.h.

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

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