Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Public Member Functions | |
Foo () | |
virtual | ~Foo () |
virtual std::string | getString () const =0 |
virtual void | setDefaults ()=0 |
void | setParameterList (const RCP< ParameterList > ¶mList) |
Set parameters from a parameter list and return with default values. More... | |
RCP< ParameterList > | getNonconstParameterList () |
Get a nonconst version of the parameter list that was set using setParameterList(). More... | |
RCP< ParameterList > | unsetParameterList () |
Unset the parameter list that was set using setParameterList() . More... | |
RCP< const ParameterList > | getParameterList () const |
Get const version of the parameter list that was set using setParameterList() . More... | |
Public Member Functions inherited from Teuchos::ParameterListAcceptor | |
virtual | ~ParameterListAcceptor () |
Destructor. More... | |
virtual RCP< const ParameterList > | getValidParameters () const |
Return a ParameterList containing all of the valid parameters that this->setParameterList(...) will accept, along with any validators. More... | |
virtual RCP< const DependencySheet > | getDependencies () const |
Rreturn a const DependencySheet of all the dependencies that should be applied to the ParameterList returned by this->getValidParameters() . More... | |
Private Attributes | |
RCP< ParameterList > | paramList_ |
Definition at line 20 of file ObjectBuilder_UnitTests.cpp.
|
inline |
Definition at line 22 of file ObjectBuilder_UnitTests.cpp.
|
inlinevirtual |
Definition at line 23 of file ObjectBuilder_UnitTests.cpp.
|
pure virtual |
Implemented in Teuchos::FooC, Teuchos::FooB, and Teuchos::FooA.
|
pure virtual |
Implemented in Teuchos::FooC, Teuchos::FooB, and Teuchos::FooA.
|
inlinevirtual |
Set parameters from a parameter list and return with default values.
paramList | [in/out] On input: contains the parameters set by the client. On output: the same list, possibly filled with default values, depending on the implementation. |
Implementations of this method generally read parameters out of paramList
, and use them to modify the state or behavior of this object. Implementations may validate input parameters, and throw an exception or set an error state if any of them are invalid. "Validation
! paramList.is_null ()
this->getParameterList().get() == paramList.get()
This object "remembers" paramList
until it is "unset" using unsetParameterList(). When the input ParameterList is passed in, we assume that the client has finished setting parameters in the ParameterList. If the client changes paramList
after calling this method, this object's behavior is undefined. This is because the object may read the options from paramList
at any time. It may either do so in this method, or it may wait to read them at some later time. Users should not expect that if they change a parameter, that this object will automatically recognize the change. To change even one parameter, this method must be called again.
Implements Teuchos::ParameterListAcceptor.
Definition at line 26 of file ObjectBuilder_UnitTests.cpp.
|
inlinevirtual |
Get a nonconst version of the parameter list that was set using setParameterList().
The returned ParameterList should be the same object (pointer equality) as the object given to setParameterList(). If setParameterList() has not yet been called on this object, the returned RCP may be null, but need not necessarily be. If unsetParameterList()
Implements Teuchos::ParameterListAcceptor.
Definition at line 33 of file ObjectBuilder_UnitTests.cpp.
|
inlinevirtual |
Unset the parameter list that was set using setParameterList()
.
This does not undo the effect of setting the parameters via a call to setParameterList(). It merely "forgets" the RCP, so that getParameterList() and getNonconstParameterList() both return null.
this->getParameter().is_null ()
this->getNonconstParameter().is_null ()
Implements Teuchos::ParameterListAcceptor.
Definition at line 36 of file ObjectBuilder_UnitTests.cpp.
|
inlinevirtual |
Get const version of the parameter list that was set using setParameterList()
.
The default implementation returns:
Reimplemented from Teuchos::ParameterListAcceptor.
Definition at line 41 of file ObjectBuilder_UnitTests.cpp.
|
private |
Definition at line 45 of file ObjectBuilder_UnitTests.cpp.