Lines Matching defs:ArgumentBuilder
120 struct ArgumentBuilder { struct
122 ArgumentBuilder<TArg>& WithRange(const TArg& min, const TArg& max) { in WithRange()
134 ArgumentBuilder<TArg>& WithValues(std::initializer_list<TArg> value_list) { in WithValues()
141 ArgumentBuilder<TArg> WithValue(const TArg& value) { in WithValue()
150 ArgumentBuilder<TArg>& WithValueMap( in WithValueMap()
162 ArgumentBuilder<TArg>& AppendValues() { in AppendValues()
169 using MapKey = TVariantMapKey<TArg>;
173 CmdlineParser::Builder& IntoKey(const MapKey& key) { in IntoKey()
203 CmdlineParser::Builder& IntoIgnore() { 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()
240 void CompleteArgument() { in CompleteArgument()
261 ArgumentBuilder(CmdlineParser::Builder& parser, in ArgumentBuilder() function
277 CmdlineParser::Builder& parent_;
278 std::function<void(TArg&)> save_value_;
279 std::function<TArg&(void)> load_value_;
280 bool save_value_specified_;
281 bool load_value_specified_;
282 detail::CmdlineParserArgumentInfo<TArg> argument_info_;
284 std::shared_ptr<SaveDestination> save_destination_;