Lines Matching refs:value
312 default_value(const std::string& value) = 0;
315 implicit_value(const std::string& value) = 0;
521 check_signed_range(bool negative, U value, const std::string& text)
523 SignedCheck<T, std::numeric_limits<T>::is_signed>()(negative, value, text);
546 integer_parser(const std::string& text, T& value)
558 value = 0;
606 value = checked_negate<T>(result,
612 value = static_cast<T>(result);
617 void stringstream_parser(const std::string& text, T& value)
620 in >> value;
628 parse_value(const std::string& text, uint8_t& value)
630 integer_parser(text, value);
635 parse_value(const std::string& text, int8_t& value)
637 integer_parser(text, value);
642 parse_value(const std::string& text, uint16_t& value)
644 integer_parser(text, value);
649 parse_value(const std::string& text, int16_t& value)
651 integer_parser(text, value);
656 parse_value(const std::string& text, uint32_t& value)
658 integer_parser(text, value);
663 parse_value(const std::string& text, int32_t& value)
665 integer_parser(text, value);
670 parse_value(const std::string& text, uint64_t& value)
672 integer_parser(text, value);
677 parse_value(const std::string& text, int64_t& value)
679 integer_parser(text, value);
684 parse_value(const std::string& text, bool& value)
691 value = true;
698 value = false;
707 parse_value(const std::string& text, std::string& value)
709 value = text;
717 parse_value(const std::string& text, T& value) {
718 stringstream_parser(text, value);
723 parse_value(const std::string& text, std::vector<T>& value)
730 value.emplace_back(std::move(v));
737 parse_value(const std::string& text, std::optional<T>& value)
741 value = std::move(result);
748 static constexpr bool value = false;
754 static constexpr bool value = true;
803 return type_is_container<T>::value;
825 default_value(const std::string& value)
828 m_default_value = value;
833 implicit_value(const std::string& value)
836 m_implicit_value = value;
862 return std::is_same<T, bool>::value;
940 value()
947 value(T& t)
987 const Value& value() const {
1079 throw std::domain_error("No value");
1122 value() const
1202 std::shared_ptr<OptionDetails> value,
1216 std::shared_ptr<OptionDetails> value,
1292 std::shared_ptr<const Value> value,
1373 std::shared_ptr<const Value> value
1374 = ::cxxopts::value<bool>(),
1537 std::shared_ptr<const Value> value,
1582 value,
1600 std::shared_ptr<OptionDetails> value,
1605 auto& result = m_results[value];
1606 result.parse(value, arg);
1608 m_sequential.emplace_back(value->long_name(), arg);
1618 std::shared_ptr<OptionDetails> value,
1624 if (value->value().has_implicit())
1626 parse_option(value, name, value->value().get_implicit_value());
1635 if (value->value().has_implicit())
1637 parse_option(value, name, value->value().get_implicit_value());
1641 parse_option(value, name, argv[current + 1]);
1671 if (!iter->second->value().is_container())
1802 auto value = iter->second;
1807 checked_parse_arg(argc, argv, current, value, name);
1809 else if (value->value().has_implicit())
1811 parse_option(value, name, value->value().get_implicit_value());
1867 auto& value = detail->value();
1871 if(value.has_default() && !store.count() && !store.has_default()){
1906 std::shared_ptr<const Value> value,
1911 auto option = std::make_shared<OptionDetails>(s, l, stringDesc, value);
1927 value->has_default(), value->get_default_value(),
1928 value->has_implicit(), value->get_implicit_value(),
1930 value->is_container(),
1931 value->is_boolean()});