Visual Computing Library
Loading...
Searching...
No Matches
vcl::ElementString< ELEM_ID > Struct Template Reference

The ElementString class is used to retrieve the string associated to a ELEM_ID value, trough its member 'str'. More...

#include <vclib/types/mesh_elements.h>

Public Attributes

const charstr
 The string associated to the ELEM_ID.
 

Detailed Description

template<uint ELEM_ID>
struct vcl::ElementString< ELEM_ID >

The ElementString class is used to retrieve the string associated to a ELEM_ID value, trough its member 'str'.

If you use a custom element class, you should specialize this struct with your ELEM_ID value (that is >= ELEMENTS_NUMBER).

Template Parameters
ELEM_IDThe ELEM_ID value associated to the string.

Member Data Documentation

◆ str

template<uint ELEM_ID>
const char* vcl::ElementString< ELEM_ID >::str
Initial value:
= ELEM_ID < ElemId::ELEMENTS_NUMBER ?
nullptr
constexpr const char * ELEMENT_ENUM_STRINGS[ElemId::ELEMENTS_NUMBER]
The ELEMENT_ENUM_STRINGS array contains the string representation of the elements that can compose a ...
Definition mesh_elements.h:69

The string associated to the ELEM_ID.


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