BioDynaMo  v1.03.58-27764645
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
bdm::NewAgentEventUidGenerator Class Reference

#include <new_agent_event.h>

Public Member Functions

 NewAgentEventUidGenerator (const NewAgentEventUidGenerator &)=delete
 
NewAgentEventUidGeneratoroperator= (const NewAgentEventUidGenerator &)=delete
 
NewAgentEventUid GenerateUid ()
 

Static Public Member Functions

static NewAgentEventUidGeneratorGetInstance ()
 

Private Member Functions

 NewAgentEventUidGenerator ()=default
 

Private Attributes

std::recursive_mutex mutex_
 
uint64_t counter_ = 0
 

Detailed Description

This class generates unique ids for behavior events satisfying the NewAgentEventUid invariant. Thread safe.

Definition at line 36 of file new_agent_event.h.

Constructor & Destructor Documentation

◆ NewAgentEventUidGenerator() [1/2]

bdm::NewAgentEventUidGenerator::NewAgentEventUidGenerator ( const NewAgentEventUidGenerator )
delete

◆ NewAgentEventUidGenerator() [2/2]

bdm::NewAgentEventUidGenerator::NewAgentEventUidGenerator ( )
privatedefault

Member Function Documentation

◆ GenerateUid()

NewAgentEventUid bdm::NewAgentEventUidGenerator::GenerateUid ( )
inline

Definition at line 44 of file new_agent_event.h.

◆ GetInstance()

NewAgentEventUidGenerator * bdm::NewAgentEventUidGenerator::GetInstance ( )
static

Definition at line 23 of file new_agent_event.cc.

◆ operator=()

NewAgentEventUidGenerator& bdm::NewAgentEventUidGenerator::operator= ( const NewAgentEventUidGenerator )
delete

Member Data Documentation

◆ counter_

uint64_t bdm::NewAgentEventUidGenerator::counter_ = 0
private

Definition at line 58 of file new_agent_event.h.

◆ mutex_

std::recursive_mutex bdm::NewAgentEventUidGenerator::mutex_
private

Definition at line 57 of file new_agent_event.h.


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