MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / begin

Method begin

include/reactphysics3d/containers/Set.h:635–655  ·  view source on GitHub ↗

Return a begin iterator

Source from the content-addressed store, hash-verified

633
634 /// Return a begin iterator
635 Iterator begin() const {
636
637 // If the set is empty
638 if (size() == 0) {
639
640 // Return an iterator to the end
641 return end();
642 }
643
644 // Find the first used entry
645 uint64 bucketIndex = 0;
646 while (mBuckets[bucketIndex] == INVALID_INDEX) {
647
648 bucketIndex++;
649 }
650
651 assert(bucketIndex < mHashSize);
652 assert(mBuckets[bucketIndex] != INVALID_INDEX);
653
654 return Iterator(this, bucketIndex, mBuckets[bucketIndex]);
655 }
656
657 /// Return a end iterator
658 Iterator end() const {

Callers

nothing calls this directly

Calls 1

IteratorClass · 0.70

Tested by

no test coverage detected