Visual Computing Library
Loading...
Searching...
No Matches
vcl::mesh::ContainerOfElement< ELEM_ID, MeshType > Struct Template Reference

The ContainerOfElement structure exposes the type of the container of the given MeshType having element with the given ELEM_ID. More...

#include <vclib/types/mesh_containers.h>

Public Types

using type = FirstTypeT< typename detail::ContainerOfElementPred< ELEM_ID, typename RemoveRef< MeshType >::Containers >::type >
 

Detailed Description

template<uint ELEM_ID, typename MeshType>
struct vcl::mesh::ContainerOfElement< ELEM_ID, MeshType >

The ContainerOfElement structure exposes the type of the container of the given MeshType having element with the given ELEM_ID.

If no container was found, the usage of this structure will cause a build error.

Template Parameters
ELEM_IDThe ID of the Element
MeshTypeThe MeshType of the Mesh from which we need the type of the Container of Element having the given ElementEnumType

Usage:

using VertexContainer = typename mesh::ContainerOfElement<ElemId::VERTEX,
MyMesh>::type;
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
The Vertex Container class, will be used when the template argument given to the Mesh is a Vertex.
Definition vertex_container.h:51
The ContainerOfElement structure exposes the type of the container of the given MeshType having eleme...
Definition mesh_containers.h:107

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