Sort all includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / analysisdata / analysisdata.h
index fbd72a5ee6b6e9ebf0a8d2c7868789329bae625d..b8849769ea847b06f19d5f4e32e9d0e95f185f2d 100644 (file)
@@ -1,10 +1,10 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2010,2011,2012,2013, by the GROMACS development team, led by
- * David van der Spoel, Berk Hess, Erik Lindahl, and including many
- * others, as listed in the AUTHORS file in the top-level source
- * directory and at http://www.gromacs.org.
+ * 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.
  *
  * GROMACS is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
@@ -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().