Motr
M0
|
#include <vec.h>
Data Fields | |
const struct m0_vec * | vc_vec |
uint32_t | vc_seg |
m0_bcount_t | vc_offset |
Position within a vector.
m0_vec_cursor is a cursor associated with a m0_vec instance. A cursor can be moved in the forward direction.
A cursor can be in one of the two exclusive states:
invariant is maintained. This is called a "normal" state.
Note that a cursor over an empty vector (one with vec::v_nr == 0) is always in the end of the vector state.
Also note, that according to the normal state invariant, a cursor cannot be positioned in an empty segment (one with zero count). Empty segments are skipped over by all cursor manipulating functions, including constructor.
m0_bcount_t vc_offset |