Sort all includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / analysisdata / analysisdata.h
index 0fa824ec548285db2dcaf183725f3ddc662eff9b..b8849769ea847b06f19d5f4e32e9d0e95f185f2d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2010,2011,2012,2013, by the GROMACS development team, led by
+ * Copyright (c) 2010,2011,2012,2013,2014, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -43,7 +43,8 @@
 #ifndef GMX_ANALYSISDATA_ANALYSISDATA_H
 #define GMX_ANALYSISDATA_ANALYSISDATA_H
 
-#include "abstractdata.h"
+#include "gromacs/analysisdata/abstractdata.h"
+#include "gromacs/utility/real.h"
 
 namespace gmx
 {
@@ -242,6 +243,9 @@ class AnalysisDataHandle
          */
         AnalysisDataHandle();
 
+        //! Returns whether this data handle is valid.
+        bool isValid() const { return impl_ != NULL; }
+
         /*! \brief
          * Start data for a new frame.
          *
@@ -341,7 +345,7 @@ class AnalysisDataHandle
         /*! \brief
          * Creates a new data handle associated with \p data.
          *
-         * \param  data Data to associate the handle with.
+         * \param  impl Data to associate the handle with.
          *
          * The constructor is private because data handles should only be
          * constructed through AnalysisData::startData().