Lines Matching refs:std

89       return std::move(*variant_map_);  in ReleaseMap()
109 std::shared_ptr<TVariantMap> variant_map_;
134 ArgumentBuilder<TArg>& WithValues(std::initializer_list<TArg> value_list) { in WithValues()
151 std::initializer_list<std::pair<const char*, TArg>> key_value_list) { in WithValueMap()
180 << detail::ToStringAny(value) << "'" << std::endl; in IntoKey()
186 << std::endl; in IntoKey()
205 CMDLINE_DEBUG_LOG << "Ignored value '" << detail::ToStringAny(value) << "'" << std::endl; in IntoIgnore()
219 void SetValuesInternal(const std::vector<TArg>&& value_list) { in SetValuesInternal()
226 void SetNames(std::vector<const char*>&& names) { in SetNames()
230 void SetNames(std::initializer_list<const char*> names) { in SetNames()
252 std::move(argument_info_), in CompleteArgument()
253 std::move(save_value_), in CompleteArgument()
254 std::move(load_value_))); in CompleteArgument()
262 std::shared_ptr<SaveDestination> save_destination) in ArgumentBuilder()
278 std::function<void(TArg&)> save_value_;
279 std::function<TArg&(void)> load_value_;
284 std::shared_ptr<SaveDestination> save_destination_;
296 ArgumentBuilder<TArg> WithValues(std::initializer_list<TArg> values) { in WithValues()
299 return std::move(a); in WithValues()
319 void SetNames(std::vector<const char*>&& names) { in SetNames()
320 names_ = std::move(names); in SetNames()
323 void SetNames(std::initializer_list<const char*> names) { in SetNames()
335 b.SetNames(std::move(names_)); in CreateTypedBuilder()
336 return std::move(b); in CreateTypedBuilder()
340 typename std::enable_if<std::is_same<TArg, Unit>::value>::type
343 std::vector<Unit> values(names_.size(), Unit{}); // NOLINT [whitespace/braces] [5] in InitializeTypedBuilder()
344 arg_builder->SetValuesInternal(std::move(values)); in InitializeTypedBuilder()
358 std::vector<const char*> names_;
371 UntypedArgumentBuilder Define(std::initializer_list<const char*> names) { in Define()
374 return std::move(b); in Define()
384 Builder& Ignore(std::initializer_list<const char*> ignore_list) { in Ignore()
386 std::string ign = ignore_name; in Ignore()
393 if (ign.find('_') != std::string::npos) { // Does the arg-def have a wildcard? in Ignore()
395 auto&& builder = Define(ignore_name).template WithType<std::string>().IntoIgnore(); in Ignore()
416 std::move(ignore_list_), in Build()
418 std::move(completed_arguments_)); in Build()
420 return std::move(p); in Build()
425 auto smart_ptr = std::unique_ptr<detail::CmdlineParseArgumentAny>(arg); in AppendCompletedArgument()
426 completed_arguments_.push_back(std::move(smart_ptr)); in AppendCompletedArgument()
440 std::vector<const char*> ignore_list_;
441 std::shared_ptr<SaveDestination> save_destination_;
443 std::vector<std::unique_ptr<detail::CmdlineParseArgumentAny>> completed_arguments_;
446 CmdlineResult Parse(const std::string& argv) { in Parse()
447 std::vector<std::string> tokenized; in Parse()
450 return Parse(TokenRange(std::move(tokenized))); in Parse()
455 return Parse(std::string(argv)); in Parse()
460 CmdlineResult Parse(const std::vector<const char*>& argv) { in Parse()
466 CmdlineResult Parse(const std::vector<std::string>& argv) { in Parse()
501 std::vector<const char*>&& ignore_list, in CmdlineParser()
502 std::shared_ptr<SaveDestination> save_destination, in CmdlineParser()
503 std::vector<std::unique_ptr<detail::CmdlineParseArgumentAny>>&& completed_arguments) in CmdlineParser()
505 ignore_list_(std::move(ignore_list)), in CmdlineParser()
507 completed_arguments_(std::move(completed_arguments)) { in CmdlineParser()
550 std::string("Unknown argument: ") + possible_name[0]); in Parse()
559 std::pair<size_t, size_t> num_tokens = arg->GetNumTokens(); in Parse()
563 std::tie(min_tokens, max_tokens) = num_tokens; in Parse()
569 " num tokens in arg_def: " << min_tokens << "," << max_tokens << std::endl; in Parse()
571 std::string("Argument ") + in Parse()
573 + std::to_string(size_t(i + min_tokens) - arguments_list.Size()) + in Parse()
580 std::string("Argument ") + possible_name[0] + ": too few tokens " in Parse()
581 "matched " + std::to_string(best_match_size) in Parse()
582 + " but wanted " + std::to_string(num_tokens.first)); in Parse()
606 std::vector<const char*> ignore_list_;
607 std::shared_ptr<SaveDestination> save_destination_;
608 std::vector<std::unique_ptr<detail::CmdlineParseArgumentAny>> completed_arguments_;