Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / coordinateio / enums.h
index b03963b3ee7b2a5472de4386e22efa405a78b960..ecd2d4652ca6cf84047176841c589e493bbff845 100644 (file)
@@ -71,21 +71,21 @@ enum class CoordinateFileFlags : unsigned long
      * Sets the flags to default setting to make sure all output methods
      * are supported.
      */
-    Base = 1<<0,
+    Base = 1 << 0,
     /*! \brief
      * Requires output method to support force output.
      *
      * If set, only output methods supporting writing of forces will work,
      * others will generate an invalid input error.
      */
-    RequireForceOutput     = 1<<1,
+    RequireForceOutput = 1 << 1,
     /*! \brief
      * Requires output method to support velocity output.
      *
      * If set, only writing to files that support velocity output will succeed.
      * Other writing methods will generate an error.
      */
-    RequireVelocityOutput = 1<<2,
+    RequireVelocityOutput = 1 << 2,
     /*! \brief
      * Requires support for connection information in output format.
      *
@@ -93,40 +93,40 @@ enum class CoordinateFileFlags : unsigned long
      * This means for now that only PDB and TNG files can be written. Other file writing
      * methods will fail.
      */
-    RequireAtomConnections = 1<<3,
+    RequireAtomConnections = 1 << 3,
     /*! \brief
      * Requires that output format supports the writing of atom information to the file.
      *
      * If set, files will only be written if they can output the information from t_atoms
      * and otherwise create an error while writing.
      */
-    RequireAtomInformation = 1<<4,
+    RequireAtomInformation = 1 << 4,
     /*! \brief
      * Requires that output format supports writing user-specified output precision.
      *
      * If set, output will only be written if the format supports the writing
      * of custom precision of the included data.
      */
-    RequireChangedOutputPrecision = 1<<5,
+    RequireChangedOutputPrecision = 1 << 5,
     /*! \brief
      * Requires that output format supports writing time to the file.
      */
-    RequireNewFrameStartTime = 1<<6,
+    RequireNewFrameStartTime = 1 << 6,
     /*! \brief
      * Requires that output format supports writing time to the file.
      */
-    RequireNewFrameTimeStep = 1<<7,
+    RequireNewFrameTimeStep = 1 << 7,
     /*! \brief
      * Requires that output format supports writing box information.
      */
-    RequireNewBox = 1<<8,
+    RequireNewBox = 1 << 8,
     /*! \brief
      * Requires output to support changes to selection of coordinates.
      *
      * Default for most methods, will need to be able to write coordinates to
      * output file or generate an error.
      */
-    RequireCoordinateSelection = 1<<9,
+    RequireCoordinateSelection = 1 << 9,
     //! Needed for enumeration array.
     Count
 };
@@ -145,9 +145,7 @@ enum class ChangeSettingType
     Never
 };
 //! Mapping for enums from \ref ChangeSettingType.
-const char *const cChangeSettingTypeEnum[] = {
-    "preserved-if-present", "always", "never"
-};
+const char* const cChangeSettingTypeEnum[] = { "preserved-if-present", "always", "never" };
 
 //! Enum class for t_atoms settings
 enum class ChangeAtomsType
@@ -159,9 +157,8 @@ enum class ChangeAtomsType
 };
 
 //! Mapping for enums from \ref ChangeAtomsType.
-const char *const cChangeAtomsTypeEnum[] = {
-    "preserved-if-present", "always-from-structure", "never", "always"
-};
+const char* const cChangeAtomsTypeEnum[] = { "preserved-if-present", "always-from-structure",
+                                             "never", "always" };
 
 //! Enum class for setting fields new or not.
 enum class ChangeFrameInfoType
@@ -170,9 +167,7 @@ enum class ChangeFrameInfoType
     Always
 };
 //! Mapping for enums from \ref ChangeFrameInfoType.
-const char *const cChangeFrameInfoTypeEnum[] = {
-    "preserved-if-present", "always"
-};
+const char* const cChangeFrameInfoTypeEnum[] = { "preserved-if-present", "always" };
 
 //! Enum class for setting frame time from user input.
 enum class ChangeFrameTimeType
@@ -184,9 +179,8 @@ enum class ChangeFrameTimeType
 };
 
 //! Mapping for values from \ref ChangeFrameTimeType.
-const char *const cChangeFrameTimeTypeEnum[] = {
-    "preserved-if-present", "starttime", "timestep", "both"
-};
+const char* const cChangeFrameTimeTypeEnum[] = { "preserved-if-present", "starttime", "timestep",
+                                                 "both" };
 
 
 } // namespace gmx