OTB
9.0.0
Orfeo Toolbox
|
Namespaces | |
policy | |
Classes | |
class | generic_layout |
Functions | |
template<std::vcl_size_t N> | |
std::vcl_size_t | len (char const (&)[N]) |
std::vcl_size_t | len (char const *ptr) |
std::vcl_size_t | len (char) |
template<typename String > | |
std::vcl_size_t | len (String const &s) |
template<std::ptrdiff_t ... StaticExtents> | |
constexpr std::vcl_size_t | rank_dynamic () noexcept |
template<typename Int > | |
Int | to_integer (string_view const &v, Int const def) |
template<typename Int > | |
Int | to_integer (string_view const &v, string_view const &context) |
template<typename Int > | |
Int | to_uinteger (string_view const &v, Int const def) |
template<typename Int > | |
Int | to_uinteger (string_view const &v, string_view const &context) |
|
inline |
Internal generic string to float conversion (w/ exception). Tries to convert the input string into a floating point type. If the string doesn't represent a floating point value, an exception is thrown.
FloatType | floating point type (float , double , long double ) |
[in] | v | input string |
[in] | context | context message for the exception thrown |
"nan"
string is converted to ossim::nan()
. std::runtime_error | is the number cannot be converted. |
Definition at line 770 of file otbStringUtilities.h.
References otb::string_view::empty(), otb::string_view::front(), and otb::string_view::remove_prefix().
|
inline |
Definition at line 422 of file otbStringUtilities.h.
|
inline |
Definition at line 424 of file otbStringUtilities.h.
|
inline |
Definition at line 421 of file otbStringUtilities.h.
Referenced by otb::splitter_on_delim::next_start(), and otb::Interval::OfLength().
|
inline |
Definition at line 425 of file otbStringUtilities.h.
|
constexprnoexcept |
Definition at line 39 of file otbExtents.h.
References otb::dynamic_extent.
Referenced by otb::extents< StaticExtents >::rank_dynamic(), and otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::rank_dynamic().
|
inline |
Internal generic string to float conversion (w/o exception). Tries to convert the input string into a floating point type. If the string doesn't represent a floating point value, the default value will be returned.
FloatType | floating point type (float , double , long double ) |
[in] | v | input string |
[in] | def | default value returned in the conversion isn't possible |
"nan"
string is converted to ossim::nan()
. def
if the string cannot be converted to a floating point value. None |
Definition at line 754 of file otbStringUtilities.h.
References otb::contains(), and otb::string_view::empty().
|
inline |
Internal generic string to float conversion (w/ exception). Tries to convert the input string into a floating point type. If the string doesn't represent a floating point value, an exception is thrown.
FloatType | floating point type (float , double , long double ) |
[in] | v | input string |
[in] | context | context message for the exception thrown |
"nan"
string is converted to ossim::nan()
. std::runtime_error | is the number cannot be converted. |
Definition at line 723 of file otbStringUtilities.h.
References otb::contains(), and otb::string_view::empty().
|
inline |
Internal generic string to integer conversion (w/o exception). Tries to convert the input string into a integer type. If the string doesn't represent an integer value, the default value will be returned.
Int | Integral type (In a perfect world, we'd used enable_if & co to restrict the code to integral types) |
[in] | v | input string |
[in] | def | default value returned in the conversion isn't possible |
def
if the string cannot be converted to an integer value. None |
Definition at line 617 of file otbStringUtilities.h.
References otb::string_view::begin(), and otb::string_view::end().
|
inline |
Internal generic string to integer conversion (w/ exception). Tries to convert the input string into a integer type. If the string doesn't represent an integer value, an exception is thrown.
Int | Integral type (In a perfect world, we'd used enable_if & co to restrict the code to integral types) |
[in] | v | input string |
[in] | context | context message for the exception thrown |
std::runtime_error | is the number cannot be converted. |
Definition at line 576 of file otbStringUtilities.h.
References otb::string_view::begin(), otb::string_view::end(), and OTB_FALLTHROUGH.
|
inline |
Internal generic string to unsigned integer conversion (w/o exception). Tries to convert the input string into a integer type. If the string doesn't represent an integer value, the default value will be returned.
Int | Integral type (In a perfect world, we'd used enable_if & co to restrict the code to integral types) |
[in] | v | input string |
[in] | def | default value returned in the conversion isn't possible |
def
if the string cannot be converted to an integer value. None |
Definition at line 690 of file otbStringUtilities.h.
References otb::string_view::begin(), and otb::string_view::end().
|
inline |
Internal generic string to unsigned integer conversion (w/ exception). Tries to convert the input string into a integer type. If the string doesn't represent an integer value, an exception is thrown.
Int | Integral type (In a perfect world, we'd used enable_if & co to restrict the code to integral types) |
[in] | v | input string |
[in] | context | context message for the exception thrown |
std::runtime_error | is the number cannot be converted. |
Definition at line 655 of file otbStringUtilities.h.
References otb::string_view::begin(), and otb::string_view::end().