MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
lptcellproperties.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 LPTCELLPROPERTIES_H_
8#define LPTCELLPROPERTIES_H_
9
10#include <bitset>
11#include <type_traits>
12
15
16
17namespace maia {
18namespace lpt {
19namespace cell {
20
22constexpr std::underlying_type<LptCell>::type p(const LptCell property) {
23 return static_cast<std::underlying_type<LptCell>::type>(property);
24}
25
26using BitsetType = std::bitset<p(LptCell::NumProperties)>;
27
28
29} // namespace cell
30} // namespace lpt
31} // namespace maia
32
33#endif // LPTCELLPROPERTIES_H_
LptCell
Lpt cell Property Labels.
@ NumProperties
@ RegridTrigger
constexpr std::underlying_type< LptCell >::type p(const LptCell property)
Converts property name to underlying integer value.
std::bitset< p(LptCell::NumProperties)> BitsetType
Namespace for auxiliary functions/classes.