Mapping from material requirements to representing derived types. More...
#include <kanzi/core.ui/graphics3d/material_variation_mapping.hpp>
Public Types | |
| using | container_type |
| Internal data type. | |
Public Member Functions | |
| optional< ResourceID > | getUrl (MaterialRequirements requirements) const |
| Gets a URL associated with requirements. | |
| optional< ResourceID > | getUrl (size_t index) const |
| Gets a URL associated with index. | |
| MaterialVariationMapping ()=default | |
| Default constructor. | |
| MaterialVariationMapping (const MaterialVariationMapping &)=default | |
| Default copy constructor. | |
| MaterialVariationMapping (MaterialVariationMapping &&)=default | |
| Default move constructor. | |
| MaterialVariationMapping (string_view parsedString) | |
| Constructor. | |
| MaterialVariationMapping & | operator= (const MaterialVariationMapping &)=default |
| Default copy operator. | |
| MaterialVariationMapping & | operator= (MaterialVariationMapping &&)=default |
| Default copy operator. | |
| size_t | size () const |
| Gets the number of mappings. | |
Protected Member Functions | |
| void | parseData (string_view parsedString) |
| Parse the internal data contents. | |
| void | parseEntry (string_view parsedString) |
| Parse an individual entry and add it to the mapping. | |
Protected Attributes | |
| container_type | m_mapping |
| Actual data for the requirements. | |
Mapping from material requirements to representing derived types.
Internal data type.
|
explicitdefault |
Default constructor.
|
inlineexplicit |
Constructor.
| parsedString | String to parse for contents. |
|
explicitdefault |
Default copy constructor.
|
explicitdefault |
Default move constructor.
|
default |
Default copy operator.
|
default |
Default copy operator.
|
protected |
Parse the internal data contents.
| parsedString | String to parse for contents. |
|
protected |
Parse an individual entry and add it to the mapping.
| parsedString | Definition string to parse. |
|
inline |
Gets the number of mappings.
|
inline |
Gets a URL associated with requirements.
| requirements | Requirements to match. |
|
inline |
Gets a URL associated with index.
This function exists for testing convenience. The order within requirements mapping is poorly defined.
| index | Index from beginning of the mapping. |
|
protected |
Actual data for the requirements.
Stored as a bitset to make searching as fast as possible.