CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
src
include
memory
memcount.h
Go to the documentation of this file.
1
// -*- C++ -*-
12
#ifndef __cxz_memcount_h__
13
#define __cxz_memcount_h__
14
15
#include "
base/types.h
"
16
17
namespace
CNORXZ
18
{
25
class
MemCount
26
{
27
private
:
28
static
SizeT
sMemUsage;
33
static
void
add(
SizeT
x);
// { sMemUsage += x; }
34
38
static
void
sub(
SizeT
x);
// { sMemUsage -= x; }
39
40
public
:
42
MemCount
() =
delete
;
43
45
static
SizeT
usage
();
46
47
template
<
typename
T>
48
friend
class
Allocator
;
49
};
50
51
}
// namespace CNORXZ
52
53
#endif
CNORXZ::Allocator
Definition
allocator.h:35
CNORXZ::MemCount
Definition
memcount.h:26
CNORXZ::MemCount::usage
static SizeT usage()
Definition
memcount.cc:28
CNORXZ::MemCount::MemCount
MemCount()=delete
CNORXZ
Definition
aindex.cc.h:18
CNORXZ::SizeT
uint64_t SizeT
Definition
types.h:38
types.h
Declaration of all library types.
Generated by
1.10.0