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