#include <segdb.hh>
Public Member Functions | |
| linkage (seg_index nSegs) | |
| Construct a linkage vector. | |
| seg_index | end (void) const |
| Get the end segment index. | |
| void | insert_before (seg_index inx, seg_index iaft) |
| Insert a segment into the linkage list. | |
| void | insert_after (seg_index inx, seg_index past) |
| Insert a segment into the linkage list. | |
| seg_index | next (seg_index inx) const |
| Get the next segment index. | |
| bool | null (seg_index inx) const |
| test if index is null (equal to end()). | |
| seg_index | prev (seg_index inx) const |
| Get the previous segment index. | |
| void | unlink (seg_index inx) |
| Unlink a segment. | |
Segment linkage data contains a list with a foreward, and a back pointer for each segment. The "null" pointer is assigned to the backward pointer of the first element and foreward pointer of the last element of each list.
| sends::seg_db::linkage::linkage | ( | seg_index | nSegs | ) | [inline] |
| seg_db::seg_index sends::seg_db::linkage::end | ( | void | ) | const [inline] |
Get the end segment index.
Get the end segment index. THis is used as the null pointer.
Referenced by sends::seg_db::qbase::next(), and sends::seg_db::qbase::prev().
| seg_db::seg_index sends::seg_db::linkage::next | ( | seg_index | inx | ) | const [inline] |
| bool sends::seg_db::linkage::null | ( | seg_index | inx | ) | const [inline] |
test if index is null (equal to end()).
Test whether the specified index is null.
| inx | Index to be tested. |
| seg_db::seg_index sends::seg_db::linkage::prev | ( | seg_index | inx | ) | const [inline] |
| void sends::seg_db::linkage::unlink | ( | seg_index | inx | ) | [inline] |
1.5.5