OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.
ozo::options_factory< Options > Class Template Reference

#include <ozo/core/options.h>

Description

template<typename Options = decltype(hana::make_map())>
class ozo::options_factory< Options >

Generic options factory.

Compile-time factory of options map.

Template Parameters
<tt>Options</tt>— initial options set, default is empty boost::hana::map.

Inherits ozo::options_factory_base< options_factory< decltype(hana::make_map()) >, decltype(hana::make_map()) >.

Public Member Functions

constexpr options_factory (Options options=Options{})
 
- Public Member Functions inherited from ozo::options_factory_base< options_factory< decltype(hana::make_map()) >, decltype(hana::make_map()) >
constexpr options_factory_base (decltype(hana::make_map()) v)
 
constexpr decltype(auto) set (decltype(hana::make_map()) &&...options) &&
 
constexpr auto has (ozo::option< Key > op) const
 
constexpr decltype(auto) get (ozo::option< Key > op) const
 
constexpr const decltype(hana::make_map()) & options () const &
 
constexpr decltype(hana::make_map()) & options () &
 
constexpr decltype(hana::make_map()) && options () &&
 

Friends

class ozo::options_factory_base< options_factory< Options >, Options >
 

Constructors

◆ options_factory()

template<typename Options = decltype(hana::make_map())>
constexpr ozo::options_factory< Options >::options_factory ( Options  options = Options{})
constexpr

Construct a new options factory object

Parameters
optionsboost::hana::map with default options, default value is empty map.