vg
tools for working with variation graphs
Public Member Functions | Private Attributes | List of all members
vg::PinchToVGTranslator Class Reference

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_tblock_to_id
 Map from block or segment pointer to node ID. More...
 
unordered_set< id_tused
 Track assigned numeric names. More...
 
id_t next_unused = 1
 What is the next unused name we can assign? More...
 

Detailed Description

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.

Member Function Documentation

◆ translate()

id_t vg::PinchToVGTranslator::translate ( stPinchSegment *  segment)

Translate from pinch thread segment's block to node ID.

Member Data Documentation

◆ block_to_id

unordered_map<void*, id_t> vg::PinchToVGTranslator::block_to_id
private

Map from block or segment pointer to node ID.

◆ next_unused

id_t vg::PinchToVGTranslator::next_unused = 1
private

What is the next unused name we can assign?

◆ used

unordered_set<id_t> vg::PinchToVGTranslator::used
private

Track assigned numeric names.


The documentation for this class was generated from the following file: