Template Struct cache_diameter

Inheritance Relationships

Base Type

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.