void DependencySheet::removeDependency(RCP<Dependency> dependency){ Dependency::ConstParameterEntryList dependees = dependency->getDependees(); for( Dependency::ConstParameterEntryList::iterator it = dependees.begin(); it != dependees.end(); ++it) { dependenciesMap_[*it].erase(dependency); } dependencies_.erase(dependency); }
Dependency::ConstParameterEntryList BoolLogicCondition::getAllParameters() const{ Dependency::ConstParameterEntryList toReturn; Dependency::ConstParameterEntryList currentList; for( ConstConditionList::const_iterator it = conditions_.begin(); it != conditions_.end(); ++it) { currentList = (*it)->getAllParameters(); toReturn.insert(currentList.begin(), currentList.end()); } return toReturn; }