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

The HasComponentOfType concept checks whether a type T (that may be a Mesh or a MeshElement) has a 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>
ComponentOfTypePred<COMP_ID, typename RemoveRef<T>::Components>::value
The HasComponentOfType concept checks whether a type T (that may be a Mesh or a MeshElement) has a co...
Definition component.h:246

Detailed Description

The HasComponentOfType concept checks whether a type T (that may be a Mesh or a MeshElement) has a 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.

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