From 2182a2623add23003366290a52c980533cdb5211 Mon Sep 17 00:00:00 2001 From: Adrien Berchet Date: Wed, 7 Dec 2022 14:04:02 +0100 Subject: [PATCH] Improve readability of enum Option --- include/morphio/enums.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/morphio/enums.h b/include/morphio/enums.h index 97fff85f3..e0fb6dcff 100644 --- a/include/morphio/enums.h +++ b/include/morphio/enums.h @@ -11,14 +11,14 @@ enum LogLevel { ERROR, WARNING, INFO, DEBUG }; /** The list of modifier flags that can be passed when loading a morphology * See morphio::mut::modifiers for more information **/ enum Option { - NO_MODIFIER = 0b0000000000000000, //!< Read morphology as is without any modification - TWO_POINTS_SECTIONS = 0b0000000000000001, //!< Keep only the first and last points of sections - SOMA_SPHERE = 0b0000000000000010, //!< Interpret morphology soma as a sphere - NO_DUPLICATES = 0b0000000000000100, //!< Skip duplicating points - NRN_ORDER = 0b0000000000001000, //!< Order of neurites will be the same as in NEURON simulator - ALLOW_ROOT_BIFURCATIONS = 0b0000000000010000, //!< Bifurcations at first point are allowed - ALLOW_SOMA_BIFURCATIONS = 0b0000000000100000, //!< Bifurcations in soma are allowed - ALLOW_MULTIPLE_SOMATA = 0b0000000001000000 //!< Multiple somata are allowed + NO_MODIFIER = 0, //!< Read morphology as is without any modification + TWO_POINTS_SECTIONS = 1 << 0, //!< Keep only the first and last points of sections + SOMA_SPHERE = 1 << 1, //!< Interpret morphology soma as a sphere + NO_DUPLICATES = 1 << 2, //!< Skip duplicating points + NRN_ORDER = 1 << 3, //!< Order of neurites will be the same as in NEURON simulator + ALLOW_ROOT_BIFURCATIONS = 1 << 4, //!< Bifurcations at first point are allowed + ALLOW_SOMA_BIFURCATIONS = 1 << 5, //!< Bifurcations in soma are allowed + ALLOW_MULTIPLE_SOMATA = 1 << 6 //!< Multiple somata are allowed }; /**