Home | History | Annotate | Download | only in ADT

Lines Matching refs:ChildIterator

158   /// ChildIterator - Visit all children of a node.
159 class ChildIterator {
168 ChildIterator(); // Disable default constructor.
170 ChildIterator(NodeType *F, NodeSubset C) : FirstNode(F), Children(C) {}
173 /// ChildIterator - Copy constructor.
174 ChildIterator(const ChildIterator& other) : FirstNode(other.FirstNode),
178 bool operator==(const ChildIterator &other) const {
182 bool operator!=(const ChildIterator &other) const {
187 ChildIterator& operator++() {
200 ChildIterator operator++(int) {
201 ChildIterator Result(*this);
220 static ChildIterator child_begin(NodeType *Parent) {
221 return ChildIterator(Parent - Parent->first, Parent->second);
225 static ChildIterator child_end(NodeType *Parent) {
226 return ChildIterator(Parent - Parent->first, NodeSubset());
233 typedef typename Graph<N>::ChildIterator ChildIteratorType;