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 Scene::ForEach( IVisitor& _Visitor, Node* _pNode ) { _Visitor.HandleNode( *_pNode ); for ( int ChildIndex=0; ChildIndex < _pNode->m_ChildrenCount; ChildIndex++ ) { Node* pChild = _pNode->m_ppChildren[ChildIndex]; ForEach( _Visitor, pChild ); } }
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 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 CommandTaskResult::Foreach(IVisitor<CommandPointResult>& visitor) const { uint32_t headerIndex = 0; for (auto& header : *m_vector) { auto visit = [&](const CommandState& state) { visitor.OnValue(CommandPointResult(headerIndex, state.index, state.state, state.status)); }; header->ForeachItem(visit); ++headerIndex; } }
void PngImage::accept(IVisitor<IImage>& visitor) { visitor.visit(*this); }
void Ingredient::accept(IVisitor& visitor) { visitor.visit(this); }
virtual void Accept(IVisitor& visitor) const { visitor.Visit(*this); }
void CScriptCameraHint::Accept(IVisitor& visitor) { visitor.Visit(this); }
void Accept(IVisitor& v) const { v.Visit(*this); }
void AstConstantDecl::accept(IVisitor &v) { v.visit(*this); }
void AstVariable::accept(IVisitor &v) { v.visit(*this); }
void Raw::visit(IVisitor& visitor) { visitor.visitRaw(*this); }
void AstArrayValue::accept(IVisitor &v) { v.visit(*this); }
void AstArrayAssign::accept(IVisitor &v) { v.visit(*this); }
void AstNewArray::accept(IVisitor &v) { v.visit(*this); }
void AstWhile::accept(IVisitor &v) { v.visit(*this); }
void AstFor::accept(IVisitor &v) { v.visit(*this); }
void AstNewDict::accept(IVisitor &v) { v.visit(*this); }
void AstDictValue::accept(IVisitor &v) { v.visit(*this); }
void AstFunctionCall::accept(IVisitor &v) { v.visit(*this); }
void AstGlobal::accept(IVisitor &v) { v.visit(*this); }
void CRectangle::Accept(IVisitor & visitor) { visitor.Visit(*this); }
void Action::accept(IVisitor& visitor) { visitor.visit(*this); }
void CScriptSwitch::Accept(IVisitor& visitor) { visitor.Visit(this); }
void AstDictAssign::accept(IVisitor &v) { v.visit(*this); }
void AndElement::accept ( IVisitor& _visitor ) const { _visitor.visit( *this ); } // AndElement::accept
void AstList::accept(IVisitor &v) { v.visit(*this); }