/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015,2016,2017, 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.
*/
AnalysisDataStorageImpl::AnalysisDataStorageImpl()
- : data_(NULL), modules_(NULL),
+ : data_(nullptr), modules_(nullptr),
storageLimit_(0), pendingLimit_(1),
firstFrameLocation_(0), firstUnnotifiedIndex_(0), nextIndex_(0)
{
int index)
: storageImpl_(*storageImpl), header_(index, 0.0, 0.0), status_(eMissing)
{
- GMX_RELEASE_ASSERT(storageImpl->data_ != NULL,
+ GMX_RELEASE_ASSERT(storageImpl->data_ != nullptr,
"Storage frame constructed before data started");
// With non-multipoint data, the point set structure is static,
// so initialize it only once here.
AnalysisDataStorageFrame::AnalysisDataStorageFrame(
const AbstractAnalysisData &data)
- : data_(NULL), currentDataSet_(0), currentOffset_(0),
+ : data_(nullptr), currentDataSet_(0), currentOffset_(0),
columnCount_(data.columnCount(0)), bPointSetInProgress_(false)
{
int totalColumnCount = 0;
void
AnalysisDataStorageFrame::selectDataSet(int index)
{
- GMX_RELEASE_ASSERT(data_ != NULL, "Invalid frame accessed");
+ GMX_RELEASE_ASSERT(data_ != nullptr, "Invalid frame accessed");
const AbstractAnalysisData &baseData = data_->baseData();
GMX_RELEASE_ASSERT(index >= 0 && index < baseData.dataSetCount(),
"Out of range data set index");
void
AnalysisDataStorageFrame::finishPointSet()
{
- GMX_RELEASE_ASSERT(data_ != NULL, "Invalid frame accessed");
+ GMX_RELEASE_ASSERT(data_ != nullptr, "Invalid frame accessed");
GMX_RELEASE_ASSERT(data_->baseData().isMultipoint(),
"Should not be called for non-multipoint data");
if (bPointSetInProgress_)
void
AnalysisDataStorageFrame::finishFrame()
{
- GMX_RELEASE_ASSERT(data_ != NULL, "Invalid frame accessed");
+ GMX_RELEASE_ASSERT(data_ != nullptr, "Invalid frame accessed");
data_->storageImpl().finishFrame(data_->frameIndex());
}