OGS
MeshLib::views Namespace Reference

Detailed Description

MeshLib specific, lazy, non-owning, non-mutating, composable range views.

Variables

constexpr ranges::views::view_closure ids
 For an element of a range view return its id.
 
constexpr ranges::views::view_closure names
 For an element of a range view return its name.
 
constexpr ranges::views::view_closure coords
 

Variable Documentation

◆ coords

constexpr ranges::views::view_closure MeshLib::views::coords
inlineconstexpr
Initial value:
=
ranges::views::transform([](MathLib::Point3d const* n)
{ return std::span(n->data(), n->data() + 3); })
const double * data() const
Definition Point3d.h:59

Definition at line 232 of file Mesh.h.

Referenced by OGSMesh::getPointCoordinates().

◆ ids

constexpr ranges::views::view_closure MeshLib::views::ids
inlineconstexpr

◆ names

constexpr ranges::views::view_closure MeshLib::views::names
inlineconstexpr
Initial value:
=
ranges::views::transform([](auto const& a) { return a->getName(); })

For an element of a range view return its name.

Definition at line 229 of file Mesh.h.

Referenced by anonymous_namespace{ProjectData.cpp}::readMeshes().