コード例 #1
0
ファイル: path_index.cpp プロジェクト: cmarkello/vg
PathIndex::PathIndex(const xg::XG& index, const string& path_name, bool extract_sequence) {
    // Make sure the path is present
    assert(index.path_rank(path_name) != 0);
    
    if (extract_sequence) {
        // Constructor dispatch hack
        *this = PathIndex(index.path(path_name), index);
    } else {
        *this = PathIndex(index.path(path_name));
    }
}
コード例 #2
0
ファイル: pathindex.cpp プロジェクト: adamnovak/vg
PathIndex::PathIndex(VG& vg, const string& path_name, bool extract_sequence) {
    // Make sure the path is present
    assert(vg.paths.has_path(path_name));
    
    if (extract_sequence) {
        // Constructor dispatch hack
        *this = PathIndex(vg.paths.path(path_name), vg);
    } else {
        *this = PathIndex(vg.paths.path(path_name));
    }
}