|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Convert an std::string to an unsigned int.
More...
#include <Teuchos_as.hpp>
Static Public Member Functions | |
| static unsigned int | safeConvert (const std::string &t) |
Convert the given std::string to an unsigned int, with checks. | |
| static unsigned int | convert (const std::string &t) |
Convert the given std::string to an unsigned int. | |
Static Private Member Functions | |
| static unsigned long | safeConvertToUnsignedLong (const std::string &t) |
Convert the given std::string to an intermediate unsigned long, with checks. | |
Convert an std::string to an unsigned int.
We assume the string stores a base-10 integer, if it stores an integer at all.
Definition at line 857 of file Teuchos_as.hpp.
| static unsigned long Teuchos::ValueTypeConversionTraits< unsigned int, std::string >::safeConvertToUnsignedLong | ( | const std::string & | t | ) | [inline, static, private] |
Convert the given std::string to an intermediate unsigned long, with checks.
Definition at line 860 of file Teuchos_as.hpp.
| static unsigned int Teuchos::ValueTypeConversionTraits< unsigned int, std::string >::safeConvert | ( | const std::string & | t | ) | [inline, static] |
Convert the given std::string to an unsigned int, with checks.
If the string overflows unsigned int, this throws std::range_error. If it does not contain an integer, this throws std::invalid_argument.
Definition at line 887 of file Teuchos_as.hpp.
| static unsigned int Teuchos::ValueTypeConversionTraits< unsigned int, std::string >::convert | ( | const std::string & | t | ) | [inline, static] |
Convert the given std::string to an unsigned int.
Definition at line 892 of file Teuchos_as.hpp.
1.7.6.1