Nebula
Loading...
Searching...
No Matches
Materials::MaterialVariant Struct Reference

#include <materialvariant.h>

Public Member Functions

 MaterialVariant ()
 Nullptr constructor.
 
 MaterialVariant (const MaterialVariant &rhs)
 Copy constructor.
 
void operator= (const MaterialVariant &rhs)
 Assign operator.
 
 MaterialVariant (MaterialVariant &&rhs)
 Move constructor.
 
void operator= (MaterialVariant &&rhs)
 Move operator.
 
 MaterialVariant (std::nullptr_t)
 Nullptr constructor.
 
const void * Get () const
 Get pointer.
 
template<typename T >
const T & ConstGet () const
 Const get.
 
template<typename T >
T & Get ()
 Mutable get.
 
template<typename T >
void Set (const T &data, void *mem)
 Set.
 
template<typename T >
void Set (void *mem)
 Set from raw memory.
 

Public Attributes

bool needsDeref
 
void * mem
 
SizeT size
 

Constructor & Destructor Documentation

◆ MaterialVariant() [1/4]

Materials::MaterialVariant::MaterialVariant ( )
inline

Nullptr constructor.

◆ MaterialVariant() [2/4]

Materials::MaterialVariant::MaterialVariant ( const MaterialVariant & rhs)
inline

Copy constructor.

◆ MaterialVariant() [3/4]

Materials::MaterialVariant::MaterialVariant ( MaterialVariant && rhs)
inline

Move constructor.

◆ MaterialVariant() [4/4]

Materials::MaterialVariant::MaterialVariant ( std::nullptr_t )
inline

Nullptr constructor.

Member Function Documentation

◆ ConstGet()

template<typename T >
const T & Materials::MaterialVariant::ConstGet ( ) const
inline

Const get.

◆ Get() [1/2]

template<typename T >
T & Materials::MaterialVariant::Get ( )
inline

Mutable get.

◆ Get() [2/2]

const void * Materials::MaterialVariant::Get ( ) const
inline

Get pointer.

◆ operator=() [1/2]

void Materials::MaterialVariant::operator= ( const MaterialVariant & rhs)
inline

Assign operator.

◆ operator=() [2/2]

void Materials::MaterialVariant::operator= ( MaterialVariant && rhs)
inline

Move operator.

◆ Set() [1/2]

template<typename T >
void Materials::MaterialVariant::Set ( const T & data,
void * mem )
inline

Set.

◆ Set() [2/2]

template<typename T >
void Materials::MaterialVariant::Set ( void * mem)
inline

Set from raw memory.

Member Data Documentation

◆ mem

void* Materials::MaterialVariant::mem

◆ needsDeref

bool Materials::MaterialVariant::needsDeref

◆ size

SizeT Materials::MaterialVariant::size

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