|
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... | |
| IndexFile (const IndexName &identifier, const vector< string > &suffixes) | |
| Create a new IndexFile with a unique identifier, which may use one of several suffixes. More... | |
| const IndexName & | get_identifier () const |
| Get the globally unique identifier for this index. More... | |
| const vector< string > & | get_suffixes () const |
| Returns the suffixes that can 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... | |
| void | add_scope (const string &key, const string &value) |
| const map< string, string > & | get_scopes () const |
| Get all scopes qualifying the index (such as a sample name). 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 vector< string > | suffixes |
| vector< string > | filenames |
| map< string, string > | scopes |
| 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.
| vg::IndexFile::IndexFile | ( | const IndexName & | identifier, |
| const vector< string > & | suffixes | ||
| ) |
Create a new IndexFile with a unique identifier, which may use one of several suffixes.
| void vg::IndexFile::add_scope | ( | const string & | key, |
| const string & | value | ||
| ) |
Add a new scope to qualify the files in the index, if the scope is not already on the index.
Should only be used on files that are actually filled in already; scopes for files that don't exist yet are the responsibility of the IndexingPlan.
| 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 map< string, string > & vg::IndexFile::get_scopes | ( | ) | const |
Get all scopes qualifying the index (such as a sample name).
| const vector< string > & vg::IndexFile::get_suffixes | ( | ) | const |
Returns the suffixes that can 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 |
|
private |
1.9.1