|
SERiF 0.0.1a
3+1D Stellar Structure and Evolution
|
Handles the input/output operations for EOS tables. More...
#include <EOSio.h>
Public Member Functions | |
| EOSio (const std::string &filename, EOSFormat format=EOSFormat::HELM) | |
| Constructs an EosIO object with the given filename. | |
| EOSio (const EOSio &other) | |
| Explicit copy constructor. | |
| ~EOSio ()=default | |
| Default destructor. | |
| std::string | getFormatName () const |
| Gets the format name (as a string) of the EOS table. | |
| EOSFormat | getFormat () const |
| EOSTable & | getTable () |
| Gets the EOS table. | |
| std::string | getFilename () const |
| bool | isLoaded () const |
Private Member Functions | |
| void | load () |
| Loads the EOS table from the file. | |
| void | loadHelm () |
| Loads the HELM format EOS table. | |
Private Attributes | |
| std::string | m_filename |
| The filename of the EOS table. | |
| bool | m_loaded = false |
| Flag indicating if the table is loaded. | |
| EOSFormat | m_format |
| EOSTable | m_table |
| The EOS table data. | |
Handles the input/output operations for EOS tables.
The EosIO class is responsible for loading and managing EOS tables from files. It supports different formats, currently only HELM format.
Example usage:
|
explicit |
| serif::eos::EOSio::EOSio | ( | const EOSio & | other | ) |
|
default |
Default destructor.
|
inlinenodiscard |
|
nodiscard |
|
nodiscard |
|
private |
|
private |
|
private |
|
private |
|
private |