FireSTARR
Loading...
Searching...
No Matches
fs::util::UsageCount Class Reference

Provides the ability to determine how many times something is used during a simulation. More...

#include <Util.h>

Collaboration diagram for fs::util::UsageCount:

Public Member Functions

 UsageCount (string for_what) noexcept
 Constructor.
 
 UsageCount (UsageCount &&rhs) noexcept=delete
 
 UsageCount (const UsageCount &rhs) noexcept=delete
 
UsageCountoperator= (UsageCount &&rhs) noexcept=delete
 
UsageCountoperator= (const UsageCount &rhs) noexcept=delete
 
UsageCountoperator++ () noexcept
 Increment operator.
 

Private Attributes

atomic< size_t > count_
 How many times this has been used.
 
string for_what_
 What this is tracking usage of.
 

Detailed Description

Provides the ability to determine how many times something is used during a simulation.

Constructor & Destructor Documentation

◆ UsageCount()

fs::util::UsageCount::UsageCount ( string for_what)
explicitnoexcept

Constructor.

Parameters
for_whatWhat this is tracking usage of

Member Function Documentation

◆ operator++()

UsageCount & fs::util::UsageCount::operator++ ( )
noexcept

Increment operator.

Returns
Value after increment

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