OpenBEM
Open-source framework for electromagnetic simulation with the boundary element method.
Loading...
Searching...
No Matches
bem::MeshView< MeshType > Class Template Reference

Class that provides a lightweight view into a MeshBase object. More...

#include <base.hpp>

Detailed Description

template<typename MeshType>
class bem::MeshView< MeshType >

Class that provides a lightweight view into a MeshBase object.

Template Parameters
MeshType- Type of the mesh.

Definition at line 184 of file base.hpp.

Constructor & Destructor Documentation

◆ MeshView() [1/2]

template<typename MeshType >
bem::MeshView< MeshType >::MeshView ( const MeshType mesh,
ConstEigRef< EigRowVec< Index > >  elem_inds,
const std::string  name = "view" 
)
inline

Constructs a MeshView from a mesh and specified element indices.

Parameters
[in]mesh- The parent mesh into which this is a view.
[in]elem_inds- Indices of the elements of mesh to include in the view.
[in]name- Name of the view (optional).

Definition at line 194 of file base.hpp.

◆ MeshView() [2/2]

template<typename MeshType >
bem::MeshView< MeshType >::MeshView ( const MeshType mesh,
const std::string  name = "view" 
)
inline

Constructs a MeshView from a mesh, containing all its elements.

Parameters
[in]mesh- The parent mesh into which this is a view.
[in]name- Name of the view (optional).

Definition at line 206 of file base.hpp.

Member Function Documentation

◆ mesh()

template<typename MeshType >
MeshType bem::MeshView< MeshType >::mesh ( ) const
inline

Creates and returns a new mesh containing the elements of the parent mesh associated with this view.

Returns
Mesh object containing the elements of the parent mesh associated with this view.

Definition at line 220 of file base.hpp.

◆ elem_inds()

template<typename MeshType >
const EigRowVec< Index > & bem::MeshView< MeshType >::elem_inds ( ) const
inline

Returns the parent mesh's element indices associated with this view.

Returns
Parent mesh's element indices associated with this view.

Definition at line 232 of file base.hpp.

◆ name()

template<typename MeshType >
const std::string & bem::MeshView< MeshType >::name ( ) const
inline

Returns the name of the view.

Returns
Name of the view.

Definition at line 239 of file base.hpp.

Member Data Documentation

◆ mesh_

template<typename MeshType >
const MeshType& bem::MeshView< MeshType >::mesh_
protected

Definition at line 244 of file base.hpp.

◆ elem_inds_

template<typename MeshType >
const EigRowVec<Index> bem::MeshView< MeshType >::elem_inds_
protected

Definition at line 245 of file base.hpp.

◆ name_

template<typename MeshType >
const std::string bem::MeshView< MeshType >::name_ = "view"
protected

Definition at line 246 of file base.hpp.


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