Class ChildRange¶
Defined in File entity_iterators.h
Class Documentation¶
-
class ChildRange¶
Range wrapper for iterating direct children.
ChildRange provides a range-based for loop compatible wrapper around ChildIterator. Returned by Entity::children().
See also
See also
- Example:
for (auto child : entity.children()) { // Process direct children only }
Public Functions
-
ChildRange(const Entity &entity)¶
Constructs a range for the entity’s direct children.
- Parameters:
entity – The parent entity
-
ChildIterator begin() const¶
Returns an iterator to the first child.
- Returns:
Iterator positioned at the first child, or end() if no children
-
ChildIterator end() const¶
Returns a sentinel iterator marking the end of children.
- Returns:
End iterator