#include <Teuchos_ParameterEntry.hpp>
Public Member Functions | |
Constructors/Destructor | |
| ParameterEntry () | |
| Default Constructor. | |
| ParameterEntry (const ParameterEntry &source) | |
| Copy constructor. | |
| template<typename T> | |
| ParameterEntry (T value, bool isDefault=false, bool isList=false, const std::string &docString="", RCP< const ParameterEntryValidator > const &validator=null) | |
| Templated constructor. | |
| ~ParameterEntry () | |
| Destructor. | |
Set Methods | |
| ParameterEntry & | operator= (const ParameterEntry &source) |
Replace the current parameter entry with source. | |
| template<typename T> | |
| void | setValue (T value, bool isDefault=false, const std::string &docString="", RCP< const ParameterEntryValidator > const &validator=null) |
| Templated set method that uses the input value type to determine the type of parameter. | |
| void | setAnyValue (const any &value, bool isDefault=false) |
| Set the value as an any object. | |
| void | setValidator (RCP< const ParameterEntryValidator > const &validator) |
| Set the validator. | |
| void | setDocString (const std::string &docString) |
| Set the documentation std::string. | |
| ParameterList & | setList (bool isDefault=false, const std::string &docString="") |
| Create a parameter entry that is an empty list. | |
Get Methods | |
| template<typename T> | |
| T & | getValue (T *ptr) const |
| Templated get method that uses the input pointer type to determine the type of parameter to return. | |
| any & | getAny (bool activeQry=true) |
Direct access to the Teuchos::any data value underlying this object. The bool argument activeQry (default: true) indicates that the call to getAny() will set the isUsed() value of the ParameterEntry to true. | |
| const any & | getAny (bool activeQry=true) const |
Constant direct access to the Teuchos::any data value underlying this object. The bool argument activeQry (default: true) indicates that the call to getAny() will set the isUsed() value of the ParameterEntry to true. | |
Attribute/Query Methods | |
| bool | isUsed () const |
| Return whether or not the value has been used; i.e., whether or not the value has been retrieved via a get function. | |
| bool | isList () const |
| Return whether or not the value itself is a list. | |
| template<typename T> | |
| bool | isType () const |
| Test the type of the data being contained. | |
| bool | isDefault () const |
| Indicate whether this entry takes on the default value. | |
| std::string | docString () const |
| Return the (optional) documentation std::string. | |
| RCP< const ParameterEntryValidator > | validator () const |
| Return the (optional) validator object. | |
I/O Methods | |
| std::ostream & | leftshift (std::ostream &os, bool printFlags=true) const |
| Output a non-list parameter to the given output stream. | |
Related Functions | |
| (Note that these are not member functions.) | |
| template<typename T> | |
| T & | getValue (const ParameterEntry &entry) |
A templated helper function for returning the value of type T held in the ParameterEntry object, where the type T can be specified in the call. This is an easier way to call the getValue method in the ParameterEntry class, since the user does not have to pass in a pointer of type T. | |
| bool | operator== (const ParameterEntry &e1, const ParameterEntry &e2) |
| Returns true if two ParameterEntry objects are equal. | |
| bool | operator!= (const ParameterEntry &e1, const ParameterEntry &e2) |
| Returns true if two ParameterEntry objects are not equal. | |
| std::ostream & | operator<< (std::ostream &os, const ParameterEntry &e) |
| Output stream operator for handling the printing of parameter entries. | |
This structure holds a Teuchos::any value and information on the status of this parameter (isUsed, isDefault, etc.). The type of parameter is chosen through the templated Set/Get methods.
|
|
Default Constructor.
|
|
|
Copy constructor.
|
|
||||||||||||||||||||||||||||
|
Templated constructor.
|
|
|
Destructor.
|
|
|
Replace the current parameter entry with
|
|
||||||||||||||||||||||||
|
Templated set method that uses the input value type to determine the type of parameter.
|
|
||||||||||||
|
Set the value as an any object. This wipes all other data including documentation strings. Warning! Do not use function ths to set a sublist! |
|
|
Set the validator.
|
|
|
Set the documentation std::string.
|
|
||||||||||||
|
Create a parameter entry that is an empty list.
|
|
||||||||||
|
Templated get method that uses the input pointer type to determine the type of parameter to return.
|
|
|
Direct access to the Teuchos::any data value underlying this object. The bool argument
|
|
|
Constant direct access to the Teuchos::any data value underlying this object. The bool argument
|
|
|
Return whether or not the value has been used; i.e., whether or not the value has been retrieved via a get function.
|
|
|
Return whether or not the value itself is a list.
|
|
|||||||||
|
Test the type of the data being contained.
|
|
|
Indicate whether this entry takes on the default value.
|
|
|
Return the (optional) documentation std::string.
|
|
|
Return the (optional) validator object.
|
|
||||||||||||
|
Output a non-list parameter to the given output stream. The parameter is followed by "[default]" if it is the default value given through a Set method. Otherwise, if the parameter was unused (not accessed through a Get method), it will be followed by "[unused]". This function is called by the "std::ostream& operator<<". |
|
||||||||||
|
A templated helper function for returning the value of type
|
|
||||||||||||
|
Returns true if two ParameterEntry objects are equal.
|
|
||||||||||||
|
Returns true if two ParameterEntry objects are not equal.
|
|
||||||||||||
|
Output stream operator for handling the printing of parameter entries.
|
1.3.9.1