vg
tools for working with variation graphs
|
#include <index_registry.hpp>
Public Member Functions | |
IndexFile (const IndexName &identifier, const string &suffix) | |
Create a new IndexFile with a unique identifier. More... | |
const IndexName & | get_identifier () const |
Get the globally unique identifier for this index. More... | |
const string & | get_suffix () const |
Returns the suffix to be used for this index. More... | |
const vector< string > & | get_filenames () const |
Get the filename(s) that contain this index. More... | |
void | provide (const vector< string > &filenames) |
Identify a serialized file that already contains this index. More... | |
void | assign_constructed (const vector< string > &filenames) |
Assign constructed filenames to this index. More... | |
bool | is_finished () const |
Returns true if the index has already been built or provided. More... | |
bool | was_provided_directly () const |
Returns true if the index was provided through provide method. More... | |
void | reset () |
Discard any constructed or provided indexes. More... | |
Private Attributes | |
IndexName | identifier |
const string | suffix |
vector< string > | filenames |
bool | provided_directly = false |
An object that generically represents a serializable index or input file
vg::IndexFile::IndexFile | ( | const IndexName & | identifier, |
const string & | suffix | ||
) |
Create a new IndexFile with a unique identifier.
void vg::IndexFile::assign_constructed | ( | const vector< string > & | filenames | ) |
Assign constructed filenames to this index.
const vector< string > & vg::IndexFile::get_filenames | ( | ) | const |
Get the filename(s) that contain this index.
const IndexName & vg::IndexFile::get_identifier | ( | ) | const |
Get the globally unique identifier for this index.
const string & vg::IndexFile::get_suffix | ( | ) | const |
Returns the suffix to be used for this index.
bool vg::IndexFile::is_finished | ( | ) | const |
Returns true if the index has already been built or provided.
void vg::IndexFile::provide | ( | const vector< string > & | filenames | ) |
Identify a serialized file that already contains this index.
void vg::IndexFile::reset | ( | ) |
Discard any constructed or provided indexes.
bool vg::IndexFile::was_provided_directly | ( | ) | const |
Returns true if the index was provided through provide method.
|
private |
|
private |
|
private |
|
private |