62 int main(
int argc,
char* argv[])
72 Teuchos::tuple<std::string>(
"GMRES",
"CG",
"TFQMR" )
79 ,
"The type of solver to use."
94 Teuchos::writeParameterListToXmlFile(My_List,
"custom_validator_test_list.xml");
97 Teuchos::writeParameterListToXmlOStream(My_List, std::cout);
100 std::cout << *readIn;
A collection of standard ValidatorXMLConverters.
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Set a parameter whose value has type T.
Standard implementation of a ParameterEntryValidator that maps from a list of strings to an enum or i...
Simple helper functions that make it easy to read and write XML to and from a parameterlist.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Templated Parameter List class.
A database for ValidatorXMLConverters.
std::string Teuchos_Version()
A list of parameters of arbitrary type.
int main(int argc, char *argv[])
Templated array class derived from the STL std::vector.
#define TEUCHOS_ADD_STRINGTOINTEGRALVALIDATOR_CONVERTER(INTEGRALTYPE)
Add StringToIntegralParameterEntryValidator<INTEGRAL_TYPE> to set of supported parameter types...
Smart reference counting pointer class for automatic garbage collection.