ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Utils::Counter< T > Class Template Reference

#include <Counter.hpp>

Public Member Functions

 Counter (T initial_value=T(0)) noexcept
 
 Counter (T initial_value, T value) noexcept
 
void increment ()
 
value () const
 
initial_value () const
 

Friends

class boost::serialization::access
 

Detailed Description

template<typename T>
class Utils::Counter< T >

Definition at line 25 of file Counter.hpp.

Constructor & Destructor Documentation

◆ Counter() [1/2]

template<typename T >
Utils::Counter< T >::Counter ( initial_value = T(0))
inlineexplicitnoexcept

Definition at line 36 of file Counter.hpp.

◆ Counter() [2/2]

template<typename T >
Utils::Counter< T >::Counter ( initial_value,
value 
)
inlinenoexcept

Definition at line 38 of file Counter.hpp.

Member Function Documentation

◆ increment()

template<typename T >
void Utils::Counter< T >::increment ( )
inline

Definition at line 41 of file Counter.hpp.

Referenced by BaseThermostat::rng_increment().

◆ initial_value()

template<typename T >
T Utils::Counter< T >::initial_value ( ) const
inline

Definition at line 44 of file Counter.hpp.

◆ value()

template<typename T >
T Utils::Counter< T >::value ( ) const
inline

Definition at line 43 of file Counter.hpp.

Referenced by BaseThermostat::rng_counter().

Friends And Related Symbol Documentation

◆ boost::serialization::access

template<typename T >
friend class boost::serialization::access
friend

Definition at line 29 of file Counter.hpp.


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