Template Struct cache_face_centroids

Inheritance Relationships

Base Type

Struct Documentation

template<typename TUnderlying>
struct cache_face_centroids : public t8_crtp_operator<TUnderlying, cache_face_centroids>

Competence to cache the centroid of a specific face at the first function call.

Template Parameters:

TUnderlying – Use the element with specified competences as template parameter.

Public Functions

inline bool face_centroid_cache_filled(int face) const

Function that checks if the cache for a face has been filled.

Parameters:

face[in] The face for which the cache should be checked.

Returns:

true if the cache has been filled, false otherwise.

Protected Attributes

mutable std::vector<std::optional<t8_3D_vec>> m_face_centroids

Vector with the face centroid for each face.