Flow123d  master-27b3058
Classes | Public Types | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ReaderCache Class Reference

#include <reader_cache.hh>

Collaboration diagram for ReaderCache:
Collaboration graph
[legend]

Classes

struct  ReaderData
 

Public Types

typedef std::map< string, ReaderDataReaderTable
 

Static Public Member Functions

static std::shared_ptr< BaseMeshReaderget_reader (const FilePath &file_path)
 
static std::shared_ptr< Meshget_mesh (const FilePath &file_path)
 
static void get_element_ids (const FilePath &file_path, const Mesh &mesh)
 
static std::shared_ptr< EquivalentMeshMapeqivalent_mesh_map (const FilePath &file_path, Mesh *computational_mesh)
 
static std::shared_ptr< EquivalentMeshMapidentic_mesh_map (const FilePath &file_path, Mesh *computational_mesh)
 

Private Member Functions

 ReaderCache ()
 Constructor. More...
 

Static Private Member Functions

static ReaderCacheinstance ()
 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...
 

Detailed Description

Auxiliary class to map filepaths to instances of readers.

Definition at line 37 of file reader_cache.hh.

Member Typedef Documentation

◆ ReaderTable

Definition at line 48 of file reader_cache.hh.

Constructor & Destructor Documentation

◆ ReaderCache()

ReaderCache::ReaderCache ( )
inlineprivate

Constructor.

Definition at line 82 of file reader_cache.hh.

Here is the caller graph for this function:

Member Function Documentation

◆ eqivalent_mesh_map()

std::shared_ptr< EquivalentMeshMap > ReaderCache::eqivalent_mesh_map ( const FilePath file_path,
Mesh computational_mesh 
)
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.

Here is the caller graph for this function:

◆ get_element_ids()

void ReaderCache::get_element_ids ( const FilePath file_path,
const Mesh mesh 
)
static

Fill element id vectors of reader without checking compatibility.

Definition at line 74 of file reader_cache.cc.

◆ get_mesh()

std::shared_ptr< Mesh > ReaderCache::get_mesh ( const FilePath file_path)
static

Returns mesh of given FilePath.

Definition at line 41 of file reader_cache.cc.

Here is the caller graph for this function:

◆ get_reader()

std::shared_ptr< BaseMeshReader > ReaderCache::get_reader ( const FilePath file_path)
static

Returns reader of given FilePath.

Definition at line 37 of file reader_cache.cc.

Here is the caller graph for this function:

◆ get_reader_data()

ReaderCache::ReaderTable::iterator ReaderCache::get_reader_data ( const FilePath file_path)
staticprivate

Returns instance of given FilePath. If reader doesn't exist, creates new ReaderData object.

Definition at line 54 of file reader_cache.cc.

Here is the caller graph for this function:

◆ identic_mesh_map()

std::shared_ptr< EquivalentMeshMap > ReaderCache::identic_mesh_map ( const FilePath file_path,
Mesh computational_mesh 
)
static

Definition at line 94 of file reader_cache.cc.

Here is the caller graph for this function:

◆ instance()

ReaderCache * ReaderCache::instance ( )
staticprivate

Returns singleton instance.

Definition at line 32 of file reader_cache.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ reader_table_

ReaderTable ReaderCache::reader_table_
private

Table of readers.

Definition at line 88 of file reader_cache.hh.


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