MongoDB C++ Driver
4.2.0
Loading...
Searching...
No Matches
pool.hpp
Go to the documentation of this file.
1
// Copyright 2009-present MongoDB, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#pragma once
16
17
#include <
mongocxx/options/pool-fwd.hpp
>
// IWYU pragma: export
18
19
//
20
21
#include <
mongocxx/v1/pool.hpp
>
// IWYU pragma: export
22
23
#include <utility>
24
25
#include <
mongocxx/options/client.hpp
>
26
27
#include <
mongocxx/config/prelude.hpp
>
28
29
namespace
mongocxx
{
30
namespace
v_noabi
{
31
namespace
options
{
32
36
class
pool
{
37
public
:
41
pool
() =
default
;
42
50
pool
(
v_noabi::options::client
client_opts
) : _client_opts{std::move(
client_opts
)} {}
51
57
v_noabi::options::client
const
&
client_opts
()
const
{
58
return
_client_opts;
59
}
60
61
private
:
62
v_noabi::options::client
_client_opts;
63
};
64
65
}
// namespace options
66
}
// namespace v_noabi
67
}
// namespace mongocxx
68
69
#include <
mongocxx/config/postlude.hpp
>
70
mongocxx::options::pool::pool
pool()=default
Default initialization.
mongocxx::v_noabi::options::client
Used by clients.
Definition
client.hpp:42
mongocxx::v_noabi::options::pool::pool
pool()=default
Default initialization.
mongocxx::v_noabi::options::pool::pool
pool(v_noabi::options::client client_opts)
Constructs a new pool options object. Note that options::pool is implictly convertible from options::...
Definition
pool.hpp:50
mongocxx::v_noabi::options::pool::client_opts
v_noabi::options::client const & client_opts() const
The current client options.
Definition
pool.hpp:57
postlude.hpp
The mongocxx v_noabi macro guard postlude header.
prelude.hpp
The mongocxx v_noabi macro guard prelude header.
mongocxx::v_noabi::options
Declares entities representing options to use with various commands.
mongocxx::v_noabi
Declares entities whose ABI stability is NOT guaranteed.
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
pool.hpp
Provides mongocxx::v1::pool.
client.hpp
Provides mongocxx::v_noabi::options::client.
pool-fwd.hpp
Declares mongocxx::v_noabi::options::pool.
mongocxx
v_noabi
mongocxx
options
pool.hpp
Generated by
1.15.0