예제 #1
0
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;
		}
	}
}
예제 #2
0
enum CXChildVisitResult visitorFunction(
        CXCursor cursor,
        CXCursor parent,
        CXClientData clientData)
{
    IVisitor* visitor = (IVisitor*)clientData;
    return visitor->visit(cursor, parent);
}
예제 #3
0
void LayersMgrWidget::traverseEditableLayers(IVisitor& visitor)
{
	if (m_editedLayer)
	{
		bool hasNext;
		visitor.visit(m_editedLayer, hasNext);
	}
}
예제 #4
0
파일: CaseBase.cpp 프로젝트: Arsakes/ember
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);
	}
}
예제 #5
0
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;
	}
}
예제 #6
0
void AstVariable::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #7
0
void AstDictValue::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #8
0
void AstArrayValue::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #9
0
void AstArrayAssign::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #10
0
void AstWhile::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #11
0
void AstNewArray::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #12
0
void AstAssignmentExpression::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #13
0
void AstBinaryExpression::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #14
0
void
AndElement::accept ( IVisitor& _visitor ) const
{
	_visitor.visit( *this );

} // AndElement::accept
예제 #15
0
void PngImage::accept(IVisitor<IImage>& visitor) {
	visitor.visit(*this);
}
예제 #16
0
void AstNewDict::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #17
0
void AstFunctionCall::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #18
0
void AstGlobal::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #19
0
void AstList::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #20
0
void AstReturn::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #21
0
void Action::accept(IVisitor& visitor)
{
	visitor.visit(*this);
}
예제 #22
0
void AstDictAssign::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #23
0
void Ingredient::accept(IVisitor& visitor)
{
    visitor.visit(this);
}
예제 #24
0
void AstConstantDecl::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #25
0
void AstFor::accept(IVisitor &v)
{
	v.visit(*this);
}
예제 #26
0
파일: visitor.cpp 프로젝트: wo3kie/cxxDojo
 void accept( IVisitor & visitor ) override
 {
     visitor.visit( * this );
 }