56 dependentVisible_(
false),
65 dependentVisible_(
false),
74 dependentVisible_(
false),
83 dependentVisible_(
false),
139 const std::string& value,
170 return "StringVisualDependency";
176 "Ay no! The dependee of a "
177 "String Visual Dependency must be of type "
180 std::endl << std::endl);
216 return "BoolVisualDependency";
222 "Ay no! The dependee of a "
223 "Bool Visual Dependency must be of type " <<
226 std::endl << std::endl);
266 return "ConditionVisualDependency";
334 return "StringValidatorDependency";
340 "Ay no! The dependee of a "
341 "String Validator Dependency must be of type " <<
344 std::endl << std::endl);
349 "The valuesAndValidatord map for a string validator dependency must "
350 "have at least one entry!" << std::endl << std::endl);
360 "Ay no! All of the validators in a StringValidatorDependency "
361 "must have the same type.");
430 return "BoolValidatorDependency";
438 "Ay no! The dependee of a "
439 "Bool Validator Dependency must be of type " <<
442 std::endl << std::endl);
450 "Ay no! The true and false validators of a Bool Validator Dependency "
451 "must be the same type! " <<std::endl << std::endl);
A collection of standard dependencies.
A BoolValidatorDependency says the following about the relationship between two parameters: Dependeni...
BoolValidatorDependency(RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent, RCP< const ParameterEntryValidator > trueValidator, RCP< const ParameterEntryValidator > falseValidator=null)
Constructs a BoolValidatorDependency.
RCP< const ParameterEntryValidator > falseValidator_
RCP< const ParameterEntryValidator > trueValidator_
The validators to be used when the dependee is either true or false.
std::string getTypeAttributeValue() const
RCP< const ParameterEntryValidator > getTrueValidator() const
Gets the true validator.
void validateDep() const
Validates the dependency to make sure it's valid/has been setup properly. If subclassing,...
RCP< const ParameterEntryValidator > getFalseValidator() const
Gets the false validator.
A bool visual dependency says the following about the relationship between two elements in a Paramete...
bool getDependeeState() const
std::string getTypeAttributeValue() const
BoolVisualDependency(RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent, bool showIf=true)
A condition visual dependency says the following about the relationship between elements in a Paramet...
std::string getTypeAttributeValue() const
RCP< const Condition > condition_
The Condition to determine whether or not the dependent is displayed.
bool getDependeeState() const
ConditionVisualDependency(RCP< const Condition > condition, RCP< ParameterEntry > dependent, bool showIf=true)
RCP< const Condition > getCondition() const
Gets the condition being used in this dependency.
This class represents a depndency between elements in a Parameter List.
ParameterEntryList & getDependents()
Gets the dependents of the dependency.
std::set< RCP< ParameterEntry >, RCPComp > ParameterEntryList
A list of Dependees.
std::set< RCP< const ParameterEntry >, RCPConstComp > ConstParameterEntryList
A list of dependents.
RCP< const ParameterEntry > getFirstDependee() const
Gets the first dependee in the dependees list. This is a convience function.
Class for retrieving a dummy object of type T.
static RCP< T > getDummyObject()
Retrieves a dummy object of type T.
Abstract interface for an object that can validate a ParameterEntry's value.
This object is held as the "value" in the Teuchos::ParameterList std::map.
Concrete serial communicator subclass.
A StringValidatorDependency says the following about the relationship between two parameters: Depende...
void validateDep() const
Validates the dependency to make sure it's valid/has been setup properly. If subclassing,...
ValueToValidatorMap valuesAndValidators_
A map associating particular dependee values with validators that could be placed on the dependent.
RCP< ParameterEntryValidator > defaultValidator_
The default validator to be used if a request is made for a value that does not appear in the valuesA...
std::string getTypeAttributeValue() const
const ValueToValidatorMap & getValuesAndValidators() const
retrieve a const reference to the ValueToValidator map being used by this StringValidatorDependency
RCP< const ParameterEntryValidator > getDefaultValidator() const
std::pair< std::string, RCP< const ParameterEntryValidator > > ValueToValidatorPair
Conveniece typedef.
StringValidatorDependency(RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent, ValueToValidatorMap valuesAndValidators, RCP< ParameterEntryValidator > defaultValidator=null)
Constructs a StringValidatorDependency.
std::map< std::string, RCP< const ParameterEntryValidator > > ValueToValidatorMap
Conveniece typedef.
A string visual depdencies says the following about the relationship between two elements in a Parame...
const ValueList & getValues() const
get the List of values the dependee will be checked against.
StringVisualDependency(RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent, std::string value, bool showIf=true)
Constructs a StringVisualDependency.
std::string getTypeAttributeValue() const
bool getDependeeState() const
Default traits class that just returns typeid(T).name().
An abstract base class for all validator dependencies.
ValidatorDependency(RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent)
Constructs a ValidatorDependency.
An abstract parent class for all visual dependencies.
bool isDependentVisible() const
Determines whether or not the dependent is currently visible.
bool dependentVisible_
Whether or not the dependent is currently visible.
virtual bool getDependeeState() const =0
Get the state of the dependee in order to evaluate the dependency.
bool getShowIf() const
Get's the value of the showIf variable.
VisualDependency(RCP< const ParameterEntry > dependee, RCP< ParameterEntry > dependent, bool showIf=getShowIfDefaultValue())
Constructs a VisualDependency.
bool showIf_
Whether or not to show the dependent if the dependee is set to the value.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
std::string typeName(const T &t)
Template function for returning the concrete type name of a passed-in object.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
StringValidatorDependency::ValueToValidatorMap valuesAndValidators