MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
fccellproperties.h
Go to the documentation of this file.
1// Copyright (C) 2024 The m-AIA AUTHORS
2//
3// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4//
5// SPDX-License-Identifier: LGPL-3.0-only
6
7#ifndef MAIAFCCELLPROPERTIES_H_
8#define MAIAFCCELLPROPERTIES_H_
9
10#include <bitset>
11#include <type_traits>
12
14enum class FcCell {
15 IsHalo,
21 // <<< add new properties here
22 // ---
24};
25
26
27namespace maia {
28namespace fc {
29namespace cell {
30
32constexpr std::underlying_type<FcCell>::type p(const FcCell property) {
33 return static_cast<std::underlying_type<FcCell>::type>(property);
34}
35
36using BitsetType = std::bitset<p(FcCell::NumProperties)>;
37
38} // namespace cell
39} // namespace fc
40} // namespace maia
41
42#endif // MAIAFCCELLPROPERTIES_H_
FcCell
FC cell Property Labels.
@ NumProperties
@ IsBndryCell
@ NeedsSubCells
std::bitset< p(FcCell::NumProperties)> BitsetType
constexpr std::underlying_type< FcCell >::type p(const FcCell property)
Converts property name to underlying integer value.
Namespace for auxiliary functions/classes.