void Item::extractVariables( VariableSet &vs ) const { ItemPtr i = getParent(); if ( i ) i->extractVariables( vs ); for ( auto x = myVariables.begin(); x != myVariables.end(); ++x ) vs.emplace( std::make_pair( x->first, x->second ) ); }