Teuchos - Trilinos Tools Package
Version of the Day
|
A Dependency sheet keeps track of dependencies between various ParameterEntries. More...
#include <Teuchos_DependencySheet.hpp>
Public Types | |
Public types | |
typedef std::set< RCP < Dependency >, RCPComp > | DepSet |
Convience typedef representing a set of dependencies. More... | |
typedef map< RCP< const ParameterEntry >, DepSet, RCPConstComp > | DepMap |
Convience typedef. Maps dependee parameter entries to a set of their corresponding dependencies. More... | |
Public Member Functions | |
Constructors/Destructor | |
DependencySheet () | |
Constructs an empty DependencySheet with the name DEP_ANONYMOUS. More... | |
DependencySheet (const std::string &name) | |
Constructs a DependencySheet. More... | |
Add/Remove Functions | |
void | addDependency (RCP< Dependency > dependency) |
Adds a dependency to the sheet. More... | |
void | addDependencies (RCP< DependencySheet > otherSheet) |
Adds a dependencies from another she to this sheet. More... | |
void | removeDependency (RCP< Dependency > dependency) |
Removes a particular dependency between two parameters. More... | |
void | setName (const std::string newName) |
sets the name of the dependency sheet More... | |
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. More... | |
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. More... | |
const std::string & | getName () const |
Gets the name of the dependency sheet. More... | |
bool | empty () const |
Determines whether or not this dependency sheet has any dependencies. More... | |
Iterator Functions | |
DepSet::iterator | depBegin () |
Returns an iterator to the beginning of all the dependees in the sheet. More... | |
DepSet::iterator | depEnd () |
DepSet::const_iterator | depBegin () const |
Returns a const iterator to the beginning of all the dependees in the sheet. More... | |
DepSet::const_iterator | depEnd () const |
Returns a const iterator to the end of all of the dependees in the sheet. More... | |
DepSet::size_type | size () |
Returns the number of Dependencies in this DependencySheet. More... | |
I/O Functions | |
void | printDeps (std::ostream &out) const |
Prints out a list of the dependencies in the DependencySheet. More... | |
static const std::string & | getNameAttributeName () |
When serializing to XML, this string should be used as the name of the name attribute. More... | |
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.
Teuchos::DependencySheet::DependencySheet | ( | ) |
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.
|
inline |
sets the name of the dependency sheet
Definition at line 128 of file Teuchos_DependencySheet.hpp.
|
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.
|
inline |
Gets the name of the dependency sheet.
Definition at line 163 of file Teuchos_DependencySheet.hpp.
|
inline |
Determines whether or not this dependency sheet has any dependencies.
Definition at line 170 of file Teuchos_DependencySheet.hpp.
|
inline |
Returns an iterator to the beginning of all the dependees in the sheet.
Definition at line 183 of file Teuchos_DependencySheet.hpp.
|
inline |
Returns an iterator to the end of all of the dependees in the sheet.
Definition at line 192 of file Teuchos_DependencySheet.hpp.
|
inline |
Returns a const iterator to the beginning of all the dependees in the sheet.
Definition at line 199 of file Teuchos_DependencySheet.hpp.
|
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.
|
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.
|
inlinestatic |
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.