Visual Computing Library  devel
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/mesh/containers/base/base.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 box in N-dimensional space.
Definition box.h:46
The Vertex Container class, will be used when the template argument given to the Mesh is a Vertex.
Definition vertex_container.h:52
The ContainerOfElement structure exposes the type of the container of the given MeshType having eleme...
Definition base.h:107

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