NuTo
Numerics Tool
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
nuto
base
UniqueId.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
NuTo
4
{
9
template
<
typename
T>
10
class
UniqueId
11
{
12
public
:
13
UniqueId
()
14
: mId(mIdCounter++)
15
{
16
}
17
18
int
Id
()
const
19
{
20
return
mId;
21
}
22
23
private
:
24
int
mId;
25
static
int
mIdCounter;
26
};
27
28
template
<
typename
T>
29
int
UniqueId<T>::mIdCounter
= 0;
30
31
}
/* NuTo */
NuTo::UniqueId::UniqueId
UniqueId()
Definition:
UniqueId.h:13
NuTo::UniqueId
This class provides a unique id (beginning at 0 and incrementing for each object).
Definition:
UniqueId.h:10
NuTo::UniqueId::Id
int Id() const
Definition:
UniqueId.h:18
NuTo
Definition:
Exception.h:6
Generated on Wed Sep 19 2018 05:53:21 for NuTo by
1.8.11