|
TriUtils Development
|
#include <Trilinos_Util_CommandLineParser.h>

Public Member Functions | |
| Trilinos_Util_Map () | |
| virtual | ~Trilinos_Util_Map () |
| virtual int | Get (const std::string input, const int def_value) |
| Gets the value of the specified option as an integer. If not found, returns the specified default value. | |
| virtual double | Get (const std::string input, const double def_value) |
| Gets the value of the specified option as a double. If not found, returns the specified default value. | |
| virtual std::string | Get (const std::string input, const std::string def_value) |
| Gets the value of the specified option as a std::string. If not found, returns the specified default value. | |
| virtual bool | Set (const std::string input, const char *value) |
| Modify the value of a database entry. | |
| virtual bool | Set (const std::string input, const std::string value) |
| virtual bool | Set (const std::string input, const int value) |
| virtual bool | Set (const std::string input, const double value) |
| virtual bool | Add (const std::string input, const std::string value) |
| Add an entry to the databse. | |
| bool | SetLabel (std::string Label) |
| std::string | GetLabel (std::string) |
| virtual bool | Has (const std::string input) |
| Check wheter an option is in the database or not. | |
| virtual void | ShowAll () const |
| Show all the databse entries. | |
| virtual void | ShowReallyAll () const |
| Show all the databse entries, including entries beginning with "_". | |
| virtual void | Reset (void) |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Trilinos_Util_Map &S) |
| Trilinos_Util_Map::Trilinos_Util_Map | ( | void | ) |
References SetLabel().
Referenced by operator<<.
|
inlinevirtual |
|
virtual |
|
virtual |
Gets the value of the specified option as a double. If not found, returns the specified default value.
|
virtual |
Gets the value of the specified option as an integer. If not found, returns the specified default value.
Referenced by Trilinos_Util::CommandLineParser::GetProgramName(), and Trilinos_Util::CrsMatrixGallery::Set().
|
virtual |
Gets the value of the specified option as a std::string. If not found, returns the specified default value.
|
inline |
|
virtual |
Check wheter an option is in the database or not.
This method checks whether option input is in the databse or not. It returns true if it is, false otherwise.
Referenced by Add(), and Trilinos_Util::CrsMatrixGallery::Set().
|
virtual |
References SetLabel().
Referenced by Trilinos_Util::InputFileReader::~InputFileReader().
|
virtual |
Modify the value of a database entry.
This method modifies the value of a database entry. If the entry does not exist in the database, return false. Otherwise, returns true.
Referenced by Trilinos_Util::CommandLineParser::CommandLineParser(), and Trilinos_Util::InputFileReader::ReadFile().
|
virtual |
References Add().
|
virtual |
|
virtual |
|
inline |
Referenced by Trilinos_Util::CommandLineParser::CommandLineParser(), Reset(), and Trilinos_Util_Map().
|
virtual |
Show all the databse entries.
Referenced by operator<<().
|
virtual |
Show all the databse entries, including entries beginning with "_".
|
friend |
References Trilinos_Util_Map().