/*virtual*/ void Mapping::accept(ConstVisitor & visitor, bool topdown /*=false*/) const
{
    if(topdown)
    {
        if(! visitor.visit(*this))
        {
            return;
        }
    }
    for(Mapping::const_iterator i = this->begin(); i != this->end(); ++i)
    {
        i->first.accept(visitor);
        i->second.accept(visitor);
    }
    if(! topdown)
    {
        visitor.visit(*this);
    }
}
Exemple #2
0
		virtual void Accept(ConstVisitor& visitor) const { visitor.Visit(m_Element); }
Exemple #3
0
void Library::accept(ConstVisitor &visitor) const
{
  visitor.visit(*this);
}
Exemple #4
0
	virtual void VisitWith( ConstVisitor & visitor ) const 
	{ 
		visitor.Visit( element ); 
	}
Exemple #5
0
void Instance::accept(ConstVisitor &visitor) const
{
  visitor.visit(*this);
}