Template Struct cache_volume
Defined in File competences.hxx
Inheritance Relationships
Base Type
public t8_crtp_operator< TUnderlying, cache_volume >(Template Struct t8_crtp_operator)
Struct Documentation
-
template<typename TUnderlying>
struct cache_volume : public t8_crtp_operator<TUnderlying, cache_volume> Competence to cache the volume of an element at the first function call.
- Template Parameters:
TUnderlying – Use the element with specified competences as template parameter.
Public Functions
-
inline bool volume_cache_filled() const
Function that checks if the cache for the volume has been filled.
- Returns:
true if the cache has been filled, false otherwise.
Protected Attributes
-
mutable std::optional<double> m_volume
Cache for the volume.
Use optional to allow no value if cache is not filled.