Loading...
Searching...
No Matches
Public Member Functions | Static Protected Attributes | List of all members
bitpit::LevelSetValueCacheBaseEntry< value_t > Class Template Reference
Inheritance diagram for bitpit::LevelSetValueCacheBaseEntry< value_t >:
Inheritance graph
[legend]

Public Member Functions

 LevelSetValueCacheBaseEntry (bool valid)
 
bool isValid () const
 

Static Protected Attributes

static const value_t m_dummyValue = value_t{}
 

Detailed Description

template<typename value_t>
class bitpit::LevelSetValueCacheBaseEntry< value_t >

Definition at line 100 of file levelSetCache.hpp.

Constructor & Destructor Documentation

◆ LevelSetValueCacheBaseEntry()

template<typename value_t >
bitpit::LevelSetValueCacheBaseEntry< value_t >::LevelSetValueCacheBaseEntry ( bool valid)

Constructor.

Parameters
validif set to true, the cache entry is considered valid otherwise the cache entry is \considered invalid. Valid cache entry can be deferenced to access the cached value. Trying to deference an invalid entry results in undefined behaviour.

Definition at line 44 of file levelSetCache.tpp.

Member Function Documentation

◆ isValid()

template<typename value_t >
bool bitpit::LevelSetValueCacheBaseEntry< value_t >::isValid ( ) const

Check if the cache entry is valid.

Valid cache entry can be deferenced to access the cached value. Trying to deference an invalid entry results in undefined behaviour.

Definition at line 56 of file levelSetCache.tpp.

Member Data Documentation

◆ m_dummyValue

template<typename value_t >
const value_t bitpit::LevelSetValueCacheBaseEntry< value_t >::m_dummyValue = value_t{}
staticprotected

Dummy value to be used for invalid entries.

Definition at line 108 of file levelSetCache.hpp.


The documentation for this class was generated from the following files:
--- layout: doxygen_footer ---