NuTo
Numerics Tool
Public Member Functions | List of all members
NuTo::UniqueId< T > Class Template Reference

This class provides a unique id (beginning at 0 and incrementing for each object). More...

#include <UniqueId.h>

Public Member Functions

 UniqueId ()
 
int Id () const
 

Detailed Description

template<typename T>
class NuTo::UniqueId< T >

This class provides a unique id (beginning at 0 and incrementing for each object).

Template Parameters
TWithout the template, the id would be unique for all classes. Say, 1000 nodes are created first and get the ids 0...999. Element ids would then start at 1000. With this template, T=Node or T=Element, each T starts at 0 again.

Constructor & Destructor Documentation

template<typename T>
NuTo::UniqueId< T >::UniqueId ( )
inline

Member Function Documentation

template<typename T>
int NuTo::UniqueId< T >::Id ( ) const
inline

The documentation for this class was generated from the following file: