/*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
void Library::accept(ConstVisitor &visitor) const
{
  visitor.visit(*this);
}
Exemple #3
0
void Instance::accept(ConstVisitor &visitor) const
{
  visitor.visit(*this);
}