Visual Computing Library
Loading...
Searching...
No Matches
vcl::comp::HasVerticalComponentOfType Concept Reference

The HasVerticalComponentOfType concept checks whether a type T (that should be a MeshElement) has a vertical component having its vcl::CompId equal to COMP_ID. More...

#include <vclib/concepts/mesh/components/component.h>

Concept definition

template<typename T, uint COMP_ID>
ComponentOfType<COMP_ID, typename RemoveRef<T>::Components>>
The HasComponentOfType concept checks whether a type T (that may be a Mesh or a MeshElement) has a co...
Definition component.h:246
The HasVerticalComponentOfType concept checks whether a type T (that should be a MeshElement) has a v...
Definition component.h:266
Evaluates to true if the type T is a component that is stored vertically in its element container.
Definition component.h:57

Detailed Description

The HasVerticalComponentOfType concept checks whether a type T (that should be a MeshElement) has a vertical component having its vcl::CompId equal to COMP_ID.

The concept looks for the component having COMP_ID in the inner type Components type defined in the type T, that must be a vcl::TypeWrapper of components. If the component exists, it checks if it is vertical.

Template Parameters
TThe type to be evaluated.
COMP_IDThe id of the component to be checked.