IterMove

Table of Contents

IterMove

Description

Move current reading position of Iterator.

Usage example (Cross-references)

    ///
    /// TAGS: StrIter, Pos, Iter
    #define StrIterMove(si, n) IterMove((si), (n))
    
    ///
    /// TAGS: Iter, Memory, Position
    ///
    #define IterNext(mi) IterMove(mi, 1)
    
    ///
    /// TAGS: Iter, Memory, Position
    ///
    #define IterPrev(mi) IterMove(mi, -1)
    
    #endif // MISRA_STD_UTILITY_ITER_MOVE_H

Share :

Related Posts

NULL_ITER

NULL_ITER Description Type specific NULL for given Iter object. Use this instead of NULL when comparing for nullity of Iter objects of same type. Null value for Iter objects

Read More

ITER_DATA_TYPE

ITER_DATA_TYPE Description Get data type of Iter elements

Read More

Iter

Iter Description Memory iterators are there to allow reading regions of memory by remembering current read position and the size limit. With proper checking we can guarantee that we can never overflow or underflow when reading a memory region This also means that Iter objects are created for use with only one reading operation, and one object in their lifetime. The designed API does not allow modifications to the data Iter is iterating over FIELDS: - data : Pointer to memory we’re iterating over - length : Number of objects in memory. - pos : Current iterating position. - size : Alignment requirements (if-any), must be at-least 1 - dir : Iteration direction, -1 or 1

Read More