PSCF v1.1
MemoryCounter.cpp
1/*
2* Util Package - C++ Utilities for Scientific Computation
3*
4* Copyright 2010 - 2017, The Regents of the University of Minnesota
5* Distributed under the terms of the GNU General Public License.
6*/
7
8#include "MemoryCounter.h"
9
10namespace Util
11{
12
13 /*
14 * Constructor.
15 */
17 : size_(0),
18 version_(0)
19 {}
20
21 /*
22 * Destructor.
23 */
25 {}
26
27 /*
28 * Return cursor to beginning.
29 */
31 { size_ = 0; }
32
33}
MemoryCounter()
Constructor.
~MemoryCounter()
Destructor.
void clear()
Resets the size counter to zero.
Utility classes for scientific computation.
Definition: accumulators.mod:1