33class ElementErrorCode :
public std::bitset<static_cast<std::size_t>(ElementErrorFlag::MaxValue)>
39 void set(
ElementErrorFlag e) { std::bitset<static_cast<std::size_t>(ElementErrorFlag::MaxValue)>
::set(
static_cast<std::size_t
>(e),
true); }
41 void reset(
ElementErrorFlag e) { std::bitset<static_cast<std::size_t>(ElementErrorFlag::MaxValue)>
::set(
static_cast<std::size_t
>(e),
false); }
43 inline reference
operator[](
const ElementErrorFlag e) {
return std::bitset<static_cast<std::size_t>(ElementErrorFlag::MaxValue)>::operator[](
static_cast<std::size_t
>(e)); }
44 inline bool operator[](
const ElementErrorFlag e)
const {
return std::bitset<static_cast<std::size_t>(ElementErrorFlag::MaxValue)>::operator[](
static_cast<std::size_t
>(e)); }
49 if (e == ElementErrorFlag::ZeroVolume)
53 if (e == ElementErrorFlag::NonCoplanar)
55 return "non coplanar nodes";
57 if (e == ElementErrorFlag::NonConvex)
59 return "non-convex geometry";
61 if (e == ElementErrorFlag::NodeOrder)
63 return "wrong node order";
65 return "nonspecified error";
ElementErrorFlag
Possible error flags for mesh elements.
Collects error flags for mesh elements.
bool operator[](const ElementErrorFlag e) const
bool get(ElementErrorFlag e) const
Get value for a specific flag.
reference operator[](const ElementErrorFlag e)
static std::string toString(const ElementErrorFlag e)
Returns a string output for a specific error flag.
void set(ElementErrorFlag e)
Set a specific flag.
void reset(ElementErrorFlag e)
Reset a specific flag.