MCPcopy Create free account
hub / github.com/Kitware/VTK / cbegin

Method cbegin

Common/Core/vtkCollectionRange.h:204–210  ·  view source on GitHub ↗

Note: These return mutable objects because const vtkObject are unusable.

Source from the content-addressed store, hash-verified

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 }; }

Calls 1

InitTraversalMethod · 0.45

Tested by 12

Test_fft_directFunction · 0.36
Test_transposeFunction · 0.36
TestRangeMethod · 0.36
TestTypesMethod · 0.36
TestRangeMethod · 0.36
TestTypesMethod · 0.36
TestTypesMethod · 0.36
TestItersMethod · 0.36
TestItersConstMethod · 0.36
doTestSMPFunction · 0.36
TestTupleRangeAPIFunction · 0.36
TestValueRangeAPIFunction · 0.36