![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Cache of yield values keyed by development and yield name. More...
#include <FMTYieldsCache.h>
Public Member Functions | |
| FMTYieldsCache ()=default | |
| Default constructor for FMTYieldsCache. | |
| FMTYieldsCache (const FMTYieldsCache &rhs)=default | |
| Copy constructor for FMTYieldsCache. | |
| FMTYieldsCache & | operator= (const FMTYieldsCache &rhs)=default |
| Copy assignment operator for FMTYieldsCache. | |
| ~FMTYieldsCache ()=default | |
| Default destructor for FMTYieldsCache. | |
| bool | inCache (const FMTYieldRequest &p_request, const std::string &p_yield) const |
| Return true if the value for a request and yield is cached. | |
| double | get (const FMTYieldRequest &p_request, const std::string &p_yield) const |
| Get the cached value for a request and yield. | |
| void | set (double p_value, const FMTYieldRequest &p_request, const std::string &p_yield) |
| Cache a value for a request and yield. | |
| void | reserve (const FMTYieldRequest &p_request) |
| Reserve memory in the cache for a request. | |
Cache of yield values keyed by development and yield name.
|
default |
Default constructor for FMTYieldsCache.
|
default |
Copy constructor for FMTYieldsCache.
| [in] | rhs | the FMTYieldsCache to copy. |
|
default |
Default destructor for FMTYieldsCache.
| double Core::FMTYieldsCache::get | ( | const FMTYieldRequest & | p_request, |
| const std::string & | p_yield | ||
| ) | const |
Get the cached value for a request and yield.
| [in] | p_request | the yield request. |
| [in] | p_yield | the yield name. |
| 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.
| [in] | p_request | the yield request. |
| [in] | p_yield | the yield name. |
|
default |
Copy assignment operator for FMTYieldsCache.
| [in] | rhs | the FMTYieldsCache to copy. |
| void Core::FMTYieldsCache::reserve | ( | const FMTYieldRequest & | p_request | ) |
Reserve memory in the cache for a request.
| [in] | p_request | the yield request. |
| void Core::FMTYieldsCache::set | ( | double | p_value, |
| const FMTYieldRequest & | p_request, | ||
| const std::string & | p_yield | ||
| ) |
Cache a value for a request and yield.
| [in] | p_value | the value. |
| [in] | p_request | the yield request. |
| [in] | p_yield | the yield name. |