#include <segdb.hh>
Public Member Functions | |
| qbase (seg_index N) | |
| Contruct a qbase. | |
| ~qbase (void) | |
| Destructor. | |
| seg_index | first (void) const |
| Get first entry index. | |
| void | insert (seg_index iseg, seg_index ib4, linkage &l) |
| Insert an entry. | |
| void | insert_int (seg_index iseg, seg_index ib4, linkage &l) |
| Insert an entry. | |
| seg_index | last (void) const |
| Get last entry index. | |
| seg_index | next (seg_index iseg, const linkage &l) const |
| Get next entry index. | |
| seg_index | prev (seg_index iseg, const linkage &l) const |
| Get previous entry index. | |
| void | read_lock (void) const |
| Lock for read access. | |
| thread::readwritelock & | ref_mutex (void) const |
| Return reference to the mutex. | |
| void | remove (seg_index iseg, linkage &l) |
| Remove an entry. | |
| void | unlock (void) const |
| Unlock access. | |
| void | write_lock (void) |
| Lock for write access. | |
The queue base class containes first and last pointers to anchor a linked list.
| sends::seg_db::qbase::qbase | ( | seg_index | N | ) | [inline] |
Contruct a qbase.
Construct a queue base using N as the null value.
| N | Null pointer value. |
| sends::seg_db::qbase::~qbase | ( | void | ) | [inline] |
Destructor.
Destroy the queue base.
| seg_db::seg_index sends::seg_db::qbase::first | ( | void | ) | const [inline] |
Get first entry index.
Get the index of the first entry in the list.
| seg_db::seg_index sends::seg_db::qbase::last | ( | void | ) | const [inline] |
Get last entry index.
Get the index of the last entry in the list.
| seg_db::seg_index sends::seg_db::qbase::next | ( | seg_index | iseg, | |
| const linkage & | l | |||
| ) | const [inline] |
Get next entry index.
Get the index of the next entry in the list.
| iseg | Index of current segment | |
| l | Linkage vector. |
References sends::seg_db::linkage::end(), and sends::seg_db::linkage::next().
| seg_db::seg_index sends::seg_db::qbase::prev | ( | seg_index | iseg, | |
| const linkage & | l | |||
| ) | const [inline] |
Get previous entry index.
Get the index of the previous entry in the list.
| iseg | Index of current segment | |
| l | Linkage vector. |
References sends::seg_db::linkage::end(), and sends::seg_db::linkage::prev().
| void sends::seg_db::qbase::read_lock | ( | void | ) | const |
Lock for read access.
Lock the segment queue for read access.
| thread::readwritelock & sends::seg_db::qbase::ref_mutex | ( | void | ) | const [inline] |
Return reference to the mutex.
Return a reference to the read/write queue access mutex.
Remove an entry.
Remove the specified entry from the specified list.
| iseg | segment to be removed. | |
| l | Linkage list from which the entry will be removed. |
| void sends::seg_db::qbase::unlock | ( | void | ) | const |
Unlock access.
Unlock the segment queue.
| void sends::seg_db::qbase::write_lock | ( | void | ) |
Lock for write access.
Lock the segment queue for write access.
1.5.5