RetroArch
Public Member Functions | Private Attributes | List of all members
spirv_cross::Variant Class Reference

#include <spirv_common.hpp>

Public Member Functions

 Variant ()=default
 
 Variant (Variant &&other)
 
Variantoperator= (Variant &&other)
 
void set (std::unique_ptr< IVariant > val, uint32_t new_type)
 
template<typename T >
Tget ()
 
template<typename T >
const Tget () const
 
uint32_t get_type () const
 
uint32_t get_id () const
 
bool empty () const
 
void reset ()
 
void set_allow_type_rewrite ()
 

Private Attributes

std::unique_ptr< IVariantholder
 
uint32_t type = TypeNone
 
bool allow_type_rewrite = false
 

Constructor & Destructor Documentation

◆ Variant() [1/2]

spirv_cross::Variant::Variant ( )
default

◆ Variant() [2/2]

spirv_cross::Variant::Variant ( Variant &&  other)
inline

Member Function Documentation

◆ empty()

bool spirv_cross::Variant::empty ( ) const
inline

◆ get() [1/2]

template<typename T >
T& spirv_cross::Variant::get ( )
inline
Here is the caller graph for this function:

◆ get() [2/2]

template<typename T >
const T& spirv_cross::Variant::get ( ) const
inline

◆ get_id()

uint32_t spirv_cross::Variant::get_id ( ) const
inline

◆ get_type()

uint32_t spirv_cross::Variant::get_type ( ) const
inline

◆ operator=()

Variant& spirv_cross::Variant::operator= ( Variant &&  other)
inline

◆ reset()

void spirv_cross::Variant::reset ( )
inline

◆ set()

void spirv_cross::Variant::set ( std::unique_ptr< IVariant val,
uint32_t  new_type 
)
inline
Here is the caller graph for this function:

◆ set_allow_type_rewrite()

void spirv_cross::Variant::set_allow_type_rewrite ( )
inline

Member Data Documentation

◆ allow_type_rewrite

bool spirv_cross::Variant::allow_type_rewrite = false
private

◆ holder

std::unique_ptr<IVariant> spirv_cross::Variant::holder
private

◆ type

uint32_t spirv_cross::Variant::type = TypeNone
private

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