23#ifndef VCL_MESH_COMPONENTS_BASES_INDEX_CONTAINER_COMPONENT_H
24#define VCL_MESH_COMPONENTS_BASES_INDEX_CONTAINER_COMPONENT_H
26#include "container_component.h"
28#include <vclib/mesh/iterators/components/pointer_from_index_iterator.h>
29#include <vclib/space/core/vector.h>
75 typename DerivedComponent,
79 typename ParentElemType,
111 if constexpr (!Base::IS_VERTICAL) {
118 if constexpr (N >= 0) {
138 using Base::container;
140 using ConstIndexIterator =
typename Base::ConstIterator;
143 using ConstIterator =
160 void updateReferences(
const Elem*, std::size_t offset = 0)
181 void updateReferences(
const std::vector<uint>& newIndices)
183 auto& baseContainer = Base::container();
185 for (uint j = 0; j < baseContainer.size(); ++j) {
187 baseContainer.at(j) = newIndices.at(baseContainer.at(j));
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
The ContainerComponent class is the base class for all the components of VCLib that store a container...
Definition container_component.h:130
The IndexContainerComponent is the base class for all the components of VCLib that store a container ...
Definition index_container_component.h:95
const auto & indices() const
Exposes the indices of the container.
Definition index_container_component.h:132
constexpr uint UINT_NULL
The UINT_NULL value represent a null value of uint that is the maximum value that can be represented ...
Definition base.h:48