OpenWalnut  1.5.0dev
Public Types | Public Member Functions | List of all members
WGEShaderPropertyDefineOptionsIndexAdapter< PropType > Class Template Reference

Class converts the specified property value to an index list. More...

#include <WGEShaderPropertyDefineOptions.h>

Public Types

typedef WGEShaderPropertyDefineOptions< PropType >::IdxList IdxList
 The type of the index-list to create. More...
 

Public Member Functions

IdxList operator() (const typename PropType::element_type::ValueType &in) const
 Converts the specified property value to an index list. More...
 

Detailed Description

template<typename PropType>
class WGEShaderPropertyDefineOptionsIndexAdapter< PropType >

Class converts the specified property value to an index list.

The generic case for all int-castable property types is trivial. WPropSelection is a specialization of this class.

Template Parameters
PropTypeThe property. WPropInt for example.

Definition at line 159 of file WGEShaderPropertyDefineOptions.h.

Member Typedef Documentation

◆ IdxList

template<typename PropType >
typedef WGEShaderPropertyDefineOptions< PropType >::IdxList WGEShaderPropertyDefineOptionsIndexAdapter< PropType >::IdxList

The type of the index-list to create.

Definition at line 165 of file WGEShaderPropertyDefineOptions.h.

Member Function Documentation

◆ operator()()

template<typename PropType >
IdxList WGEShaderPropertyDefineOptionsIndexAdapter< PropType >::operator() ( const typename PropType::element_type::ValueType &  in) const
inline

Converts the specified property value to an index list.

Parameters
inthe value to convert to an index list
Returns
the new index list

Definition at line 174 of file WGEShaderPropertyDefineOptions.h.


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