class Gambit::Printers::SQLiteReader
[No description available]
Inherits from Gambit::Printers::BaseReader, Gambit::Printers::SQLiteBase, Gambit::Printers::BaseBaseReader
Public Functions
Name | |
---|---|
virtual void | reset() Base class virtual interface functions. |
virtual ulong | get_dataset_length() Get length of input dataset. |
virtual PPIDpair | get_next_point() Get next rank/ptID pair in data file. |
virtual PPIDpair | get_current_point() Get current rank/ptID pair in data file. |
virtual ulong | get_current_index() |
virtual bool | eoi() Check if ‘current point’ is past the end of the datasets (and thus invalid!) |
virtual std::size_t | get_type(const std::string & label) |
virtual std::set< std::string > | get_all_labels() Get labels of all datasets in the linked group. |
SQLiteReader(const Options & options) | |
~SQLiteReader() | |
template <typename T > bool | _retrieve(T & , const std::string & label, const uint, const ulong) Retrieve functions. |
Additional inherited members
Public Functions inherited from Gambit::Printers::BaseReader
Name | |
---|---|
BaseReader() | |
virtual | ~BaseReader() Destructor. |
template <typename T > bool | retrieve(T & out, const std::string & label) Reimplement overload for ‘retrieve’ that uses the current point as the input for rank/pointID. |
template <typename T > bool | retrieve(T & out, const std::string & label, const uint rank, const ulong pointID) |
virtual bool | retrieve_and_print(const std::string & in_label, const std::string & out_label, BaseBasePrinter & printer, const uint rank, const ulong pointID) Retrieve and directly print data to new output. |
Public Functions inherited from Gambit::Printers::SQLiteBase
Name | |
---|---|
SQLiteBase() | |
~SQLiteBase() |
Protected Functions inherited from Gambit::Printers::SQLiteBase
Name | |
---|---|
std::string | get_database_file() |
std::string | get_table_name() |
std::string | get_metadata_table_name() |
void | set_table_name(const std::string & table_name) |
void | set_metadata_table_name(const std::string & metadata_table_name) |
void | require_output_ready() |
void | open_db(const std::string & path, char access =‘r’) |
void | close_db() |
sqlite3 * | get_db() |
void | cout_row(sqlite3_stmt * tmp_stmt) |
void | check_table_exists() |
void | set_table_exists() |
std::map< std::string, std::string, Utils::ci_less > | get_column_info() |
int | submit_sql(const std::string & local_info, const std::string & sqlstr, bool allow_fail =false, sql_callback_fptr callback =NULL, void * data =NULL, char ** zErrMsg =NULL) |
Public Functions inherited from Gambit::Printers::BaseBaseReader
Name | |
---|---|
virtual | ~BaseBaseReader() |
template <typename T > bool | retrieve(T & out, const std::string & label, const uint rank, const ulong pointID) |
template <typename T > bool | retrieve(T & out, const std::string & label) Overload for ‘retrieve’ that uses the current point as the input for rank/pointID. |
bool | retrieve_and_print(const std::string & label, BaseBasePrinter & printer, const uint rank, const ulong pointID) Retrieve and directly print data to new output. |
virtual bool | retrieve_and_print(const std::string & in_label, const std::string & out_label, BaseBasePrinter & printer, const uint rank, const ulong pointID) =0 |
bool | retrieve_and_print(const std::string & label, BaseBasePrinter & printer) Overload for ‘retrieve_and_print’ that uses the current point as the input for rank/pointID. |
bool | retrieve_and_print(const std::string & in_label, const std::string & out_label, BaseBasePrinter & printer) As above, but allows for different input/output labels. |
Public Functions Documentation
function reset
virtual void reset()
Base class virtual interface functions.
Reimplements: Gambit::Printers::BaseBaseReader::reset
Reset ‘read head’ position to first entry
function get_dataset_length
virtual ulong get_dataset_length()
Get length of input dataset.
Reimplements: Gambit::Printers::BaseBaseReader::get_dataset_length
function get_next_point
virtual PPIDpair get_next_point()
Get next rank/ptID pair in data file.
Reimplements: Gambit::Printers::BaseBaseReader::get_next_point
function get_current_point
virtual PPIDpair get_current_point()
Get current rank/ptID pair in data file.
Reimplements: Gambit::Printers::BaseBaseReader::get_current_point
function get_current_index
virtual ulong get_current_index()
Reimplements: Gambit::Printers::BaseBaseReader::get_current_index
function eoi
virtual bool eoi()
Check if ‘current point’ is past the end of the datasets (and thus invalid!)
Reimplements: Gambit::Printers::BaseBaseReader::eoi
function get_type
virtual std::size_t get_type(
const std::string & label
)
Reimplements: Gambit::Printers::BaseBaseReader::get_type
Get type information for a data entry, i.e. defines the C++ type which this should be retrieved as, not what it is necessarily literally stored as in the output.
function get_all_labels
virtual std::set< std::string > get_all_labels()
Get labels of all datasets in the linked group.
Reimplements: Gambit::Printers::BaseBaseReader::get_all_labels
function SQLiteReader
SQLiteReader(
const Options & options
)
function ~SQLiteReader
~SQLiteReader()
function _retrieve
template <typename T >
inline bool _retrieve(
T & ,
const std::string & label,
const uint,
const ulong
)
Retrieve functions.
Updated on 2024-07-18 at 13:53:32 +0000