Flow123d
DF_patch_fe_data_tables-9d4017b
|
#include <reader_cache.hh>
Classes | |
struct | ReaderData |
Public Types | |
typedef std::map< string, ReaderData > | ReaderTable |
Static Public Member Functions | |
static std::shared_ptr< BaseMeshReader > | get_reader (const FilePath &file_path) |
static std::shared_ptr< Mesh > | get_mesh (const FilePath &file_path) |
static void | get_element_ids (const FilePath &file_path, const Mesh &mesh) |
static std::shared_ptr< EquivalentMeshMap > | eqivalent_mesh_map (const FilePath &file_path, Mesh *computational_mesh) |
static std::shared_ptr< EquivalentMeshMap > | identic_mesh_map (const FilePath &file_path, Mesh *computational_mesh) |
Private Member Functions | |
ReaderCache () | |
Constructor. More... | |
Static Private Member Functions | |
static ReaderCache * | instance () |
Returns singleton instance. More... | |
static ReaderTable::iterator | get_reader_data (const FilePath &file_path) |
Returns instance of given FilePath. If reader doesn't exist, creates new ReaderData object. More... | |
Private Attributes | |
ReaderTable | reader_table_ |
Table of readers. More... | |
Auxiliary class to map filepaths to instances of readers.
Definition at line 37 of file reader_cache.hh.
typedef std::map< string, ReaderData > ReaderCache::ReaderTable |
Definition at line 48 of file reader_cache.hh.
|
inlineprivate |
Constructor.
Definition at line 82 of file reader_cache.hh.
|
static |
Returns shared vector mapping elements to target mesh.
Reader and appropriate input data mesh are given by FilePath. If map is not created method check_compatible_mesh of computational_mesh
is called.
Definition at line 118 of file reader_cache.cc.
Fill element id vectors of reader without checking compatibility.
Definition at line 74 of file reader_cache.cc.
Returns mesh of given FilePath.
Definition at line 41 of file reader_cache.cc.
|
static |
Returns reader of given FilePath.
Definition at line 37 of file reader_cache.cc.
|
staticprivate |
Returns instance of given FilePath. If reader doesn't exist, creates new ReaderData object.
Definition at line 54 of file reader_cache.cc.
|
static |
|
staticprivate |
Returns singleton instance.
Definition at line 32 of file reader_cache.cc.
|
private |
Table of readers.
Definition at line 88 of file reader_cache.hh.