#include <mongocxx/v1/pool.hpp>
A handle to a client object owned by an associated pool.
Public Member Functions | |
| entry (entry &&other) noexcept | |
| Move constructor. | |
| entry (entry const &other)=delete | |
| This class is not copyable. | |
| ~entry () | |
| Destroy this object, releasing the managed client object back to the associated pool. | |
| operator bool () const | |
| Return true when *this is NOT in an assign-or-destroy-only state. | |
| v1::client & | operator* () |
| Access the managed client. | |
| v1::client * | operator-> () |
| Access the managed client. | |
| entry & | operator= (entry &&other) noexcept |
| Move assignment. | |
| entry & | operator= (entry const &other)=delete |
| This class is not copyable. | |
| entry & | operator= (std::nullptr_t) |
| Explicitly release the managed client object back to the associated pool. | |
| v1::database | database (bsoncxx::v1::stdx::string_view name) |
| Equivalent to (*this)->database(name). | |
| v1::database | operator[] (bsoncxx::v1::stdx::string_view name) |
| Equivalent to (*this)->database(name). | |
| mongocxx::v1::pool::entry::~entry | ( | ) |
Destroy this object, releasing the managed client object back to the associated pool.
|
noexcept |
Move constructor.
|
delete |
This class is not copyable.
| v1::database mongocxx::v1::pool::entry::database | ( | bsoncxx::v1::stdx::string_view | name | ) |
Equivalent to (*this)->database(name).
|
explicit |
Return true when *this is NOT in an assign-or-destroy-only state.
| v1::client & mongocxx::v1::pool::entry::operator* | ( | ) |
Access the managed client.
| v1::client * mongocxx::v1::pool::entry::operator-> | ( | ) |
Access the managed client.
Move assignment.
This class is not copyable.
| entry & mongocxx::v1::pool::entry::operator= | ( | std::nullptr_t | ) |
Explicitly release the managed client object back to the associated pool.
| v1::database mongocxx::v1::pool::entry::operator[] | ( | bsoncxx::v1::stdx::string_view | name | ) |
Equivalent to (*this)->database(name).