walberla::mesa_pd::internal::VertexDataSourceAdapter< MeshType, T > Class Template Reference

Detailed Description

template<typename MeshType, typename T>
class walberla::mesa_pd::internal::VertexDataSourceAdapter< MeshType, T >

Adapts a vertex data source for the MESAPD mesh output to the generic vertex data source class.

Template Parameters
MeshType
Toutput type

#include <DataSourceAdapters.h>

+ Inheritance diagram for walberla::mesa_pd::internal::VertexDataSourceAdapter< MeshType, T >:

Public Types

typedef mesh::DistributedVTKMeshWriter< MeshType >::template VertexDataSource< T >::Vertices Vertices
 

Public Member Functions

 VertexDataSourceAdapter (const shared_ptr< VertexDataSource< MeshType, T >> &vertexDataSource, const ParticleIdxVertexPropertyManager< MeshType > &vertexToParticleIdxManager, const shared_ptr< walberla::mesa_pd::data::ParticleStorage > &ps)
 
virtual void getData (const MeshType &mesh, const Vertices &vertices, std::vector< T > &data)
 
virtual uint_t numComponents ()
 

Protected Attributes

shared_ptr< VertexDataSource< MeshType, T > > vertexDataSource_
 
const ParticleIdxVertexPropertyManager< MeshType > & vertexToParticleIdxManager_
 
const shared_ptr< walberla::mesa_pd::data::ParticleStorageps_
 

Member Typedef Documentation

◆ Vertices

Constructor & Destructor Documentation

◆ VertexDataSourceAdapter()

template<typename MeshType , typename T >
walberla::mesa_pd::internal::VertexDataSourceAdapter< MeshType, T >::VertexDataSourceAdapter ( const shared_ptr< VertexDataSource< MeshType, T >> &  vertexDataSource,
const ParticleIdxVertexPropertyManager< MeshType > &  vertexToParticleIdxManager,
const shared_ptr< walberla::mesa_pd::data::ParticleStorage > &  ps 
)
inline

Member Function Documentation

◆ getData()

template<typename MeshType , typename T >
virtual void walberla::mesa_pd::internal::VertexDataSourceAdapter< MeshType, T >::getData ( const MeshType mesh,
const Vertices vertices,
std::vector< T > &  data 
)
inlinevirtual

◆ numComponents()

template<typename MeshType , typename T >
virtual uint_t walberla::mesa_pd::internal::VertexDataSourceAdapter< MeshType, T >::numComponents ( )
inlinevirtual

Member Data Documentation

◆ ps_

template<typename MeshType , typename T >
const shared_ptr<walberla::mesa_pd::data::ParticleStorage> walberla::mesa_pd::internal::VertexDataSourceAdapter< MeshType, T >::ps_
protected

◆ vertexDataSource_

template<typename MeshType , typename T >
shared_ptr<VertexDataSource<MeshType, T> > walberla::mesa_pd::internal::VertexDataSourceAdapter< MeshType, T >::vertexDataSource_
protected

◆ vertexToParticleIdxManager_

template<typename MeshType , typename T >
const ParticleIdxVertexPropertyManager<MeshType>& walberla::mesa_pd::internal::VertexDataSourceAdapter< MeshType, T >::vertexToParticleIdxManager_
protected

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