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

HasWedgeColors concept is satisfied only if a Element class provides the types and member functions specified in this concept. These types and member functions allow to access to an vcl::comp::WedgeColors component of a given element. More...

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

Concept definition

template<typename T>
concept vcl::comp::HasWedgeColors = requires (
T&& obj,
typename RemoveRef<T>::WedgeColorType c,
std::vector<typename RemoveRef<T>::WedgeColorType> vec) {
RemoveRef<T>::WEDGE_COLOR_NUMBER;
typename RemoveRef<T>::WedgeColorType;
typename RemoveRef<T>::WedgeColorsIterator;
typename RemoveRef<T>::ConstWedgeColorsIterator;
{ obj.wedgeColor(uint()) } -> ColorConcept;
{ obj.wedgeColorMod(int()) } -> ColorConcept;
{ obj.wedgeColorBegin() } -> InputIterator<decltype(c)>;
{ obj.wedgeColorEnd() } -> InputIterator<decltype(c)>;
{ obj.wedgeColors() } -> InputRange<decltype(c)>;
requires IsConst<T> || requires {
{ obj.setWedgeColor(uint(), c) } -> std::same_as<void>;
{ obj.setWedgeColors(vec) } -> std::same_as<void>;
{ obj.wedgeColorBegin() } -> OutputIterator<decltype(c)>;
{ obj.wedgeColorEnd() } -> OutputIterator<decltype(c)>;
{ obj.wedgeColors() } -> OutputRange<decltype(c)>;
};
}
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
ColorConcept is satisfied only if a class provides the member functions specified in this concept....
Definition color.h:41
HasWedgeColors concept is satisfied only if a Element class provides the types and member functions s...
Definition wedge_colors.h:51

Detailed Description

HasWedgeColors concept is satisfied only if a Element class provides the types and member functions specified in this concept. These types and member functions allow to access to an vcl::comp::WedgeColors component of a given element.

Note that this concept does not discriminate between the Horizontal WedgeColors component and the vertical OptionalWedgeColors component, therefore it does not guarantee that a template Element type that satisfies this concept provides WedgeColors component at runtime (it is guaranteed only that the proper member functions are available at compile time).