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

HasBitFlags concept is satisfied only if a Element class provides the member functions specified in this concept. These member functions allows to access to a vcl::comp::BitFlags component of a given element. More...

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

Concept definition

template<typename T>
concept vcl::comp::HasBitFlags = requires (T&& obj) {
{ obj.deleted() } -> std::same_as<bool>;
{ obj.selected() } -> std::convertible_to<bool>;
{ obj.onBorder() } -> std::convertible_to<bool>;
{ obj.selected() } -> std::convertible_to<bool>;
{ obj.userBit(uint()) } -> std::convertible_to<bool>;
{ obj.exportFlagsToVCGFormat() } -> std::same_as<int>;
requires IsConst<T> || requires {
{ obj.selected() } -> BitProxyConcept;
{ obj.onBorder() } -> BitProxyConcept;
{ obj.selected() } -> BitProxyConcept;
{ obj.userBit(uint()) } -> BitProxyConcept;
{ obj.resetBitFlags() } -> std::same_as<void>;
{ obj.importFlagsFromVCGFormat(int()) } -> std::same_as<void>;
};
}
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
HasBitFlags concept is satisfied only if a Element class provides the member functions specified in t...
Definition bit_flags.h:42

Detailed Description

HasBitFlags concept is satisfied only if a Element class provides the member functions specified in this concept. These member functions allows to access to a vcl::comp::BitFlags component of a given element.