LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Helper to select an string option among a set of allowed choices. More...
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstddef>
#include <exception>
#include <limits>
#include <map>
#include <optional>
#include <ostream>
#include <string>
#include <type_traits>
#include <vector>
Go to the source code of this file.
Namespaces | |
util::details | |
util | |
Namespace for general, non-LArSoft-specific utilities. | |
Functions | |
template<typename Choices > | |
std::ostream & | util::details::operator<< (std::ostream &out, MultipleChoiceSelectionOption_t< Choices > const &option) |
Prints an option into a stream. More... | |
template<typename B1 , typename E1 , typename B2 , typename E2 , typename Comp > | |
bool | my_lexicographical_compare (B1 b1, E1 e1, B2 b2, E2 e2, Comp less) |
Option comparison operators | |
— BEGIN – Comparison operators -------------------------------------— | |
template<typename Choices > | |
bool | util::details::operator== (MultipleChoiceSelectionOption_t< Choices > const &option, Choices const value) |
Returns whether option has the specified value . More... | |
template<typename Choices > | |
bool | util::details::operator== (Choices const value, MultipleChoiceSelectionOption_t< Choices > const &option) |
Returns whether option has the specified value . More... | |
template<typename Choices > | |
bool | util::details::operator!= (MultipleChoiceSelectionOption_t< Choices > const &option, Choices const value) |
Returns whether option does not have the specified value . More... | |
template<typename Choices > | |
bool | util::details::operator!= (Choices const value, MultipleChoiceSelectionOption_t< Choices > const &option) |
Returns whether option does not have the specified value . More... | |
template<typename Choices > | |
bool | util::details::operator== (MultipleChoiceSelectionOption_t< Choices > const &option, std::string const &label) |
Returns whether option has the specified name or alias. More... | |
template<typename Choices > | |
bool | util::details::operator== (std::string const &label, MultipleChoiceSelectionOption_t< Choices > const &option) |
Returns whether option has the specified name or alias. More... | |
template<typename Choices > | |
bool | util::details::operator!= (MultipleChoiceSelectionOption_t< Choices > const &option, std::string const &label) |
Returns whether option does not have the specified name or alias. More... | |
template<typename Choices > | |
bool | util::details::operator!= (std::string const &label, MultipleChoiceSelectionOption_t< Choices > const &option) |
Returns whether option does not have the specified name or alias. More... | |
Variables | |
template<typename... Strings> | |
constexpr auto | util::details::AllConvertibleToStrings_v |
Helper to select an string option among a set of allowed choices.
Definition in file MultipleChoiceSelection.h.
bool my_lexicographical_compare | ( | B1 | b1, |
E1 | e1, | ||
B2 | b2, | ||
E2 | e2, | ||
Comp | less | ||
) |
Definition at line 476 of file MultipleChoiceSelection.h.
References util::details::CaseInsensitiveComparer::less().