OGS
MeshLib::MeshNodalCoordinatesBackend Struct Reference

Detailed Description

Definition at line 22 of file MeshNodalCoordinatesBackend.h.

#include <MeshNodalCoordinatesBackend.h>

Public Member Functions

 MeshNodalCoordinatesBackend (std::vector< Node * > const &nodes)
 
double map (vtkIdType idx) const
 
void mapTuple (vtkIdType tupleId, double *tuple) const
 

Private Attributes

std::vector< Node * > const & nodes_
 

Constructor & Destructor Documentation

◆ MeshNodalCoordinatesBackend()

MeshLib::MeshNodalCoordinatesBackend::MeshNodalCoordinatesBackend ( std::vector< Node * > const & nodes)
explicit

Definition at line 18 of file MeshNodalCoordinatesBackend.cpp.

20 : nodes_(nodes)
21{
22}

Member Function Documentation

◆ map()

double MeshLib::MeshNodalCoordinatesBackend::map ( vtkIdType idx) const

Definition at line 24 of file MeshNodalCoordinatesBackend.cpp.

25{
26 return nodes_[idx / 3]->operator[](idx % 3);
27}

References nodes_.

◆ mapTuple()

void MeshLib::MeshNodalCoordinatesBackend::mapTuple ( vtkIdType tupleId,
double * tuple ) const

Definition at line 29 of file MeshNodalCoordinatesBackend.cpp.

31{
32 std::copy_n(nodes_[tupleId]->data(), 3, tuple);
33}

References nodes_.

Member Data Documentation

◆ nodes_

std::vector<Node*> const& MeshLib::MeshNodalCoordinatesBackend::nodes_
private

Definition at line 30 of file MeshNodalCoordinatesBackend.h.

Referenced by map(), and mapTuple().


The documentation for this struct was generated from the following files: