core/bus_center/lnn/net_ledger/common/src/lnn_map.c
/**
 * Get next iterator API
 *
 * @param : it Iterator see details in type Iterator
 */
Get next iterator API
@param : it Iterator see details in type Iterator
Get next iterator API @param : it Iterator see details in type Iterator
MapIterator *LnnMapNext(MapIterator *it)
{
    MapNode *node = NULL;
    if (it == NULL) {
        return NULL;
    }
    if (LnnMapHasNext(it)) {
        if (it->node != NULL && it->node->next != NULL) {
            it->nodeNum++;
            it->node = it->node->next;
            return it;
        }
        while (it->bucketNum < it->map->bucketSize) {
            node = it->map->nodes[it->bucketNum];
            it->bucketNum++;
            if (node != NULL) {
                it->nodeNum++;
                it->node = node;
                return it;
            }
        }
    }
    return it;
}
MapIterator * LnnMapNext ( MapIterator * it ) { MapNode * node = NULL ; if ( it == NULL ) { return NULL ; } if ( LnnMapHasNext ( it ) ) { if ( it -> node != NULL && it -> node -> next != NULL ) { it -> nodeNum ++ ; it -> node = it -> node -> next ; return it ; } while ( it -> bucketNum < it -> map -> bucketSize ) { node = it -> map -> nodes [ it -> bucketNum ] ; it -> bucketNum ++ ; if ( node != NULL ) { it -> nodeNum ++ ; it -> node = node ; return it ; } } } return it ; }
Get next iterator API
 @param : it Iterator see details in type Iterator
Get next iterator API @param : it Iterator see details in type Iterator