identt
Public Types | Public Member Functions | List of all members
identt::utils::SharedCounter Class Reference
Inheritance diagram for identt::utils::SharedCounter:
identt::utils::SharedObject< uint64_t >

Public Types

using LockT = SharedObject< uint64_t >::LockT
 
using WriteLockT = SharedObject< uint64_t >::WriteLockT
 
using ReadLockT = SharedObject< uint64_t >::ReadLockT
 
- Public Types inherited from identt::utils::SharedObject< uint64_t >
using LockT = boost::shared_mutex
 
using WriteLockT = boost::unique_lock< LockT >
 
using ReadLockT = boost::shared_lock< LockT >
 

Public Member Functions

 SharedCounter (const SharedCounter &)=delete
 make noncopyable and remove default
 
SharedCounteroperator= (const SharedCounter &)=delete
 
 SharedCounter ()
 Constructor : default. More...
 
virtual ~SharedCounter ()
 destructor
 
uint64_t GetNext ()
 GetNext : increment and get next value. More...
 
- Public Member Functions inherited from identt::utils::SharedObject< uint64_t >
 SharedObject (const SharedObject &)=delete
 make noncopyable and remove default
 
 SharedObject ()
 Constructor : default. More...
 
 SharedObject (uint64_t t)
 
SharedObjectoperator= (const SharedObject &)=delete
 
virtual ~SharedObject ()
 destructor
 
void Set (uint64_t t)
 Set : set. More...
 
uint64_t Get ()
 Get : get. More...
 

Additional Inherited Members

- Public Attributes inherited from identt::utils::SharedObject< uint64_t >
uint64_t t_
 
LockT mutex_
 

Constructor & Destructor Documentation

§ SharedCounter()

identt::utils::SharedCounter::SharedCounter ( )
inline

Constructor : default.

Member Function Documentation

§ GetNext()

uint64_t identt::utils::SharedCounter::GetNext ( )
inline

GetNext : increment and get next value.

Returns
uint64_t next value

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