RefinementSelectors::ProjBasedSelector::ValueCacheItem< T > Struct Template Reference
#include <proj_based_selector.h>
List of all members.
Public Member Functions |
| bool | is_valid () const |
| | Returns true if value is mared as valid.
|
| void | mark (int new_state=H2DRS_VALCACHE_VALID) |
| | Marks a value.
|
| void | set (T new_value) |
| | Sets a value.
|
| T | get () const |
| | Returns the value. It does check the state of the value.
|
| | ValueCacheItem (const T &value=0, const int state=H2DRS_VALCACHE_INVALID) |
| | Constructor.
|
template<typename T>
struct RefinementSelectors::ProjBasedSelector::ValueCacheItem< T >
Constructor & Destructor Documentation
Constructor.
By default, the item is set as invalid.
- Parameters:
-
| value | A starting value. |
| state | A state of the value. |
Member Function Documentation
Returns the value. It does check the state of the value.
- Returns:
- A current value.
Returns true if value is mared as valid.
- Returns:
- True if the value is marked as valid.
Marks a value.
- Parameters:
-
| [in] | new_state | A new state of the value. By default, it marks the value as valid. |
Sets a value.
- Parameters:
-
| [in] | new_value | A new value. It does not change state of the value. |
The documentation for this struct was generated from the following file: