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