Flow123d
DF_patch_fe_data_tables-3c41206
|
Auxiliary data class holds number of elements in cache and allow to set this value explicitly (e.g. as input parameter). More...
#include <field_value_cache.hh>
Public Member Functions | |
CacheMapElementNumber (CacheMapElementNumber const &)=delete | |
We don't need copy constructor. More... | |
void | operator= (CacheMapElementNumber const &)=delete |
We don't need assignment operator. More... | |
Static Public Member Functions | |
static unsigned int | get () |
Return number of stored elements. More... | |
static void | set (unsigned int n_elem) |
Set number of stored elements. More... | |
Private Member Functions | |
CacheMapElementNumber () | |
Forbiden default constructor. More... | |
Static Private Member Functions | |
static CacheMapElementNumber & | get_instance () |
Private Attributes | |
unsigned int | n_elem_ |
Maximal number of elements stored in cache. More... | |
Auxiliary data class holds number of elements in cache and allow to set this value explicitly (e.g. as input parameter).
Implementation is done as singletone with two access through static methods 'get' and 'set'.
TODO: This is actually a constant so make it a constant int in element cache map.
Definition at line 91 of file field_value_cache.hh.
|
delete |
We don't need copy constructor.
|
inlineprivate |
Forbiden default constructor.
Definition at line 108 of file field_value_cache.hh.
|
inlinestatic |
Return number of stored elements.
Definition at line 94 of file field_value_cache.hh.
|
inlinestaticprivate |
|
delete |
We don't need assignment operator.
|
inlinestatic |
Set number of stored elements.
Definition at line 99 of file field_value_cache.hh.
|
private |
Maximal number of elements stored in cache.
Definition at line 118 of file field_value_cache.hh.