Hermes2D
3.0
|
An item of a value cache. More...
#include <proj_based_selector.h>
Public Member Functions | |
bool | is_valid () const |
Returns true if value is mared as valid. More... | |
void | mark (int new_state=H2DRS_VALCACHE_VALID) |
Marks a value. More... | |
void | set (T new_value) |
Sets a value. More... | |
T | get () const |
Returns the value. It does check the state of the value. More... | |
ValueCacheItem (const T &value=0, const int state=H2DRS_VALCACHE_INVALID) | |
Constructor. More... | |
An item of a value cache.
Definition at line 202 of file proj_based_selector.h.
|
inline |
Constructor.
By default, the item is set as invalid.
value | A starting value. |
state | A state of the value. Default constructor. By default, it creates an item that contains invalid value. |
Definition at line 224 of file proj_based_selector.h.
|
inline |
Returns the value. It does check the state of the value.
Definition at line 217 of file proj_based_selector.h.
Referenced by Hermes::Hermes2D::RefinementSelectors::ProjBasedSelector< Scalar >::calc_error_cand_element().
|
inline |
Returns true if value is mared as valid.
Definition at line 205 of file proj_based_selector.h.
Referenced by Hermes::Hermes2D::RefinementSelectors::ProjBasedSelector< Scalar >::calc_error_cand_element().
|
inline |
Marks a value.
[in] | new_state | A new state of the value. By default, it marks the value as valid. |
Definition at line 209 of file proj_based_selector.h.
Referenced by Hermes::Hermes2D::RefinementSelectors::ProjBasedSelector< Scalar >::calc_error_cand_element().
|
inline |
Sets a value.
[in] | new_value | A new value. It does not change state of the value. |
Definition at line 213 of file proj_based_selector.h.
Referenced by Hermes::Hermes2D::RefinementSelectors::ProjBasedSelector< Scalar >::calc_error_cand_element().