|
Teuchos - Trilinos Tools Package
Version of the Day
|
This class represents a depndency between elements in a Parameter List. More...
#include <Teuchos_Dependency.hpp>
Public Types | |
Public types | |
| typedef std::set< RCP < ParameterEntry >, RCPComp > | ParameterEntryList |
| A list of Dependees. | |
| typedef std::set< RCP< const ParameterEntry >, RCPConstComp > | ConstParameterEntryList |
| A list of dependents. | |
Public Member Functions | |
Constructors/Destructor | |
| Dependency (ConstParameterEntryList dependees, ParameterEntryList dependents) | |
| Constructs a Dependency. | |
| Dependency (ConstParameterEntryList dependees, RCP< ParameterEntry > dependent) | |
| Constructs a Dependency. | |
| Dependency (RCP< const ParameterEntry > dependee, ParameterEntryList dependents) | |
| Constructs a Dependency. | |
| Dependency (RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent) | |
| Constructs a Dependency. | |
Evalutation Functions | |
| virtual void | evaluate ()=0 |
| Evaluates the dependency and makes any appropriate changes to the dependee based on the dependent. | |
I/O Functions | |
| virtual void | print (std::ostream &out) const |
| prints out information about the dependency. | |
Protected Member Functions | |
Validation Functions | |
| virtual void | validateDep () const =0 |
| Validates the dependency to make sure it's valid/has been setup properly. If subclassing, this fucntion should be called in the new subclasses constructor. | |
Attribute/Query Methods | |
| const ConstParameterEntryList & | getDependees () const |
| Gets the dependees of the dependency. | |
| ParameterEntryList & | getDependents () |
| Gets the dependents of the dependency. | |
| const ConstParameterEntryList & | getDependents () const |
| Gets the dependents of the dependency. | |
| RCP< const ParameterEntry > | getFirstDependee () const |
| Gets the first dependee in the dependees list. This is a convience function. | |
| template<class S > | |
| S | getFirstDependeeValue () const |
| Convienence function. Returns the first dependee in the list of dependees. | |
| virtual std::string | getTypeAttributeValue () const =0 |
| Returns the string to be used for the value of the type attribute when converting the dependency to XML. | |
| static const std::string & | getXMLTagName () |
| Returns the XML tag to use when serializing Dependencies. | |
This class represents a depndency between elements in a Parameter List.
Definition at line 63 of file Teuchos_Dependency.hpp.
| typedef std::set<RCP<ParameterEntry>, RCPComp > Teuchos::Dependency::ParameterEntryList |
A list of Dependees.
Definition at line 73 of file Teuchos_Dependency.hpp.
| typedef std::set<RCP<const ParameterEntry>, RCPConstComp > Teuchos::Dependency::ConstParameterEntryList |
A list of dependents.
Definition at line 78 of file Teuchos_Dependency.hpp.
| Teuchos::Dependency::Dependency | ( | ConstParameterEntryList | dependees, |
| ParameterEntryList | dependents | ||
| ) |
Constructs a Dependency.
| dependees | A list of all the dependees. |
| dependents | A list of all the dependents. |
Definition at line 48 of file Teuchos_Dependency.cpp.
| Teuchos::Dependency::Dependency | ( | ConstParameterEntryList | dependees, |
| RCP< ParameterEntry > | dependent | ||
| ) |
Constructs a Dependency.
| dependees | A list of all the dependees. |
| dependent | The dependent parameter. |
Definition at line 57 of file Teuchos_Dependency.cpp.
| Teuchos::Dependency::Dependency | ( | RCP< const ParameterEntry > | dependee, |
| ParameterEntryList | dependents | ||
| ) |
Constructs a Dependency.
| dependee | The dependee parameter. |
| dependents | A List of all the dependents. |
Definition at line 68 of file Teuchos_Dependency.cpp.
| Teuchos::Dependency::Dependency | ( | RCP< const ParameterEntry > | dependee, |
| RCP< ParameterEntry > | dependent | ||
| ) |
Constructs a Dependency.
| dependee | The dependee parameter. |
| dependent | The dependent parameter. |
Definition at line 78 of file Teuchos_Dependency.cpp.
| const ConstParameterEntryList& Teuchos::Dependency::getDependees | ( | ) | const [inline] |
Gets the dependees of the dependency.
Definition at line 135 of file Teuchos_Dependency.hpp.
| ParameterEntryList& Teuchos::Dependency::getDependents | ( | ) | [inline] |
Gets the dependents of the dependency.
Definition at line 144 of file Teuchos_Dependency.hpp.
| const ConstParameterEntryList& Teuchos::Dependency::getDependents | ( | ) | const [inline] |
Gets the dependents of the dependency.
Definition at line 153 of file Teuchos_Dependency.hpp.
| RCP<const ParameterEntry> Teuchos::Dependency::getFirstDependee | ( | ) | const [inline] |
Gets the first dependee in the dependees list. This is a convience function.
Definition at line 161 of file Teuchos_Dependency.hpp.
| S Teuchos::Dependency::getFirstDependeeValue | ( | ) | const [inline] |
Convienence function. Returns the first dependee in the list of dependees.
Definition at line 172 of file Teuchos_Dependency.hpp.
| virtual std::string Teuchos::Dependency::getTypeAttributeValue | ( | ) | const [pure virtual] |
Returns the string to be used for the value of the type attribute when converting the dependency to XML.
Implemented in Teuchos::TwoDColDependency< DependeeType, DependentType >, Teuchos::TwoDRowDependency< DependeeType, DependentType >, Teuchos::RangeValidatorDependency< T >, Teuchos::BoolValidatorDependency, Teuchos::StringValidatorDependency, Teuchos::NumberArrayLengthDependency< DependeeType, DependentType >, Teuchos::NumberVisualDependency< T >, Teuchos::ConditionVisualDependency, Teuchos::BoolVisualDependency, and Teuchos::StringVisualDependency.
| static const std::string& Teuchos::Dependency::getXMLTagName | ( | ) | [inline, static] |
Returns the XML tag to use when serializing Dependencies.
Definition at line 186 of file Teuchos_Dependency.hpp.
| virtual void Teuchos::Dependency::evaluate | ( | ) | [pure virtual] |
Evaluates the dependency and makes any appropriate changes to the dependee based on the dependent.
Implemented in Teuchos::RangeValidatorDependency< T >, Teuchos::BoolValidatorDependency, Teuchos::StringValidatorDependency, Teuchos::ArrayModifierDependency< DependeeType, DependentType >, Teuchos::ValidatorDependency, and Teuchos::VisualDependency.
| void Teuchos::Dependency::print | ( | std::ostream & | out | ) | const [virtual] |
prints out information about the dependency.
Definition at line 99 of file Teuchos_Dependency.cpp.
| virtual void Teuchos::Dependency::validateDep | ( | ) | const [protected, pure virtual] |
Validates the dependency to make sure it's valid/has been setup properly. If subclassing, this fucntion should be called in the new subclasses constructor.
Implemented in Teuchos::TwoDArrayModifierDependency< DependeeType, DependentType >, Teuchos::RangeValidatorDependency< T >, Teuchos::BoolValidatorDependency, Teuchos::StringValidatorDependency, Teuchos::NumberArrayLengthDependency< DependeeType, DependentType >, Teuchos::ArrayModifierDependency< DependeeType, DependentType >, Teuchos::NumberVisualDependency< T >, Teuchos::ConditionVisualDependency, Teuchos::BoolVisualDependency, and Teuchos::StringVisualDependency.
1.7.6.1