Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::TSdlAccessorVariant< Variant > Class Template Referencefinal

#include <SdlNativeData.h>

Public Types

using VariantType = Variant
 

Public Member Functions

 TSdlAccessorVariant ()
 
template<typename T >
 TSdlAccessorVariant (T value)
 
 TSdlAccessorVariant (VariantType variant)
 
template<typename T >
bool has () const
 
template<typename T >
T & get ()
 
template<typename T >
const T & get () const
 
template<typename T >
void set (T value)
 
std::size_t index () const
 
bool isEmpty () const
 
auto getVariant () -> VariantType &
 
auto getVariant () const -> const VariantType &
 

Member Typedef Documentation

◆ VariantType

template<typename Variant >
using ph::TSdlAccessorVariant< Variant >::VariantType = Variant

Constructor & Destructor Documentation

◆ TSdlAccessorVariant() [1/3]

template<typename Variant >
ph::TSdlAccessorVariant< Variant >::TSdlAccessorVariant ( )
inline

◆ TSdlAccessorVariant() [2/3]

template<typename Variant >
template<typename T >
ph::TSdlAccessorVariant< Variant >::TSdlAccessorVariant ( T value)
inline

◆ TSdlAccessorVariant() [3/3]

template<typename Variant >
ph::TSdlAccessorVariant< Variant >::TSdlAccessorVariant ( VariantType variant)
inline

Member Function Documentation

◆ get() [1/2]

template<typename Variant >
template<typename T >
T & ph::TSdlAccessorVariant< Variant >::get ( )
inline

◆ get() [2/2]

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

◆ getVariant() [1/2]

template<typename Variant >
auto ph::TSdlAccessorVariant< Variant >::getVariant ( ) -> VariantType&
inline

◆ getVariant() [2/2]

template<typename Variant >
auto ph::TSdlAccessorVariant< Variant >::getVariant ( ) const -> const VariantType&
inline

◆ has()

template<typename Variant >
template<typename T >
bool ph::TSdlAccessorVariant< Variant >::has ( ) const
inline

◆ index()

template<typename Variant >
std::size_t ph::TSdlAccessorVariant< Variant >::index ( ) const
inline

◆ isEmpty()

template<typename Variant >
bool ph::TSdlAccessorVariant< Variant >::isEmpty ( ) const
inline

◆ set()

template<typename Variant >
template<typename T >
void ph::TSdlAccessorVariant< Variant >::set ( T value)
inline

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