19 #include <bsoncxx/stdx/string_view.hpp> 20 #include <mongocxx/events/server_description.hpp> 21 #include <mongocxx/read_preference.hpp> 23 #include <mongocxx/config/prelude.hpp> 26 MONGOCXX_INLINE_NAMESPACE_BEGIN
44 using container = std::vector<server_description>;
102 std::
size_t size() const noexcept;
108 container _container;
113 MONGOCXX_PRIVATE explicit topology_description(
void* event);
118 ~topology_description();
126 bsoncxx::stdx::string_view type() const;
147 bool has_writable_server() const;
163 MONGOCXX_INLINE_NAMESPACE_END
166 #include <mongocxx/config/postlude.hpp> Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Definition: error_code.hpp:117
container::iterator iterator
The array's iterator type.
Definition: topology_description.hpp:68
Class representing what the driver knows about a MongoDB server.
Definition: server_description.hpp:30
container::const_iterator const_iterator
The array's const iterator type.
Definition: topology_description.hpp:73
Class representing what the driver knows about a topology of MongoDB servers: either a standalone...
Definition: topology_description.hpp:37
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:62
An array of server_description instances.
Definition: topology_description.hpp:42
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24