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();
DataStructure keeping track of dependencies.
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 ...
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.
DepSet::iterator depBegin()
Returns an iterator to the beginning of all the dependees in the sheet.
void addDependencies(RCP< DependencySheet > otherSheet)
Adds a dependencies from another she to this sheet.
DependencySheet()
Constructs an empty DependencySheet with the name DEP_ANONYMOUS.
DepSet::iterator depEnd()
std::set< RCP< const ParameterEntry >, RCPConstComp > ConstParameterEntryList
A list of dependents.
Smart reference counting pointer class for automatic garbage collection.
RCP< T > rcpFromRef(T &r)
Return a non-owning weak RCP object from a raw object reference for a defined type.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...