#include <Teuchos_ParameterEntry.hpp>
Collaboration diagram for Teuchos::ParameterEntry:
Public Member Functions | |
Constructors/Destructor | |
| ParameterEntry () | |
| Default Constructor. | |
| ParameterEntry (const ParameterEntry &source) | |
| Copy constructor. | |
| template<typename T> | |
| ParameterEntry (T value, bool isDefault=false) | |
| 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) |
| Templated set method that uses the input value type to determine the type of parameter. | |
| ParameterList & | setList (bool isDefault=false) |
| 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. | |
| const any & | getAny () const |
| Direct access to the Teuchos::any data value underlying this object. | |
Attribute 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 |
I/O Methods | |
| ostream & | leftshift (ostream &os) const |
| Output a non-list parameter to the given output stream. | |
Private Member Functions | |
| void | reset () |
| Reset the entry. | |
Private Attributes | |
| any | val_ |
| Templated Datatype. | |
| bool | isList_ |
| List flag. | |
| bool | isUsed_ |
| Has this parameter been accessed by a "get" function? | |
| bool | isDefault_ |
| Was this parameter a default value assigned by a "get" function? | |
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. | |
| ostream & | operator<< (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.
Definition at line 54 of file Teuchos_ParameterEntry.hpp.
|
|
Default Constructor.
Definition at line 35 of file Teuchos_ParameterEntry.cpp. |
|
|
Copy constructor.
Definition at line 42 of file Teuchos_ParameterEntry.cpp. |
|
||||||||||||||||
|
Templated constructor.
Definition at line 67 of file Teuchos_ParameterEntry.hpp. |
|
|
Destructor.
Definition at line 74 of file Teuchos_ParameterEntry.hpp. |
|
|
Replace the current parameter entry with
Definition at line 47 of file Teuchos_ParameterEntry.cpp. |
|
||||||||||||||||
|
Templated set method that uses the input value type to determine the type of parameter.
Definition at line 91 of file Teuchos_ParameterEntry.hpp. |
|
|
Create a parameter entry that is an empty list.
Definition at line 60 of file Teuchos_ParameterEntry.cpp. |
|
||||||||||
|
Templated get method that uses the input pointer type to determine the type of parameter to return.
Definition at line 110 of file Teuchos_ParameterEntry.hpp. |
|
|
Direct access to the Teuchos::any data value underlying this object.
Definition at line 121 of file Teuchos_ParameterEntry.hpp. |
|
|
Return whether or not the value has been used; i.e., whether or not the value has been retrieved via a get function.
Definition at line 130 of file Teuchos_ParameterEntry.hpp. |
|
|
Return whether or not the value itself is a list.
Definition at line 133 of file Teuchos_ParameterEntry.hpp. |
|
|||||||||
|
Test the type of the data being contained.
Definition at line 143 of file Teuchos_ParameterEntry.hpp. |
|
|
Indicate whether this entry takes on the default value Definition at line 149 of file Teuchos_ParameterEntry.hpp. |
|
|
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 "ostream& operator<<". Definition at line 76 of file Teuchos_ParameterEntry.cpp. |
|
|
Reset the entry.
Definition at line 69 of file Teuchos_ParameterEntry.cpp. |
|
||||||||||
|
A templated helper function for returning the value of type
Definition at line 188 of file Teuchos_ParameterEntry.hpp. |
|
||||||||||||
|
Output stream operator for handling the printing of parameter entries.
Definition at line 196 of file Teuchos_ParameterEntry.hpp. |
|
|
Templated Datatype.
Definition at line 169 of file Teuchos_ParameterEntry.hpp. |
|
|
List flag.
Definition at line 172 of file Teuchos_ParameterEntry.hpp. |
|
|
Has this parameter been accessed by a "get" function?
Definition at line 175 of file Teuchos_ParameterEntry.hpp. |
|
|
Was this parameter a default value assigned by a "get" function?
Definition at line 178 of file Teuchos_ParameterEntry.hpp. |
1.3.9.1