|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
A Dependency sheet keeps track of dependencies between various ParameterEntries. More...
#include <Teuchos_DependencySheet.hpp>
Public types | |
| typedef std::set< RCP < Dependency >, RCPComp > | DepSet |
| Convience typedef representing a set of dependencies. | |
| typedef map< RCP< const ParameterEntry >, DepSet, RCPConstComp > | DepMap |
| Convience typedef. Maps dependee parameter entries to a set of their corresponding dependencies. | |
Constructors/Destructor | |
| DependencySheet () | |
| Constructs an empty DependencySheet with the name DEP_ANONYMOUS. | |
| DependencySheet (const std::string &name) | |
| Constructs a DependencySheet. | |
Add/Remove Functions | |
| void | addDependency (RCP< Dependency > dependency) |
| Adds a dependency to the sheet. | |
| void | addDependencies (RCP< DependencySheet > otherSheet) |
| Adds a dependencies from another she to this 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 | |
Attribute/Query Functions | |
| bool | hasDependents (RCP< const ParameterEntry > dependee) const |
| Determines whether or not a parameter is depended upon by any another parameters or parameter lists. | |
| 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 the given dependee have ever been enetered into the sheet then a null reference is returned. | |
| const std::string & | getName () const |
| Gets the name of the dependency sheet. | |
| bool | empty () const |
| Determines whether or not this dependency sheet has any dependencies. | |
Iterator Functions | |
| DepSet::iterator | depBegin () |
| Returns an iterator to the beginning of all the dependees in the sheet. | |
| DepSet::iterator | depEnd () |
| DepSet::const_iterator | depBegin () const |
| Returns a const iterator to the beginning of all the dependees in the sheet. | |
| DepSet::const_iterator | depEnd () const |
| Returns a const iterator to the end of all of the dependees in the sheet. | |
| DepSet::size_type | size () |
| Returns the number of Dependencies in this DependencySheet. | |
I/O Functions | |
| void | printDeps (std::ostream &out) const |
| Prints out a list of the dependencies in the DependencySheet. | |
| static const std::string & | getNameAttributeName () |
| When serializing to XML, this string should be used as the name of the name attribute. | |
Private Members | |
| DepMap | dependenciesMap_ |
| A map containing all the depenecies for a list. | |
| DepSet | dependencies_ |
| A simple set of all the dependencies in this Dependency Sheet. | |
| std::string | name_ |
| The Name of the dependency sheet. | |
A Dependency sheet keeps track of dependencies between various ParameterEntries.
Definition at line 61 of file Teuchos_DependencySheet.hpp.
| typedef std::set<RCP<Dependency>, RCPComp > Teuchos::DependencySheet::DepSet |
Convience typedef representing a set of dependencies.
Definition at line 71 of file Teuchos_DependencySheet.hpp.
| typedef map<RCP<const ParameterEntry>, DepSet, RCPConstComp > Teuchos::DependencySheet::DepMap |
Convience typedef. Maps dependee parameter entries to a set of their corresponding dependencies.
Definition at line 77 of file Teuchos_DependencySheet.hpp.
Constructs an empty DependencySheet with the name DEP_ANONYMOUS.
Definition at line 50 of file Teuchos_DependencySheet.cpp.
| Teuchos::DependencySheet::DependencySheet | ( | const std::string & | name | ) |
Constructs a DependencySheet.
| name | Name of the Dependency Sheet. |
Definition at line 54 of file Teuchos_DependencySheet.cpp.
| void Teuchos::DependencySheet::addDependency | ( | RCP< Dependency > | dependency | ) |
Adds a dependency to the sheet.
| dependency | The dependency to be added. |
Definition at line 58 of file Teuchos_DependencySheet.cpp.
| void Teuchos::DependencySheet::addDependencies | ( | RCP< DependencySheet > | otherSheet | ) |
Adds a dependencies from another she to this sheet.
| otherSheet | The other sheet from which to add dependencies. |
Definition at line 98 of file Teuchos_DependencySheet.cpp.
| void Teuchos::DependencySheet::removeDependency | ( | RCP< Dependency > | dependency | ) |
Removes a particular dependency between two parameters.
| dependency | The dependency to be removed. |
Definition at line 70 of file Teuchos_DependencySheet.cpp.
| void Teuchos::DependencySheet::setName | ( | const std::string | newName | ) | [inline] |
sets the name of the dependency sheet
Definition at line 128 of file Teuchos_DependencySheet.hpp.
| bool Teuchos::DependencySheet::hasDependents | ( | RCP< const ParameterEntry > | dependee | ) | const [inline] |
Determines whether or not a parameter is depended upon by any another parameters or parameter lists.
| name | The paramteter to be checked for dependents. |
Definition at line 144 of file Teuchos_DependencySheet.hpp.
| RCP< const DependencySheet::DepSet > Teuchos::DependencySheet::getDependenciesForParameter | ( | RCP< const ParameterEntry > | dependee | ) | const |
Returns a set of all the dependencies associated with a particular dependee. If no dependencies with the given dependee have ever been enetered into the sheet then a null reference is returned.
| dependee | The parameter whose dependencies are sought. |
Definition at line 82 of file Teuchos_DependencySheet.cpp.
| const std::string& Teuchos::DependencySheet::getName | ( | ) | const [inline] |
Gets the name of the dependency sheet.
Definition at line 163 of file Teuchos_DependencySheet.hpp.
| bool Teuchos::DependencySheet::empty | ( | ) | const [inline] |
Determines whether or not this dependency sheet has any dependencies.
Definition at line 170 of file Teuchos_DependencySheet.hpp.
| DepSet::iterator Teuchos::DependencySheet::depBegin | ( | ) | [inline] |
Returns an iterator to the beginning of all the dependees in the sheet.
Definition at line 183 of file Teuchos_DependencySheet.hpp.
| DepSet::iterator Teuchos::DependencySheet::depEnd | ( | ) | [inline] |
Returns an iterator to the end of all of the dependees in the sheet.
Definition at line 192 of file Teuchos_DependencySheet.hpp.
| DepSet::const_iterator Teuchos::DependencySheet::depBegin | ( | ) | const [inline] |
Returns a const iterator to the beginning of all the dependees in the sheet.
Definition at line 199 of file Teuchos_DependencySheet.hpp.
| DepSet::const_iterator Teuchos::DependencySheet::depEnd | ( | ) | const [inline] |
Returns a const iterator to the end of all of the dependees in the sheet.
Definition at line 206 of file Teuchos_DependencySheet.hpp.
| DepSet::size_type Teuchos::DependencySheet::size | ( | ) | [inline] |
Returns the number of Dependencies in this DependencySheet.
Definition at line 217 of file Teuchos_DependencySheet.hpp.
| void Teuchos::DependencySheet::printDeps | ( | std::ostream & | out | ) | const |
Prints out a list of the dependencies in the DependencySheet.
Definition at line 91 of file Teuchos_DependencySheet.cpp.
| static const std::string& Teuchos::DependencySheet::getNameAttributeName | ( | ) | [inline, static] |
When serializing to XML, this string should be used as the name of the name attribute.
Definition at line 234 of file Teuchos_DependencySheet.hpp.
A map containing all the depenecies for a list.
Dependencies with multiple dependees will be found in multiple places within the map. Essentially, for each dependee, there will be a pointer to each dependency of which it is a part.
Definition at line 252 of file Teuchos_DependencySheet.hpp.
A simple set of all the dependencies in this Dependency Sheet.
Definition at line 257 of file Teuchos_DependencySheet.hpp.
std::string Teuchos::DependencySheet::name_ [private] |
The Name of the dependency sheet.
Definition at line 262 of file Teuchos_DependencySheet.hpp.
1.7.6.1