|
|
| DistributionFactory (DistributionPtr *ptr, std::string &&desc) |
| |
|
| Factory (Type *ptr, std::string &&desc) |
| |
|
| Factory (Type *ptr, std::string &&desc, FactoryMap &&fs) |
| |
|
| Factory (Type *ptr, std::string &&desc, FactoryPairList fs) |
| |
| void | from_conf (const Conf &c) override |
| |
| void | to_json (Json &j) const override |
| |
| void | reset_ptr () override |
| |
| | FactoryBase (std::string &&desc="") |
| |
|
| FactoryBase (std::string &&desc, FactoryPairList fs) |
| |
|
| FactoryBase (std::string &&desc, FactoryMap &&fs) |
| |
| Factory< DistributionPtr > | factory_key (const std::string &keyword) && |
| |
| Factory< DistributionPtr > | args_key (const std::string &keyword) && |
| |
| Factory< DistributionPtr > | args_subset (bool value) && |
| |
| Factory< DistributionPtr > | transform_schema (TransformFunc f) && |
| |
| void | set_factory_key (const std::string &keyword) |
| |
| void | set_args_key (const std::string &keyword) |
| |
| void | set_args_subset (bool value) |
| |
| void | set_transform_schema (TransformFunc f) |
| |
| const TypeFactory & | get_factory (const std::string &key) const |
| |
| bool | has_factory (const std::string &key) const |
| |
| bool | add_factory (const std::string &key, Box &&s, MakeFunc f) |
| |
| void | set_factory (const std::string &key, Box &&s, MakeFunc f) |
| |
| void | add_default_factory (const std::string &key) |
| |
| Json | json_schema () const override |
| |
| void | validate (const Conf &c) const override |
| |
|
Type | make (const Conf &c) const |
| |
|
Type | deserialize (const Conf &c) const |
| |
|
Json | serialize (const Type &x) const |
| |
|
| Base (JsonType t, std::string &&desc) |
| |
|
| Base (JsonType t) |
| |
|
| Base (std::string &&desc) |
| |
| Interface * | clone () const override |
| |
|
| operator Box () const |
| |
| JsonType | type () const override |
| |
| std::string | type_string () const override |
| |
| Json | usage () const override |
| |
| bool | is_required () const override |
| |
|
Factory< DistributionPtr > | require () && |
| |
|
Factory< DistributionPtr > | required (bool value) && |
| |
|
Factory< DistributionPtr > | reset_pointer () && |
| |
|
bool | has_description () const |
| |
| void | set_description (const std::string &s) override |
| |
|
void | set_description (std::string &&s) |
| |
| const std::string & | description () const override |
| |
|
Factory< DistributionPtr > | description (std::string &&desc) && |
| |
| virtual bool | is_variant () const |
| |
| virtual bool | is_valid (const Conf &c) const |
| |
| virtual Json | to_json () const |
| |
|
|
using | Type = typename FactoryBase< DistributionPtr, Factory< DistributionPtr > >::Type |
| |
|
using | MakeFunc = typename FactoryBase< DistributionPtr, Factory< DistributionPtr > >::MakeFunc |
| |
|
using | TypeFactory = typename FactoryBase< DistributionPtr, Factory< DistributionPtr > >::TypeFactory |
| |
|
using | FactoryMap = typename FactoryBase< DistributionPtr, Factory< DistributionPtr > >::FactoryMap |
| |
|
using | FactoryPairList = typename FactoryBase< DistributionPtr, Factory< DistributionPtr > >::FactoryPairList |
| |
|
using | Type = DistributionPtr |
| |
|
using | MakeFunc = std::function< DistributionPtr(const Conf &c)> |
| |
|
using | TransformFunc = std::function< Box(Struct &&)> |
| |
|
using | FactoryMap = std::map< std::string, TypeFactory > |
| |
|
using | FactoryPairList = std::initializer_list< std::pair< std::string, TypeFactory > > |
| |
|
void | reset_schema () |
| |
|
std::vector< Box > | factory_schemas () const |
| |
|
std::vector< Json > | factory_json_schemas () const |
| |
|
void | validate_type (const Conf &c) const |
| |
|
void | throw_error (const Conf &c, const char *format, Args... args) const |
| |
|
void | throw_error (const ConfError &e) const |
| |
|
void | throw_wrong_type (const Conf &c) const |
| |
|
void | augment_schema (Json &j) const |
| |
|
std::shared_ptr< Variant > | schema_ |
| |
|
TransformFunc | transform_func_ |
| |
|
FactoryMap | available_ |
| |
|
std::string | factory_key_ |
| |
|
std::string | args_key_ |
| |
|
bool | args_subset_ |
| |
|
JsonType | type_ |
| |
|
bool | required_ |
| |
|
std::string | desc_ |
| |