Lines Matching defs:ArgumentBuilder

125   struct ArgumentBuilder {  struct
127 ArgumentBuilder<TArg>& WithRange(const TArg& min, const TArg& max) { in WithRange()
139 ArgumentBuilder<TArg>& WithValues(std::initializer_list<TArg> value_list) { in WithValues()
146 ArgumentBuilder<TArg> WithValue(const TArg& value) { in WithValue()
155 ArgumentBuilder<TArg>& WithValueMap( in WithValueMap()
167 ArgumentBuilder<TArg>& AppendValues() { in AppendValues()
173 ArgumentBuilder<TArg>& WithMetavar(const char* sv) { in WithMetavar()
178 ArgumentBuilder<TArg>& WithHelp(const char* sv) { in WithHelp()
184 using MapKey = TVariantMapKey<TArg>;
188 CmdlineParser::Builder& IntoKey(const MapKey& key) { in IntoKey()
215 CmdlineParser::Builder& IntoLocation(std::optional<TArg>* destination) { in IntoLocation()
236 CmdlineParser::Builder& IntoIgnore() { in IntoIgnore()
252 void SetValuesInternal(const std::vector<TArg>&& value_list) { in SetValuesInternal()
259 void SetNames(std::vector<const char*>&& names) { in SetNames()
263 void SetNames(std::initializer_list<const char*> names) { in SetNames()
267 void SetHelp(std::optional<const char*>&& val) { in SetHelp()
271 void SetCategory(std::optional<const char*>&& val) { in SetCategory()
274 void SetMetavar(std::optional<const char*>&& val) { in SetMetavar()
284 void CompleteArgument() { in CompleteArgument()
305 ArgumentBuilder(CmdlineParser::Builder& parser, in ArgumentBuilder() argument
321 CmdlineParser::Builder& parent_;
322 std::function<void(TArg&)> save_value_;
323 std::function<TArg&(void)> load_value_;
324 bool save_value_specified_;
325 bool load_value_specified_;
326 detail::CmdlineParserArgumentInfo<TArg> argument_info_;
328 std::shared_ptr<SaveDestination> save_destination_;