|
Optika Development
|
#include <Optika_Dependency.hpp>

Classes | |
| class | DepComp |
Public Types | |
| enum | Type { VisualDep, ValidatorDep, NumberValidatorAspectDep, NumberArrayLengthDep } |
| typedef std::map< const std::string, const Teuchos::RCP < Teuchos::ParameterList > > | ParameterParentMap |
Public Member Functions | |
| Dependency (ParameterParentMap &dependees, ParameterParentMap &dependents, Type type) | |
| Dependency (ParameterParentMap &dependees, std::string dependentName, Teuchos::RCP< Teuchos::ParameterList > dependentParentList, Type type) | |
| Dependency (std::string dependeeName, Teuchos::RCP< Teuchos::ParameterList > dependeeParentList, ParameterParentMap &dependents, Type type) | |
| Dependency (std::string dependeeName, Teuchos::RCP< Teuchos::ParameterList > dependeeParentList, std::string dependentName, Teuchos::RCP< Teuchos::ParameterList > dependentParentList, Type type) | |
| virtual | ~Dependency () |
| ParameterParentMap | getDependees () const |
| ParameterParentMap | getDependents () const |
| std::set< std::string > | getDependeeNames () const |
| std::set< std::string > | getDependentNames () const |
| std::string | getDependeeNamesString () const |
| std::string | getDependentNamesString () const |
| std::string | getDependeeName (const Teuchos::ParameterEntry *dependee) const |
| Type | getType () const |
| virtual void | evaluate ()=0 |
Static Public Member Functions | |
| static bool | doesListContainList (Teuchos::RCP< Teuchos::ParameterList > parentList, Teuchos::RCP< Teuchos::ParameterList > listToFind) |
Protected Member Functions | |
| const Teuchos::ParameterEntry * | getFirstDependee () const |
| template<class S > | |
| const S | getFirstDependeeValue () const |
| std::string | getFirstDependeeName () const |
Protected Attributes | |
| ParameterParentMap | dependees |
| ParameterParentMap | dependents |
| std::set< std::string > | dependeeNames |
| std::set< std::string > | dependentNames |
This class represents a depndency between elements in a Parameter List.
| typedef std::map<const std::string, const Teuchos::RCP<Teuchos::ParameterList> > Optika::Dependency::ParameterParentMap |
Maps parameters to their associated parent ParametersList.
Enum classifying various types of dependencies.
| Optika::Dependency::Dependency | ( | ParameterParentMap & | dependees, |
| ParameterParentMap & | dependents, | ||
| Type | type | ||
| ) |
Constructs a Dependency
| dependees | A map of all the dependees and their associated parent lists. |
| dependents | A map of all the dependents and their associated parent lists. |
| type | The type of dependency. |
| Optika::Dependency::Dependency | ( | ParameterParentMap & | dependees, |
| std::string | dependentName, | ||
| Teuchos::RCP< Teuchos::ParameterList > | dependentParentList, | ||
| Type | type | ||
| ) |
Constructs a Dependency
| dependees | A map of all the dependees and their associated parent lists. |
| dependentName | The name of the dependent parameter. |
| dependentParentList | The ParameterList containing the dependent. |
| type | The type of dependency. |
| Optika::Dependency::Dependency | ( | std::string | dependeeName, |
| Teuchos::RCP< Teuchos::ParameterList > | dependeeParentList, | ||
| ParameterParentMap & | dependents, | ||
| Type | type | ||
| ) |
Constructs a Dependency
| dependeeName | The name of the dependee parameter. |
| dependeeParentList | The ParameterList containing the dependee. |
| dependents | A map of all the dependents and their associated parent lists. |
| type | The type of dependency. |
| Optika::Dependency::Dependency | ( | std::string | dependeeName, |
| Teuchos::RCP< Teuchos::ParameterList > | dependeeParentList, | ||
| std::string | dependentName, | ||
| Teuchos::RCP< Teuchos::ParameterList > | dependentParentList, | ||
| Type | type | ||
| ) |
Constructs a Dependency
| dependeeName | The name of the dependee parameter. |
| dependeeParentList | The ParameterList containing the dependee. |
| dependentName | The name of the dependent parameter. |
| dependentParentList | The ParameterList containing the dependent. |
| type | The type of dependency. |
| virtual Optika::Dependency::~Dependency | ( | ) | [inline, virtual] |
Desctructor
Simply declaring the descrutor as virtual.
| bool Optika::Dependency::doesListContainList | ( | Teuchos::RCP< Teuchos::ParameterList > | parentList, |
| Teuchos::RCP< Teuchos::ParameterList > | listToFind | ||
| ) | [static] |
Determines whether or not a ParameterList or any of it's children lists contain a specific ParameterList.
| parentList | The ParameterList to search. |
| listToFind | The ParameterList to for which we are searching. |
| virtual void Optika::Dependency::evaluate | ( | ) | [pure virtual] |
Evaluates the dependency and makes any appropriate changes to the dependee based on the dependent.
Implemented in Optika::VisualDependency, Optika::ValidatorDependency, Optika::StringVisualDependency, Optika::BoolVisualDependency, Optika::ConditionVisualDependency, Optika::NumberVisualDependency< S >, Optika::NumberValidatorAspectDependency< S >, Optika::NumberArrayLengthDependency, Optika::StringValidatorDependency, Optika::BoolValidatorDependency, and Optika::RangeValidatorDependency< S >.
| std::string Optika::Dependency::getDependeeName | ( | const Teuchos::ParameterEntry * | dependee | ) | const |
Gets the name of a dependee given a pointer to the dependee parameter.
| Pointer | to the dependee parameter whose name is desired. |
| std::set< std::string > Optika::Dependency::getDependeeNames | ( | ) | const |
Gets the names of the dependee parameters.
| std::string Optika::Dependency::getDependeeNamesString | ( | ) | const |
Gets a string containing all the names of the dependee parameters.
| Dependency::ParameterParentMap Optika::Dependency::getDependees | ( | ) | const |
Gets the dependees of the dependency.
| std::set< std::string > Optika::Dependency::getDependentNames | ( | ) | const |
Gets a set containing the names of the dependent parameters.
| std::string Optika::Dependency::getDependentNamesString | ( | ) | const |
Gets a string containing all the names of the dependent parameters.
| Dependency::ParameterParentMap Optika::Dependency::getDependents | ( | ) | const |
Gets the dependents of the dependency.
| const Teuchos::ParameterEntry* Optika::Dependency::getFirstDependee | ( | ) | const [inline, protected] |
Convienence function. Returns the first dependee in the list of dependees.
| std::string Optika::Dependency::getFirstDependeeName | ( | ) | const [inline, protected] |
Gets the name of the first dependee in the dependees map.
| const S Optika::Dependency::getFirstDependeeValue | ( | ) | const [inline, protected] |
Convienence function. Returns the first dependee in the list of dependees.
| Dependency::Type Optika::Dependency::getType | ( | ) | const |
Gets the type of the dependency.
std::set<std::string> Optika::Dependency::dependeeNames [protected] |
The names of all the dependees
ParameterParentMap Optika::Dependency::dependees [protected] |
The dependee is the parameter being depended upon. This is a map of all the dependees and their associated parent ParameterLists.
std::set<std::string> Optika::Dependency::dependentNames [protected] |
The names of all the dependents
ParameterParentMap Optika::Dependency::dependents [protected] |
The dependent is the parameter that dependes on another parameter. This is a map of all the dependents and their associated parent ParametersLists.
1.7.4