vg
tools for working with variation graphs
|
Public Member Functions | |
id_t | translate (stPinchSegment *segment) |
Translate from pinch thread segment's block to node ID. More... | |
Private Attributes | |
unordered_map< void *, id_t > | block_to_id |
Map from block or segment pointer to node ID. More... | |
unordered_set< id_t > | used |
Track assigned numeric names. More... | |
id_t | next_unused = 1 |
What is the next unused name we can assign? More... | |
Represents a translation from pinch thread segments' blocks to vg node IDs. Tries to use pinch thread name numbers as IDs for single-thread blocks, and otherwise assigns IDs.
id_t vg::PinchToVGTranslator::translate | ( | stPinchSegment * | segment | ) |
Translate from pinch thread segment's block to node ID.
|
private |
Map from block or segment pointer to node ID.
|
private |
What is the next unused name we can assign?
|
private |
Track assigned numeric names.