Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
A string visual depdencies says the following about the relationship between two elements in a Parameter List: Depending on whether or not the dependee has a particular value, the dependent may or may not be displayed to the user in a UI. More...
#include <Teuchos_StandardDependencies.hpp>
Public types | |
typedef Array< std::string > | ValueList |
Constructors/Destructor | |
StringVisualDependency (RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent, std::string value, bool showIf=true) | |
Constructs a StringVisualDependency. More... | |
StringVisualDependency (RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent, const ValueList &values, bool showIf=true) | |
Constructs a StringVisualDependency. More... | |
StringVisualDependency (RCP< const ParameterEntry > dependee, Dependency::ParameterEntryList dependents, const std::string &value, bool showIf=true) | |
Constructs a StringVisualDependency. More... | |
StringVisualDependency (RCP< const ParameterEntry > dependee, Dependency::ParameterEntryList dependents, const ValueList &values, bool showIf=true) | |
Constructs a StringVisualDependency. More... | |
Attribute/Query Functions | |
const ValueList & | getValues () const |
get the List of values the dependee will be checked against. More... | |
Overridden from VisualDependency | |
bool | getDependeeState () const |
Overridden from Dependency | |
std::string | getTypeAttributeValue () const |
void | validateDep () const |
Private Members | |
const ValueList | values_ |
Additional Inherited Members | |
Public Types inherited from Teuchos::Dependency | |
typedef std::set< RCP < ParameterEntry >, RCPComp > | ParameterEntryList |
A list of Dependees. More... | |
typedef std::set< RCP< const ParameterEntry >, RCPConstComp > | ConstParameterEntryList |
A list of dependents. More... | |
Public Member Functions inherited from Teuchos::VisualDependency | |
VisualDependency (RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent, bool showIf=getShowIfDefaultValue()) | |
Constructs a VisualDependency. More... | |
VisualDependency (RCP< const ParameterEntry > dependee, ParameterEntryList dependents, bool showIf=getShowIfDefaultValue()) | |
Constructs a VisualDependency. More... | |
VisualDependency (ConstParameterEntryList dependees, RCP< ParameterEntry > dependent, bool showIf=getShowIfDefaultValue()) | |
Constructs a VisualDependency. More... | |
VisualDependency (ConstParameterEntryList dependees, ParameterEntryList dependents, bool showIf=getShowIfDefaultValue()) | |
Constructs a VisualDependency. More... | |
bool | isDependentVisible () const |
Determines whether or not the dependent is currently visible. More... | |
bool | getShowIf () const |
Get's the value of the showIf variable. More... | |
void | evaluate () |
Public Member Functions inherited from Teuchos::Dependency | |
Dependency (ConstParameterEntryList dependees, ParameterEntryList dependents) | |
Constructs a Dependency. More... | |
Dependency (ConstParameterEntryList dependees, RCP< ParameterEntry > dependent) | |
Constructs a Dependency. More... | |
Dependency (RCP< const ParameterEntry > dependee, ParameterEntryList dependents) | |
Constructs a Dependency. More... | |
Dependency (RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent) | |
Constructs a Dependency. More... | |
const ConstParameterEntryList & | getDependees () const |
Gets the dependees of the dependency. More... | |
ParameterEntryList & | getDependents () |
Gets the dependents of the dependency. More... | |
const ConstParameterEntryList & | getDependents () const |
Gets the dependents of the dependency. More... | |
RCP< const ParameterEntry > | getFirstDependee () const |
Gets the first dependee in the dependees list. This is a convience function. More... | |
template<class S > | |
S | getFirstDependeeValue () const |
Convienence function. Returns the first dependee in the list of dependees. More... | |
virtual void | print (std::ostream &out) const |
prints out information about the dependency. More... | |
Public Member Functions inherited from Teuchos::Describable | |
virtual std::string | description () const |
Return a simple one-line description of this object. More... | |
virtual void | describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
Print the object with some verbosity level to a FancyOStream. More... | |
void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
Version of describe() that takes an std::ostream instead of a FancyOStream. More... | |
virtual | ~Describable () |
Destructor (marked virtual for memory safety of derived classes). More... | |
Public Member Functions inherited from Teuchos::LabeledObject | |
LabeledObject () | |
Construct with an empty label. More... | |
virtual | ~LabeledObject () |
virtual void | setObjectLabel (const std::string &objectLabel) |
Set the object label (see LabeledObject). More... | |
virtual std::string | getObjectLabel () const |
Get the object label (see LabeledObject). More... | |
Static Public Member Functions inherited from Teuchos::VisualDependency | |
static const bool & | getShowIfDefaultValue () |
Static Public Member Functions inherited from Teuchos::Dependency | |
static const std::string & | getXMLTagName () |
Returns the XML tag to use when serializing Dependencies. More... | |
Static Public Attributes inherited from Teuchos::Describable | |
static const EVerbosityLevel | verbLevel_default = VERB_DEFAULT |
Default value for the verbLevel argument of describe(). More... | |
Protected Member Functions inherited from Teuchos::Dependency | |
Related Functions inherited from Teuchos::Describable | |
DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
Describable output stream manipulator. More... | |
std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
Output stream operator for Describable manipulator. More... | |
A string visual depdencies says the following about the relationship between two elements in a Parameter List: Depending on whether or not the dependee has a particular value, the dependent may or may not be displayed to the user in a UI.
The dependee of a StringVisualDependency must be of type string and can't be an array. The dependent may be any type of parameter or parameter list.
Please see StringVisualDependencyXMLConverter for documentation regarding the XML representation of this Dependency.
Definition at line 244 of file Teuchos_StandardDependencies.hpp.
typedef Array<std::string> Teuchos::StringVisualDependency::ValueList |
Convience typedef representing an array of strings.
Definition at line 254 of file Teuchos_StandardDependencies.hpp.
Teuchos::StringVisualDependency::StringVisualDependency | ( | RCP< const ParameterEntry > | dependee, |
RCP< ParameterEntry > | dependent, | ||
std::string | value, | ||
bool | showIf = true |
||
) |
Constructs a StringVisualDependency.
dependee | The dependee paramter. dependent The dependent parameter. |
value | The value of the depndee that affects the visiblity of the dependent. |
showIf | When true, the depndent will be be shown if the dependee is set to the same value as specified by the value parameter. If false, the dependent will be shown only when the dependee is set to a value other than the one specified by the value parameter. |
Definition at line 114 of file Teuchos_StandardDependencies.cpp.
Teuchos::StringVisualDependency::StringVisualDependency | ( | RCP< const ParameterEntry > | dependee, |
RCP< ParameterEntry > | dependent, | ||
const ValueList & | values, | ||
bool | showIf = true |
||
) |
Constructs a StringVisualDependency.
dependee | The dependee parameter. |
dependent | The dependent parameter. |
values | The values of the depndee that affect the visiblity of the dependent. |
showIf | When true, the depndent will be be shown if the dependee is set to one of the values specified by the values parameter. If false, the dependent will be shown only when the dependee is set to a value other than the ones specified by the values parameter. |
Definition at line 125 of file Teuchos_StandardDependencies.cpp.
Teuchos::StringVisualDependency::StringVisualDependency | ( | RCP< const ParameterEntry > | dependee, |
Dependency::ParameterEntryList | dependents, | ||
const std::string & | value, | ||
bool | showIf = true |
||
) |
Constructs a StringVisualDependency.
dependee | The dependee parameter. |
dependents | The dependents |
value | The value of the depndee that affects the visiblity of the dependent. |
showIf | When true, the depndent will be be shown if the dependee is set to one of the values specified by the values parameter. If false, the dependent will be shown only when the dependee is set to a value other than the ones specified by the values parameter. |
Definition at line 136 of file Teuchos_StandardDependencies.cpp.
Teuchos::StringVisualDependency::StringVisualDependency | ( | RCP< const ParameterEntry > | dependee, |
Dependency::ParameterEntryList | dependents, | ||
const ValueList & | values, | ||
bool | showIf = true |
||
) |
Constructs a StringVisualDependency.
dependee | The dependee parameter. |
dependents | The dependents |
values | The values of the depndee that affect the visiblity of the dependent. |
showIf | When true, the depndent will be be shown if the dependee is set to one of the values specified by the values parameter. If false, the dependent will be shown only when the dependee is set to a value other than the ones specified by the values parameter. |
Definition at line 147 of file Teuchos_StandardDependencies.cpp.
const StringVisualDependency::ValueList & Teuchos::StringVisualDependency::getValues | ( | ) | const |
get the List of values the dependee will be checked against.
Definition at line 159 of file Teuchos_StandardDependencies.cpp.
|
virtual |
Implements Teuchos::VisualDependency.
Definition at line 164 of file Teuchos_StandardDependencies.cpp.
|
virtual |
Implements Teuchos::Dependency.
Definition at line 169 of file Teuchos_StandardDependencies.cpp.
|
protectedvirtual |
Implements Teuchos::Dependency.
Definition at line 173 of file Teuchos_StandardDependencies.cpp.
|
private |
The value used to deteremine the visiblity of the dependent.
Definition at line 382 of file Teuchos_StandardDependencies.hpp.