SDL  2.0
VULKAN_HPP_NAMESPACE::Optional< RefType > Class Template Reference

#include <vulkan.hpp>

+ Inheritance diagram for VULKAN_HPP_NAMESPACE::Optional< RefType >:

Public Member Functions

 Optional (RefType &reference) VULKAN_HPP_NOEXCEPT
 
 Optional (RefType *ptr) VULKAN_HPP_NOEXCEPT
 
 Optional (std::nullptr_t) VULKAN_HPP_NOEXCEPT
 
 operator RefType * () const VULKAN_HPP_NOEXCEPT
 
RefType const * operator-> () const VULKAN_HPP_NOEXCEPT
 
 operator bool () const VULKAN_HPP_NOEXCEPT
 

Private Attributes

RefType * m_ptr
 

Detailed Description

template<typename RefType>
class VULKAN_HPP_NAMESPACE::Optional< RefType >

Definition at line 854 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ Optional() [1/3]

template<typename RefType >
VULKAN_HPP_NAMESPACE::Optional< RefType >::Optional ( RefType &  reference)
inline

Definition at line 857 of file vulkan.hpp.

857 { m_ptr = &reference; }
GLint reference

References VULKAN_HPP_NAMESPACE::Optional< RefType >::m_ptr.

◆ Optional() [2/3]

template<typename RefType >
VULKAN_HPP_NAMESPACE::Optional< RefType >::Optional ( RefType *  ptr)
inline

Definition at line 858 of file vulkan.hpp.

858 { m_ptr = ptr; }
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF ptr

References VULKAN_HPP_NAMESPACE::Optional< RefType >::m_ptr, and ptr.

◆ Optional() [3/3]

template<typename RefType >
VULKAN_HPP_NAMESPACE::Optional< RefType >::Optional ( std::nullptr_t  )
inline

Definition at line 859 of file vulkan.hpp.

859 { m_ptr = nullptr; }

References VULKAN_HPP_NAMESPACE::Optional< RefType >::m_ptr.

Member Function Documentation

◆ operator bool()

template<typename RefType >
VULKAN_HPP_NAMESPACE::Optional< RefType >::operator bool ( ) const
inlineexplicit

Definition at line 863 of file vulkan.hpp.

863 { return !!m_ptr; }

References VULKAN_HPP_NAMESPACE::Optional< RefType >::m_ptr.

◆ operator RefType *()

template<typename RefType >
VULKAN_HPP_NAMESPACE::Optional< RefType >::operator RefType * ( ) const
inline

Definition at line 861 of file vulkan.hpp.

861 { return m_ptr; }

◆ operator->()

template<typename RefType >
RefType const* VULKAN_HPP_NAMESPACE::Optional< RefType >::operator-> ( ) const
inline

Definition at line 862 of file vulkan.hpp.

862 { return m_ptr; }

References VULKAN_HPP_NAMESPACE::Optional< RefType >::m_ptr.

Field Documentation

◆ m_ptr


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