An interface that transforms pairs of name and position keys into record numbers.
More...
|
|
| File_index (std::vector< std::string >) |
| |
|
bool | bianary (void) const |
| |
|
id1_off_t | get_offset (const std::string &, const id1_t &) const |
| | returns the number of rows until a row with id0, id1.
|
| |
|
id1_t | get_abs_pos (const std::string &, const id1_t &) const |
| | returns the record number corresponding to id0, id1.
|
| |
|
id1_t | get_abs_pos (const id0_t &, const id1_t &) const |
| | returns the record number corresponding to id0, id1.
|
| |
|
id0_t | get_id0 (const std::string &) const |
| | returns the id0 corresponding to string.
|
| |
|
id0_t | get_id0 (const id1_t &) const |
| | returns the id0 corresponding to rowid.
|
| |
|
id1_t | get_id1 (const id1_t &) const |
| | returns the id1 corresponding rowid.
|
| |
|
std::string | get_string (const id0_t &) const |
| | returns the string corresponding to id0.
|
| |
|
void | set_string (const id0_t &, const std::string &) |
| | sets the string corresponding to id0.
|
| |
|
void | set_size (const std::string &, const id1_t &) |
| | set the number of rows (bp) in the scaffold with string id id0.
|
| |
|
void | set_size (const id0_t &, const id1_t &) |
| | set the number of rows (bp) in the scaffold with numeric id id0.
|
| |
|
void | set_last_size (const id1_t &) |
| | set the number of rows in the most recently read scaffold.
|
| |
|
void | set_next_size (const id1_t &) |
| | set the number of rows in the next scaffold to be read.
|
| |
|
const std::vector< std::string > | get_names (void) const |
| | get a vector containing the name of each scaffold.
|
| |
|
size_t | get_names_size (void) const |
| | get the length of the vector containing the name of each scaffold.
|
| |
|
const std::vector< id1_t > | get_sizes (void) const |
| | get a vector containing the sizes of each scaffold.
|
| |
|
id1_t | get_size (const id0_t &) const |
| | get the size of scaffold blarg.
|
| |
|
id1_t | get_size (const std::string &) const |
| | get the size of scaffold blarg.
|
| |
|
id1_t | get_cumulative_size (const id0_t &) const |
| | get the sum of all size less than or equal to id0.
|
| |
|
id1_t | get_cumulative_size (const std::string &) const |
| | get the sum of all size less than or equal to id0.
|
| |
|
id1_t | get_reference_size (void) const |
| | get the sum of all size.
|
| |
|
id1_t | get_last_size (void) |
| | get the size of the last scaffold which has been read from. returns map_file::noid on error.
|
| |
|
id1_t | get_next_size (void) |
| | get the size of the next scaffold to be read. returns map_file::noid on error.
|
| |
|
int | read_index (std::istream &) |
| | read in a File_index (strictly text mode).
|
| |
|
std::istream & | from_sam_header (std::istream &) |
| | read in a file index from a sam header.
|
| |
|
int | add_id (const std::string &, const id1_t &) |
| | add an new id at the end of the index.
|
| |
|
int | write_index (std::ostream &) |
| | write out a File_index
|
| |
|
File_index & | operator= (const File_index &) |
| | not implemented. Do not use.
|
| |
|
bool | is_open (void) const |
| |
|
std::string | header (void) const |
| |
|
size_t | size (void) const |
| | The size of the class in bytes.
|
| |
|
void | write (std::ostream &) const |
| | use the << operator to write File_index.
|
| |
|
void | read (std::istream &) |
| | use the >> operator to read File_index.
|
| |
|
const std::string | get_file_name () const |
| |
|
const std::string | get_table_name () const |
| |
|
const bool | get_binary () const |
| |
|
const std::string | sql_header (void) const |
| | returns the string needed to create an SQL table.
|
| |
|
const std::string | sql_column_names (void) const |
| | returns the column names (SQL).
|
| |
|
const std::string | sql_values (void) const |
| | returns the column values (SQL).
|
| |
|
void | sql_read (std::istream &) override |
| | binds data to sqlite3_stmt.
|
| |
|
void | read_binary (std::istream &str) |
| |
|
void | write_binary (std::ostream &str) const |
| |
|
| Data (std::vector< std::string > &) |
| |
|
virtual const bool | indexed () const |
| |
An interface that transforms pairs of name and position keys into record numbers.