Note: These return mutable objects because const vtkObject are unusable.
| 202 | |
| 203 | // Note: These return mutable objects because const vtkObject are unusable. |
| 204 | const_iterator cbegin() const |
| 205 | { |
| 206 | vtkCollectionSimpleIterator cookie; |
| 207 | this->Collection->InitTraversal(cookie); |
| 208 | // The cookie is a linked list node pointer, vtkCollectionElement: |
| 209 | return const_iterator{ static_cast<vtkCollectionElement*>(cookie) }; |
| 210 | } |
| 211 | |
| 212 | // Note: These return mutable objects because const vtkObjects are unusable. |
| 213 | const_iterator cend() const { return const_iterator{ nullptr }; } |