Flow123d  release_3.0.0-1166-g21aa698
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 bool check_compatible_mesh (const FilePath &file_path, Mesh &mesh)
 
static void get_element_ids (const FilePath &file_path, const Mesh &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 35 of file reader_cache.hh.

Member Typedef Documentation

Definition at line 42 of file reader_cache.hh.

Constructor & Destructor Documentation

ReaderCache::ReaderCache ( )
inlineprivate

Constructor.

Definition at line 69 of file reader_cache.hh.

Here is the caller graph for this function:

Member Function Documentation

bool ReaderCache::check_compatible_mesh ( const FilePath file_path,
Mesh mesh 
)
static

Check if nodes and elements of reader mesh are compatible with mesh and fill element id vectors of reader.

Definition at line 73 of file reader_cache.cc.

Here is the caller graph for this function:

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 80 of file reader_cache.cc.

Here is the caller graph for this function:

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

Returns mesh of given FilePath.

Definition at line 40 of file reader_cache.cc.

Here is the caller graph for this function:

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

Returns reader of given FilePath.

Definition at line 36 of file reader_cache.cc.

Here is the caller graph for this function:

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 53 of file reader_cache.cc.

Here is the caller graph for this function:

ReaderCache * ReaderCache::instance ( )
staticprivate

Returns singleton instance.

Definition at line 31 of file reader_cache.cc.

Here is the caller graph for this function:

Member Data Documentation

ReaderTable ReaderCache::reader_table_
private

Table of readers.

Definition at line 75 of file reader_cache.hh.


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