NEMoSys  0.63.0
A modular, extensible resource with robust automated mesh generation, mesh quality analysis, adaptive mesh refinement, and data transfer between arbitrary meshes.
NEM::NUCMESH::CopyOverrideShapeData< T, Base > Class Template Reference

CRTP pattern to implement NEM::GEO::ShapeData::updateModified by copying. More...

Detailed Description

template<typename T, typename Base>
class NEM::NUCMESH::CopyOverrideShapeData< T, Base >

Template Parameters
TShape type
BaseImmediate parent type

Definition at line 71 of file NucMeshShapeData.H.

Public Member Functions

void updateModified (const TopoDS_Shape &shape, const TopTools_ListOfShape &modifiedShapes, NEM::GEO::GeoManager &geoMetadata) const override
 

Protected Types

using CRTPBase = CopyOverrideShapeData< T, Base >
 

Inherits Base.

Member Typedef Documentation

◆ CRTPBase

template<typename T, typename Base>
using NEM::NUCMESH::CopyOverrideShapeData< T, Base >::CRTPBase = CopyOverrideShapeData<T, Base>
protected

Definition at line 86 of file NucMeshShapeData.H.

Member Function Documentation

◆ updateModified()

template<typename T, typename Base>
void NEM::NUCMESH::CopyOverrideShapeData< T, Base >::updateModified ( const TopoDS_Shape &  shape,
const TopTools_ListOfShape modifiedShapes,
NEM::GEO::GeoManager geoMetadata 
) const
inlineoverride

Reimplemented in NEM::NUCMESH::CopyOverrideShapeData< EdgeSegments, SideSetEdge >.

Definition at line 75 of file NucMeshShapeData.H.

77  {
78  for (auto &modifiedShape : modifiedShapes) {
79  geoMetadata.getMap()[modifiedShape] =
80  std::shared_ptr<NEM::GEO::ShapeData>{
81  new T{*static_cast<const T *>(this)}};
82  }
83  }
MapType & getMap()
Definition: GeoManager.C:186

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