void SpritesPanelImpl::traverseSprites(const std::vector<d2d::ISprite*>& sprites, IVisitor& visitor, TraverseType type/* = e_allExisting*/, bool order/* = true*/) { if (order) { std::vector<ISprite*>::const_iterator itr = sprites.begin(); for ( ; itr != sprites.end(); ++itr) { bool hasNext; visitor.visit(*itr, hasNext); if (!hasNext) break; } } else { std::vector<ISprite*>::const_reverse_iterator itr = sprites.rbegin(); for ( ; itr != sprites.rend(); ++itr) { bool hasNext; visitor.visit(*itr, hasNext); if (!hasNext) break; } } }
enum CXChildVisitResult visitorFunction( CXCursor cursor, CXCursor parent, CXClientData clientData) { IVisitor* visitor = (IVisitor*)clientData; return visitor->visit(cursor, parent); }
void LayersMgrWidget::traverseEditableLayers(IVisitor& visitor) { if (m_editedLayer) { bool hasNext; visitor.visit(m_editedLayer, hasNext); } }
void CaseBase::accept(IVisitor& visitor) { visitor.visit(*this); for (ActionStore::iterator I = mActions.begin(); I != mActions.end(); ++I) { (*I)->accept(visitor); } for (MatchBaseStore::iterator I = mMatches.begin(); I != mMatches.end(); ++I) { (*I)->accept(visitor); } }
void LayersMgrWidget::traverseAllLayers(IVisitor& visitor) { std::vector<LayerWidget*>::const_iterator itr = m_layers.begin(); for ( ; itr != m_layers.end(); ++itr) { bool hasNext; visitor.visit((*itr)->getLayer(), hasNext); if (!hasNext) break; } }
void AstVariable::accept(IVisitor &v) { v.visit(*this); }
void AstDictValue::accept(IVisitor &v) { v.visit(*this); }
void AstArrayValue::accept(IVisitor &v) { v.visit(*this); }
void AstArrayAssign::accept(IVisitor &v) { v.visit(*this); }
void AstWhile::accept(IVisitor &v) { v.visit(*this); }
void AstNewArray::accept(IVisitor &v) { v.visit(*this); }
void AstAssignmentExpression::accept(IVisitor &v) { v.visit(*this); }
void AstBinaryExpression::accept(IVisitor &v) { v.visit(*this); }
void AndElement::accept ( IVisitor& _visitor ) const { _visitor.visit( *this ); } // AndElement::accept
void PngImage::accept(IVisitor<IImage>& visitor) { visitor.visit(*this); }
void AstNewDict::accept(IVisitor &v) { v.visit(*this); }
void AstFunctionCall::accept(IVisitor &v) { v.visit(*this); }
void AstGlobal::accept(IVisitor &v) { v.visit(*this); }
void AstList::accept(IVisitor &v) { v.visit(*this); }
void AstReturn::accept(IVisitor &v) { v.visit(*this); }
void Action::accept(IVisitor& visitor) { visitor.visit(*this); }
void AstDictAssign::accept(IVisitor &v) { v.visit(*this); }
void Ingredient::accept(IVisitor& visitor) { visitor.visit(this); }
void AstConstantDecl::accept(IVisitor &v) { v.visit(*this); }
void AstFor::accept(IVisitor &v) { v.visit(*this); }
void accept( IVisitor & visitor ) override { visitor.visit( * this ); }