Skip to content

Commit

Permalink
Expose dbRecursiveShapeIterator::next(RecursiveShapeReceiver*)
Browse files Browse the repository at this point in the history
This is extremely useful when you want the flexibility of pull-based
iteration, but you also need notifications when entering and
leaving cells.
  • Loading branch information
rocallahan committed Sep 23, 2024
1 parent 2d4f5d8 commit 8bbce50
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/db/db/dbRecursiveShapeIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,15 @@ class DB_PUBLIC RecursiveShapeIterator
next (0);
}

/**
* @brief Increments the iterator with `RecursiveShapeReceiver` customization
*
* This combines the flexibility of pull-based iteration with the
* extra notifications and iteration control provided by
* `RecursiveShapeReceiver`.
*/
void next (RecursiveShapeReceiver *receiver);

/**
* @brief Comparison of iterators - equality
*/
Expand Down Expand Up @@ -881,7 +890,6 @@ class DB_PUBLIC RecursiveShapeIterator
void skip_inst_iter_for_complex_region () const;
void validate (RecursiveShapeReceiver *receiver) const;
void start_shapes () const;
void next (RecursiveShapeReceiver *receiver);
void next_shape (RecursiveShapeReceiver *receiver) const;
void new_inst (RecursiveShapeReceiver *receiver) const;
void new_inst_member (RecursiveShapeReceiver *receiver) const;
Expand Down

0 comments on commit 8bbce50

Please sign in to comment.