PLaSK library
Loading...
Searching...
No Matches
plask::RegisterMeshGeneratorReader Struct Reference

Helper which call stores mesh reader when constructed. More...

#include <plask/mesh/mesh.hpp>

Public Types

typedef std::function< shared_ptr< MeshGenerator >(XMLReader &, Manager &)> ReadingFunction
 

Public Member Functions

 RegisterMeshGeneratorReader (const std::string &tag_name, ReadingFunction fun)
 

Static Public Member Functions

static std::map< std::string, ReadingFunction > & getReaders ()
 
static ReadingFunction getReader (const std::string &name)
 

Detailed Description

Helper which call stores mesh reader when constructed.

Each mesh can create one global instance of this class to its reader.

Definition at line 454 of file mesh.hpp.

Member Typedef Documentation

◆ ReadingFunction

Definition at line 455 of file mesh.hpp.

Constructor & Destructor Documentation

◆ RegisterMeshGeneratorReader()

plask::RegisterMeshGeneratorReader::RegisterMeshGeneratorReader ( const std::string &  tag_name,
RegisterMeshGeneratorReader::ReadingFunction  fun 
)

Definition at line 45 of file mesh.cpp.

Member Function Documentation

◆ getReader()

RegisterMeshGeneratorReader::ReadingFunction plask::RegisterMeshGeneratorReader::getReader ( const std::string &  name)
static

Definition at line 49 of file mesh.cpp.

◆ getReaders()

std::map< std::string, RegisterMeshGeneratorReader::ReadingFunction > & plask::RegisterMeshGeneratorReader::getReaders ( )
static

Definition at line 40 of file mesh.cpp.


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