16 #ifndef ABSL_FLAGS_INTERNAL_FLAG_H_ 17 #define ABSL_FLAGS_INTERNAL_FLAG_H_ 23 namespace flags_internal {
34 filename, &flags_internal::
FlagOps<T>, marshalling_op,
44 std::string
Help()
const {
return internal.Help(); }
45 std::string
Filename()
const {
return internal.Filename(); }
50 internal.SetCallback(mutation_callback);
66 template <
typename T,
bool do_register>
74 flag_->SetCallback(cb);
80 operator bool()
const {
return true; }
103 #endif // ABSL_FLAGS_INTERNAL_FLAG_H_
std::string Filename() const
T * MakeFromDefaultValue(T t)
std::string(*)( HelpGenFunc)
void *(*)( InitialValGenFunc)
void *(*)(FlagOp, const void *, void *, void *) FlagMarshallingOpFn
void SetCallback(const flags_internal::FlagCallback mutation_callback)
flags_internal::Flag< T > Flag
absl::flags_internal::CommandLineFlag internal
FlagRegistrar & OnUpdate(flags_internal::FlagCallback cb)&&
Flag< T > & operator=(const Flag< T > &)=delete
absl::string_view Name() const
constexpr Flag(const char *name, const flags_internal::HelpGenFunc help_gen, const char *filename, const flags_internal::FlagMarshallingOpFn marshalling_op, const flags_internal::InitialValGenFunc initial_value_gen)
FlagRegistrar(Flag< T > *flag)
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
void * FlagOps(FlagOp op, const void *v1, void *v2)
bool RegisterCommandLineFlag(CommandLineFlag *flag, const void *ptr)