Wildmeshing Toolkit
wmtk::components::multimesh::MeshCollection Class Reference

#include <MeshCollection.hpp>

Public Member Functions

NamedMultiMeshadd_mesh (NamedMultiMesh &&o)
 
template<typename... Args>
NamedMultiMeshemplace_mesh (Args &&... args)
 
const NamedMultiMeshget_named_multimesh (const std::string_view &path) const
 
const Meshget_mesh (const std::string_view &path) const
 
bool has_mesh (const std::string_view &path) const
 
bool has_named_multimesh (const std::string_view &path) const
 
NamedMultiMeshget_named_multimesh (const std::string_view &path)
 
Meshget_mesh (const std::string_view &path)
 
void make_canonical ()
 
std::map< std::string, const Mesh & > all_meshes () const
 

Private Attributes

std::map< std::string_view, std::unique_ptr< NamedMultiMesh > > m_meshes
 

Detailed Description

Definition at line 9 of file MeshCollection.hpp.

Member Function Documentation

◆ add_mesh()

NamedMultiMesh & wmtk::components::multimesh::MeshCollection::add_mesh ( NamedMultiMesh &&  o)

Definition at line 11 of file MeshCollection.cpp.

References m_meshes.

Referenced by emplace_mesh().

Here is the caller graph for this function:

◆ all_meshes()

std::map< std::string, const Mesh & > wmtk::components::multimesh::MeshCollection::all_meshes ( ) const

Definition at line 105 of file MeshCollection.cpp.

References m_meshes.

◆ emplace_mesh()

template<typename... Args>
NamedMultiMesh& wmtk::components::multimesh::MeshCollection::emplace_mesh ( Args &&...  args)
inline

Definition at line 14 of file MeshCollection.hpp.

References add_mesh().

Referenced by TEST_CASE().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_mesh() [1/2]

Mesh & wmtk::components::multimesh::MeshCollection::get_mesh ( const std::string_view &  path)

Definition at line 31 of file MeshCollection.cpp.

References wmtk::components::multimesh::NamedMultiMesh::get_mesh(), and get_named_multimesh().

Here is the call graph for this function:

◆ get_mesh() [2/2]

const Mesh & wmtk::components::multimesh::MeshCollection::get_mesh ( const std::string_view &  path) const

Definition at line 26 of file MeshCollection.cpp.

References wmtk::components::multimesh::NamedMultiMesh::get_mesh(), and get_named_multimesh().

Referenced by wmtk::components::multimesh::utils::get_attribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_named_multimesh() [1/2]

NamedMultiMesh & wmtk::components::multimesh::MeshCollection::get_named_multimesh ( const std::string_view &  path)

Definition at line 83 of file MeshCollection.cpp.

References wmtk::logger(), m_meshes, and wmtk::components::multimesh::internal::split_path().

Here is the call graph for this function:

◆ get_named_multimesh() [2/2]

const NamedMultiMesh & wmtk::components::multimesh::MeshCollection::get_named_multimesh ( const std::string_view &  path) const

Definition at line 53 of file MeshCollection.cpp.

References wmtk::logger(), m_meshes, and wmtk::components::multimesh::internal::split_path().

Referenced by get_mesh(), and has_mesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ has_mesh()

bool wmtk::components::multimesh::MeshCollection::has_mesh ( const std::string_view &  path) const

Definition at line 43 of file MeshCollection.cpp.

References get_named_multimesh(), and has_named_multimesh().

Here is the call graph for this function:

◆ has_named_multimesh()

bool wmtk::components::multimesh::MeshCollection::has_named_multimesh ( const std::string_view &  path) const

Definition at line 35 of file MeshCollection.cpp.

References m_meshes, and wmtk::components::multimesh::internal::split_path().

Referenced by has_mesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_canonical()

void wmtk::components::multimesh::MeshCollection::make_canonical ( )

Definition at line 117 of file MeshCollection.cpp.

References m_meshes.

Member Data Documentation

◆ m_meshes

std::map<std::string_view, std::unique_ptr<NamedMultiMesh> > wmtk::components::multimesh::MeshCollection::m_meshes
private

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