10 #ifndef TEUCHOS_DEPENDENCYSHEET_HPP_
11 #define TEUCHOS_DEPENDENCYSHEET_HPP_
111 return (dependenciesMap_.find(dependee) != dependenciesMap_.end()
112 && dependenciesMap_.find(dependee)->second.size() > 0);
137 return dependencies_.empty();
150 return dependencies_.begin();
159 return dependencies_.end();
166 return dependencies_.begin();
172 inline DepSet::const_iterator
depEnd()
const{
173 return dependencies_.end();
183 inline DepSet::size_type
size(){
184 return dependencies_.size();
195 void printDeps(std::ostream& out)
const;
201 static const std::string NAME_ATTRIBUTE_NAME=
"name";
202 return NAME_ATTRIBUTE_NAME;
236 #endif //TEUCHOS_DEPENDENCYSHEET_HPP_
A Dependency sheet keeps track of dependencies between various ParameterEntries.
DepSet dependencies_
A simple set of all the dependencies in this Dependency Sheet.
DepSet::const_iterator depBegin() const
Returns a const iterator to the beginning of all the dependees in the sheet.
DepSet::iterator depBegin()
Returns an iterator to the beginning of all the dependees in the sheet.
std::string name_
The Name of the dependency sheet.
Struct for comparing two RCPs. Simply compares the raw pointers contained within the RCPs...
map< RCP< const ParameterEntry >, DepSet, RCPConstComp > DepMap
Convience typedef. Maps dependee parameter entries to a set of their corresponding dependencies...
std::set< RCP< Dependency >, RCPComp > DepSet
Convience typedef representing a set of dependencies.
Struct for comparing two RCPs. Simply compares the raw pointers contained within the RCPs...
bool hasDependents(RCP< const ParameterEntry > dependee) const
Determines whether or not a parameter is depended upon by any another parameters or parameter lists...
const std::string & getName() const
Gets the name of the dependency sheet.
DepSet::size_type size()
Returns the number of Dependencies in this DependencySheet.
bool empty() const
Determines whether or not this dependency sheet has any dependencies.
DepSet::const_iterator depEnd() const
Returns a const iterator to the end of all of the dependees in the sheet.
#define TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
DepSet::iterator depEnd()
void setName(const std::string newName)
sets the name of the dependency sheet
DepMap dependenciesMap_
A map containing all the depenecies for a list.
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, otherwise the std::map is injected into the Teuchos namespace.
static const std::string & getNameAttributeName()
When serializing to XML, this string should be used as the name of the name attribute.