NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::AtomicCounter< T > Struct Template Reference

#include <AtomicCounter.hpp>

Public Member Functions

 AtomicCounter (T defValue=0)
 
 AtomicCounter (const AtomicCounter< T > &other)
 
AtomicCounter< T > & operator= (const AtomicCounter< T > &other)
 
 operator T ()
 
fetch_add (T delta)
 

Public Attributes

std::atomic< T > counter
 

Constructor & Destructor Documentation

◆ AtomicCounter() [1/2]

template<typename T >
NES::AtomicCounter< T >::AtomicCounter ( defValue = 0)
inlineexplicit

◆ AtomicCounter() [2/2]

template<typename T >
NES::AtomicCounter< T >::AtomicCounter ( const AtomicCounter< T > &  other)
inline

Member Function Documentation

◆ fetch_add()

template<typename T >
T NES::AtomicCounter< T >::fetch_add ( delta)
inline

◆ operator T()

template<typename T >
NES::AtomicCounter< T >::operator T ( )
inline

◆ operator=()

template<typename T >
AtomicCounter<T>& NES::AtomicCounter< T >::operator= ( const AtomicCounter< T > &  other)
inline

Member Data Documentation

◆ counter

template<typename T >
std::atomic<T> NES::AtomicCounter< T >::counter

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