#include "gromacs/utility/real.h"
struct t_atoms;
+enum class PbcType : int;
typedef struct t_trxframe // NOLINT (clang-analyzer-optin.performance.Padding)
{
gmx_bool bBox;
matrix box; /* the 3 box vectors */
gmx_bool bPBC;
- int ePBC; /* the type of pbc */
+ PbcType pbcType; /* the type of pbc */
gmx_bool bIndex;
int* index; /* atom indices of contained coordinates */
} t_trxframe;
//! Time read from the trajectory file frame.
double time() const;
//! The PBC characteristics of the box.
- int pbc() const;
+ PbcType pbc() const;
//! Get a view of position coordinates of the frame (which could be empty).
ArrayRef<const RVec> x() const;
//! Get a view of velocity coordinates of the frame (which could be empty).