Visual Computing Library
Loading...
Searching...
No Matches
vcl::mesh::CustomComponentsVectorMap< HasCustomComponent > Class Template Reference

The CustomComponentsVectorMap class stores a map of vectors of custom components. More...

#include <vclib/mesh/containers/custom_components_vector_map.h>

Detailed Description

template<bool HasCustomComponent>
class vcl::mesh::CustomComponentsVectorMap< HasCustomComponent >

The CustomComponentsVectorMap class stores a map of vectors of custom components.

Each vector of custom components has two main properties:

  • component name: an unique std::string that identifies the vector of components;
  • component type: the type of the component, that is a template parameter and must be know at compile time.

The class allows to access to the vectors of custom components trough their name and type.

For each custom component, the class stores a vector of std::any, that allows to store any type of data. The actual type of the data stored in the vectors is required to access to the vector data.

Note
This class is templated over a boolean value that enables the functionalities of the class. If a CustomComponentsVectorMap<false> is instantiated, no memory will be used by the instance of the class, and no member functions will be available. The class can be used only when a CustomComponentsVectorMap<true> is instantiated.
Template Parameters
HasCustomComponentA boolean value that enables the functionalities of the class.

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