51 name_(
"DEP_ANONYMOUS")
61 Dependency::ConstParameterEntryList::iterator it = dependees.begin();
62 it != dependees.end();
65 dependenciesMap_[*it].insert(dependency);
67 dependencies_.insert(dependency);
73 Dependency::ConstParameterEntryList::iterator it = dependees.begin();
74 it != dependees.end();
77 dependenciesMap_[*it].erase(dependency);
79 dependencies_.erase(dependency);
85 if(dependenciesMap_.find(dependee) != dependenciesMap_.end()){
86 return rcpFromRef(dependenciesMap_.find(dependee)->second);
92 out <<
"Dependency Sheet: " << name_ << std::endl << std::endl;
100 DepSet::iterator it = otherSheet->depBegin();
101 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 ...