Player12
An open source football management simulator
Loading...
Searching...
No Matches
Player::MarketValueCache Struct Reference

Public Member Functions

 MarketValueCache ()=default
 
 ~MarketValueCache ()=default
 
 MarketValueCache (const MarketValueCache &other) noexcept
 
MarketValueCache & operator= (const MarketValueCache &other) noexcept
 
 MarketValueCache (MarketValueCache &&other) noexcept
 
MarketValueCache & operator= (MarketValueCache &&other) noexcept
 
uint32_t load () const noexcept
 
void store (uint32_t next) const noexcept
 

Private Attributes

std::atomic< uint32_t > value {0}
 

Detailed Description

Independently copied cache; concurrent const price queries may refresh it.

Constructor & Destructor Documentation

◆ MarketValueCache() [1/3]

Player::MarketValueCache::MarketValueCache ( )
default

◆ ~MarketValueCache()

Player::MarketValueCache::~MarketValueCache ( )
default

◆ MarketValueCache() [2/3]

Player::MarketValueCache::MarketValueCache ( const MarketValueCache &  other)
inlinenoexcept

◆ MarketValueCache() [3/3]

Player::MarketValueCache::MarketValueCache ( MarketValueCache &&  other)
inlinenoexcept

Member Function Documentation

◆ load()

uint32_t Player::MarketValueCache::load ( ) const
inlinenoexcept

◆ operator=() [1/2]

MarketValueCache & Player::MarketValueCache::operator= ( const MarketValueCache &  other)
inlinenoexcept

◆ operator=() [2/2]

MarketValueCache & Player::MarketValueCache::operator= ( MarketValueCache &&  other)
inlinenoexcept

◆ store()

void Player::MarketValueCache::store ( uint32_t  next) const
inlinenoexcept

Member Data Documentation

◆ value

std::atomic<uint32_t> Player::MarketValueCache::value {0}
mutableprivate

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