44#ifndef TEUCHOS_DEPENDENCYSHEET_HPP_
45#define TEUCHOS_DEPENDENCYSHEET_HPP_
206 inline DepSet::const_iterator
depEnd()
const{
217 inline DepSet::size_type
size(){
229 void printDeps(std::ostream& out)
const;
235 static const std::string NAME_ATTRIBUTE_NAME=
"name";
236 return NAME_ATTRIBUTE_NAME;
#define TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
DepSet::const_iterator depEnd() const
Returns a const iterator to the end of all of the dependees in the sheet.
bool hasDependents(RCP< const ParameterEntry > dependee) const
Determines whether or not a parameter is depended upon by any another parameters or parameter lists.
void addDependency(RCP< Dependency > dependency)
Adds a dependency to the sheet.
void removeDependency(RCP< Dependency > dependency)
Removes a particular dependency between two parameters.
void setName(const std::string newName)
sets the name of the dependency sheet
DepSet::iterator depBegin()
Returns an iterator to the beginning of all the dependees in the sheet.
DepSet::const_iterator depBegin() const
Returns a const iterator to the beginning of all the dependees in the sheet.
bool empty() const
Determines whether or not this dependency sheet has any dependencies.
std::set< RCP< Dependency >, RCPComp > DepSet
Convience typedef representing a set of dependencies.
void addDependencies(RCP< DependencySheet > otherSheet)
Adds a dependencies from another she to this sheet.
DependencySheet()
Constructs an empty DependencySheet with the name DEP_ANONYMOUS.
DepMap dependenciesMap_
A map containing all the depenecies for a list.
const std::string & getName() const
Gets the name of the dependency sheet.
DepSet dependencies_
A simple set of all the dependencies in this Dependency Sheet.
DepSet::iterator depEnd()
std::string name_
The Name of the dependency sheet.
DepSet::size_type size()
Returns the number of Dependencies in this DependencySheet.
map< RCP< const ParameterEntry >, DepSet, RCPConstComp > DepMap
Convience typedef. Maps dependee parameter entries to a set of their corresponding dependencies.
static const std::string & getNameAttributeName()
When serializing to XML, this string should be used as the name of the name attribute.
Smart reference counting pointer class for automatic garbage collection.
This class creates a basic std::map object for platforms where the std::map is deficient,...
Struct for comparing two RCPs. Simply compares the raw pointers contained within the RCPs.
Struct for comparing two RCPs. Simply compares the raw pointers contained within the RCPs.