Cache of yield values keyed by development and yield name.
More...
#include <FMTYieldsCache.h>
Cache of yield values keyed by development and yield name.
◆ FMTYieldsCache() [1/2]
| Core::FMTYieldsCache::FMTYieldsCache |
( |
| ) |
|
|
default |
◆ FMTYieldsCache() [2/2]
◆ ~FMTYieldsCache()
| Core::FMTYieldsCache::~FMTYieldsCache |
( |
| ) |
|
|
default |
◆ get()
| double Core::FMTYieldsCache::get |
( |
const FMTYieldRequest & |
p_request, |
|
|
const std::string & |
p_yield |
|
) |
| const |
Get the cached value for a request and yield.
- Parameters
-
| [in] | p_request | the yield request. |
| [in] | p_yield | the yield name. |
- Returns
- the cached value.
◆ inCache()
| bool Core::FMTYieldsCache::inCache |
( |
const FMTYieldRequest & |
p_request, |
|
|
const std::string & |
p_yield |
|
) |
| const |
Return true if the value for a request and yield is cached.
- Parameters
-
| [in] | p_request | the yield request. |
| [in] | p_yield | the yield name. |
- Returns
- true if the value is cached else false.
◆ operator=()
◆ reserve()
Reserve memory in the cache for a request.
- Parameters
-
| [in] | p_request | the yield request. |
◆ set()
| void Core::FMTYieldsCache::set |
( |
double |
p_value, |
|
|
const FMTYieldRequest & |
p_request, |
|
|
const std::string & |
p_yield |
|
) |
| |
Cache a value for a request and yield.
- Parameters
-
| [in] | p_value | the value. |
| [in] | p_request | the yield request. |
| [in] | p_yield | the yield name. |
◆ tryToGet()
| bool Core::FMTYieldsCache::tryToGet |
( |
double & |
p_value, |
|
|
const FMTYieldRequest & |
p_request, |
|
|
const std::string & |
p_yield |
|
) |
| const |
Get the cached value for a request and yield return false if not found.
- Parameters
-
| [in,out] | p_value | the value reached |
| [in] | p_request | the yield request. |
| [in] | p_yield | the yield name. |
- Returns
- true if found
The documentation for this class was generated from the following file: