17 name_(
"DEP_ANONYMOUS")
27 Dependency::ConstParameterEntryList::iterator it = dependees.begin();
28 it != dependees.end();
31 dependenciesMap_[*it].insert(dependency);
33 dependencies_.insert(dependency);
39 Dependency::ConstParameterEntryList::iterator it = dependees.begin();
40 it != dependees.end();
43 dependenciesMap_[*it].erase(dependency);
45 dependencies_.erase(dependency);
51 if(dependenciesMap_.find(dependee) != dependenciesMap_.end()){
52 return rcpFromRef(dependenciesMap_.find(dependee)->second);
58 out <<
"Dependency Sheet: " << name_ << std::endl << std::endl;
66 DepSet::iterator it = otherSheet->depBegin();
67 it != otherSheet->depEnd();
std::set< RCP< const ParameterEntry >, RCPConstComp > ConstParameterEntryList
A list of dependents.
DepSet::iterator depBegin()
Returns an iterator to the beginning of all the dependees in the sheet.
void printDeps(std::ostream &out) const
Prints out a list of the dependencies in the DependencySheet.
void addDependency(RCP< Dependency > dependency)
Adds a dependency to the sheet.
void removeDependency(RCP< Dependency > dependency)
Removes a particular dependency between two parameters.
DependencySheet()
Constructs an empty DependencySheet with the name DEP_ANONYMOUS.
void addDependencies(RCP< DependencySheet > otherSheet)
Adds a dependencies from another she to this sheet.
DepSet::iterator depEnd()
DataStructure keeping track of dependencies.
Smart reference counting pointer class for automatic garbage collection.
RCP< const DepSet > getDependenciesForParameter(RCP< const ParameterEntry > dependee) const
Returns a set of all the dependencies associated with a particular dependee. If no dependencies with ...