Template Struct cache_centroid

Inheritance Relationships

Base Type

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_vec> m_centroid

Cache for the coordinates of the centroid.

Use optional to allow no value if cache is not filled.