9 #define NEED_TO_REDEFINE_TRUE
14 #include <highfive/H5DataType.hpp>
15 #include <type_traits>
26 template <
typename AtomicType>
28 std::integral_constant<bool,
29 std::is_arithmetic<AtomicType>::value ||
30 std::is_same<AtomicType, std::string>::value>;
33 template <
typename AtomicType>
42 enum class Bool : bool { TRUE =
true, FALSE =
false };
69 HighFive::DataType HighFive::create_datatype<hdtree::Bool>();
Geant4 does a GLOBAL definition of the keyword TRUE.
Definition: Atomic.cxx:3
HighFive::EnumType< Bool > create_enum_bool()
HighFive method for creating the enum data type.
Definition: Atomic.cxx:5
constexpr bool is_atomic_v
shorthand for easier use
Definition: Atomic.h:34
std::integral_constant< bool, std::is_arithmetic< AtomicType >::value||std::is_same< AtomicType, std::string >::value > is_atomic
HighFive supports many C++ "atomic" types that are used regularly.
Definition: Atomic.h:30
Bool
Boolean enum aligned with h5py.
Definition: Atomic.h:42