ViennaLS
|
A class for mapping layer indices to material IDs. More...
#include <lsMaterialMap.hpp>
Public Member Functions | |
MaterialMap ()=default | |
MaterialMap (const MaterialMap &)=default | |
MaterialMap & | operator= (const MaterialMap &)=default |
MaterialMap & | operator= (MaterialMap &&)=default |
void | insertNextMaterial (const int passedMaterialId) |
void | setMaterialId (const std::size_t index, const int materialId) |
std::size_t | getNumberOfLayers () const |
std::size_t | getNumberOfMaterials () const |
int | getMaterialId (const std::size_t index) const |
bool | isValidIndex (const std::size_t index) const |
void | clear () |
void | reserve (const std::size_t size) |
bool | hasMaterial (const int materialId) const |
const std::set< int > & | getMaterials () const |
const std::vector< int > & | getMaterialMap () const |
A class for mapping layer indices to material IDs.
This class maintains a mapping between layer indices and material IDs, keeping track of both the sequential material assignment and the unique materials used in the mapping.
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |