Home | History | Annotate | Download | only in ADT

Lines Matching refs:ChildIterator

160   /// ChildIterator - Visit all children of a node.
161 class ChildIterator {
170 ChildIterator(); // Disable default constructor.
172 ChildIterator(NodeType *F, NodeSubset C) : FirstNode(F), Children(C) {}
175 /// ChildIterator - Copy constructor.
176 ChildIterator(const ChildIterator& other) : FirstNode(other.FirstNode),
180 bool operator==(const ChildIterator &other) const {
184 bool operator!=(const ChildIterator &other) const {
189 ChildIterator& operator++() {
202 ChildIterator operator++(int) {
203 ChildIterator Result(*this);
222 static ChildIterator child_begin(NodeType *Parent) {
223 return ChildIterator(Parent - Parent->first, Parent->second);
227 static ChildIterator child_end(NodeType *Parent) {
228 return ChildIterator(Parent - Parent->first, NodeSubset());
235 typedef typename Graph<N>::ChildIterator ChildIteratorType;