|
Optika Development
|
#include <Optika_DependencySheet.hpp>
Public Types | |
| typedef std::set< Teuchos::RCP < Optika::Dependency > , Optika::Dependency::DepComp > | DepSet |
| typedef Teuchos::map< const Teuchos::ParameterEntry *, DepSet > | DepMap |
Public Member Functions | |
| DependencySheet (Teuchos::RCP< Teuchos::ParameterList > rootList) | |
| DependencySheet (Teuchos::RCP< Teuchos::ParameterList > rootList, const std::string &name) | |
| bool | addDependency (const Teuchos::RCP< Optika::Dependency > dependency) |
| bool | removeDependency (Teuchos::RCP< Optika::Dependency > dependency) |
| bool | hasDependents (const Teuchos::ParameterEntry *dependee) const |
| const DepSet & | getDependenciesForParameter (const Teuchos::ParameterEntry *dependee) const |
| DepMap::iterator | depBegin () |
| DepMap::iterator | depEnd () |
| DepMap::const_iterator | depBegin () const |
| DepMap::const_iterator | depEnd () const |
| void | printDeps () |
A Dependency sheet keeps track of dependencies between various elements located somewhere within a "Root List". All dependencies added to a DependencySheet must have dependents and dependees who are either in the Root List or one of its sublists.
Note that a DependencySheet never acts on these dependencies. It mearly keeps track of them.
| typedef Teuchos::map<const Teuchos::ParameterEntry*, DepSet > Optika::DependencySheet::DepMap |
Convience typedef. Maps dependee parameter entries to a set of their corresponding dependencies.
| typedef std::set<Teuchos::RCP<Optika::Dependency>, Optika::Dependency::DepComp > Optika::DependencySheet::DepSet |
Convience typedef representing a set of dependencies.
| Optika::DependencySheet::DependencySheet | ( | Teuchos::RCP< Teuchos::ParameterList > | rootList | ) |
Constructs an empty DependencySheet with the name DEP_ANONYMOUS.
| rootList | The Parameter List containing all parameters and sublists for which this Dependency will keep track of dependencies. |
| Optika::DependencySheet::DependencySheet | ( | Teuchos::RCP< Teuchos::ParameterList > | rootList, |
| const std::string & | name | ||
| ) |
Constructs a DependencySheet.
| rootList | The Parameter List containing all parameters and sublists for which this Dependency will keep track of dependencies. |
| name | Name of the Dependency Sheet. |
| bool Optika::DependencySheet::addDependency | ( | const Teuchos::RCP< Optika::Dependency > | dependency | ) |
Adds a dependency to the sheet.
| dependency | The dependency to be added. |
| DependencySheet::DepMap::iterator Optika::DependencySheet::depBegin | ( | ) |
Returns an iterator to the beginning of all the dependees in the sheet.
| DependencySheet::DepMap::const_iterator Optika::DependencySheet::depBegin | ( | ) | const |
Returns a const iterator to the beginning of all the dependees in the sheet.
| DependencySheet::DepMap::const_iterator Optika::DependencySheet::depEnd | ( | ) | const |
Returns a const iterator to the end of all of the dependees in the sheet.
| DependencySheet::DepMap::iterator Optika::DependencySheet::depEnd | ( | ) |
Returns an iterator to the end of all of the dependees in the sheet.
| const DependencySheet::DepSet & Optika::DependencySheet::getDependenciesForParameter | ( | const Teuchos::ParameterEntry * | dependee | ) | const |
Returns a set of all the dependencies associated with a particular dependee.
| dependee | The parameter whose dependencies are sought. |
| bool Optika::DependencySheet::hasDependents | ( | const Teuchos::ParameterEntry * | dependee | ) | const |
Determines whether or not a parameter is depended upon by any another parameters or parameter lists.
| name | The paramteter to be checked for dependents. |
| void Optika::DependencySheet::printDeps | ( | ) |
Prints out a list of the dependencies in the DependencySheet
| bool Optika::DependencySheet::removeDependency | ( | Teuchos::RCP< Optika::Dependency > | dependency | ) |
Removes a particular dependency between two parameters.
| dependency | The dependency to be removed. |
1.7.4