Flow123d  intersections_paper-476-gbe68821
Classes | Public Types | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ReaderInstance Class Reference

#include <reader_instances.hh>

Collaboration diagram for ReaderInstance:
Collaboration graph
[legend]

Classes

struct  ReaderData
 

Public Types

typedef std::map< string, ReaderDataReaderTable
 

Static Public Member Functions

static std::shared_ptr< GmshMeshReaderget_reader (const FilePath &file_path)
 
static std::shared_ptr< Meshget_mesh (const FilePath &file_path)
 

Private Member Functions

 ReaderInstance ()
 Constructor. More...
 

Static Private Member Functions

static ReaderInstanceinstance ()
 Returns singleton instance. More...
 
static ReaderData get_instance (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 32 of file reader_instances.hh.

Member Typedef Documentation

Definition at line 39 of file reader_instances.hh.

Constructor & Destructor Documentation

ReaderInstance::ReaderInstance ( )
inlineprivate

Constructor.

Definition at line 56 of file reader_instances.hh.

Here is the caller graph for this function:

Member Function Documentation

ReaderInstance::ReaderData ReaderInstance::get_instance ( const FilePath file_path)
staticprivate

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

Definition at line 35 of file reader_instances.cc.

Here is the caller graph for this function:

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

Returns mesh of given FilePath.

Definition at line 31 of file reader_instances.cc.

Here is the caller graph for this function:

std::shared_ptr< GmshMeshReader > ReaderInstance::get_reader ( const FilePath file_path)
static

Returns reader of given FilePath.

Definition at line 27 of file reader_instances.cc.

Here is the caller graph for this function:

ReaderInstance * ReaderInstance::instance ( )
staticprivate

Returns singleton instance.

Definition at line 22 of file reader_instances.cc.

Here is the caller graph for this function:

Member Data Documentation

ReaderTable ReaderInstance::reader_table_
private

Table of readers.

Definition at line 62 of file reader_instances.hh.


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