PSCF
v1.1
src
util
archives
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
10
namespace
Util
11
{
12
13
/*
14
* Constructor.
15
*/
16
MemoryCounter::MemoryCounter
()
17
: size_(0),
18
version_(0)
19
{}
20
21
/*
22
* Destructor.
23
*/
24
MemoryCounter::~MemoryCounter
()
25
{}
26
27
/*
28
* Return cursor to beginning.
29
*/
30
void
MemoryCounter::clear
()
31
{ size_ = 0; }
32
33
}
Util::MemoryCounter::MemoryCounter
MemoryCounter()
Constructor.
Definition:
MemoryCounter.cpp:16
Util::MemoryCounter::~MemoryCounter
~MemoryCounter()
Destructor.
Definition:
MemoryCounter.cpp:24
Util::MemoryCounter::clear
void clear()
Resets the size counter to zero.
Definition:
MemoryCounter.cpp:30
Util
Utility classes for scientific computation.
Definition:
accumulators.mod:1
Generated on Wed Sep 20 2023 00:52:46 for PSCF by
1.9.5