Visual Computing Library
Loading...
Searching...
No Matches
vcl::ComponentString< COMP_ID > Struct Template Reference

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

#include <vclib/types/mesh_components.h>

Public Attributes

const charstr
 The string associated to the COMPONENT_ID.
 

Detailed Description

template<uint COMP_ID>
struct vcl::ComponentString< COMP_ID >

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

If you use a custom component class, you should specialize this struct with your COMP_ID value (that is >= COMPONENTS_NUMBER).

Template Parameters
COMP_IDThe COMP_ID value associated to the string.

Member Data Documentation

◆ str

template<uint COMP_ID>
const char* vcl::ComponentString< COMP_ID >::str
Initial value:
= COMP_ID < CompId::COMPONENTS_NUMBER ?
nullptr
constexpr const char * COMPONENT_ENUM_STRINGS[CompId::COMPONENTS_NUMBER]
The COMPONENT_ENUM_STRINGS array contains the string representation of the CompId::Enum values.
Definition mesh_components.h:84

The string associated to the COMPONENT_ID.


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