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

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

#include <WGEShaderPropertyDefineOptions.h>

Public Types

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

Public Member Functions

IdxList operator() (const WPVBaseTypes::PV_SELECTION &in) const
 Converts the specified property value to an index list. More...
 

Detailed Description

Class converts the specified property value to an index list.

The generic case for all int-castable property types is trivial. This is the specialization for WPropSelection which allows multiple options to be active if the selection has multiple selected items.

Template Parameters
PropTypeThe property. WPropInt for example.

Definition at line 187 of file WGEShaderPropertyDefineOptions.h.

Member Typedef Documentation

◆ IdxList

The type of the index-list to create.

Definition at line 193 of file WGEShaderPropertyDefineOptions.h.

Member Function Documentation

◆ operator()()

IdxList WGEShaderPropertyDefineOptionsIndexAdapter< WPropSelection >::operator() ( const WPVBaseTypes::PV_SELECTION 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 202 of file WGEShaderPropertyDefineOptions.h.

References WItemSelector::getIndexList().

+ Here is the call graph for this function:

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