Skip to content

Commit 1c74ce0

Browse files
authored
CXX-3069 document headers and root namespace redeclarations (mongocxx) (#1184)
* Add missing documentation for mongocxx::stdx * CXX-3069 document headers and redeclarations (mongocxx)
1 parent 289c250 commit 1c74ce0

File tree

202 files changed

+2381
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+2381
-12
lines changed

src/mongocxx/include/mongocxx/fwd.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,14 @@
7676
/// @namespace mongocxx::result::gridfs
7777
/// Declares entities representing the result of GridFS commands.
7878
///
79+
80+
///
81+
/// @namespace mongocxx::stdx
82+
/// Redeclares @ref bsoncxx C++17 standard library polyfills in the @ref mongocxx library namespace
83+
/// for internal use.
84+
///
85+
/// @deprecated Use @ref bsoncxx::stdx instead.
86+
///
87+
/// @warning These redeclarations are for internal use only! Users should reference entities
88+
/// declared in @ref bsoncxx directly, not through @ref mongocxx.
89+
///

src/mongocxx/include/mongocxx/v_noabi/mongocxx/bulk_write-fwd.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@ using ::mongocxx::v_noabi::bulk_write;
3131
} // namespace mongocxx
3232

3333
#include <mongocxx/config/postlude.hpp>
34+
35+
///
36+
/// @file
37+
/// Declares @ref mongocxx::v_noabi::bulk_write.
38+
///
39+
40+
#if defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
41+
42+
namespace mongocxx {
43+
44+
/// @ref mongocxx::v_noabi::bulk_write
45+
class bulk_write {};
46+
47+
} // namespace mongocxx
48+
49+
#endif // defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)

src/mongocxx/include/mongocxx/v_noabi/mongocxx/bulk_write.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,8 @@ class bulk_write {
117117
} // namespace mongocxx
118118

119119
#include <mongocxx/config/postlude.hpp>
120+
121+
///
122+
/// @file
123+
/// Provides @ref mongocxx::v_noabi::bulk_write.
124+
///

src/mongocxx/include/mongocxx/v_noabi/mongocxx/change_stream-fwd.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@ using ::mongocxx::v_noabi::change_stream;
3131
} // namespace mongocxx
3232

3333
#include <mongocxx/config/postlude.hpp>
34+
35+
///
36+
/// @file
37+
/// Declares @ref mongocxx::v_noabi::change_stream.
38+
///
39+
40+
#if defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
41+
42+
namespace mongocxx {
43+
44+
/// @ref mongocxx::v_noabi::change_stream
45+
class change_stream {};
46+
47+
} // namespace mongocxx
48+
49+
#endif // defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)

src/mongocxx/include/mongocxx/v_noabi/mongocxx/change_stream.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,8 @@ class change_stream::iterator {
221221
} // namespace mongocxx
222222

223223
#include <mongocxx/config/postlude.hpp>
224+
225+
///
226+
/// @file
227+
/// Provides @ref mongocxx::v_noabi::change_stream.
228+
///

src/mongocxx/include/mongocxx/v_noabi/mongocxx/client-fwd.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@ using ::mongocxx::v_noabi::client;
3131
} // namespace mongocxx
3232

3333
#include <mongocxx/config/postlude.hpp>
34+
35+
///
36+
/// @file
37+
/// Declares @ref mongocxx::v_noabi::client.
38+
///
39+
40+
#if defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
41+
42+
namespace mongocxx {
43+
44+
/// @ref mongocxx::v_noabi::client
45+
class client {};
46+
47+
} // namespace mongocxx
48+
49+
#endif // defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)

src/mongocxx/include/mongocxx/v_noabi/mongocxx/client.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,3 +463,8 @@ MONGOCXX_INLINE mongocxx::v_noabi::database client::operator[](
463463
} // namespace mongocxx
464464

465465
#include <mongocxx/config/postlude.hpp>
466+
467+
///
468+
/// @file
469+
/// Provides @ref mongocxx::v_noabi::client.
470+
///

src/mongocxx/include/mongocxx/v_noabi/mongocxx/client_encryption-fwd.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@ using ::mongocxx::v_noabi::client_encryption;
3131
} // namespace mongocxx
3232

3333
#include <mongocxx/config/postlude.hpp>
34+
35+
///
36+
/// @file
37+
/// Declares @ref mongocxx::v_noabi::client_encryption.
38+
///
39+
40+
#if defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
41+
42+
namespace mongocxx {
43+
44+
/// @ref mongocxx::v_noabi::client_encryption
45+
class client_encryption {};
46+
47+
} // namespace mongocxx
48+
49+
#endif // defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)

src/mongocxx/include/mongocxx/v_noabi/mongocxx/client_encryption.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,3 +284,8 @@ class client_encryption {
284284
} // namespace mongocxx
285285

286286
#include <mongocxx/config/postlude.hpp>
287+
288+
///
289+
/// @file
290+
/// Provides @ref mongocxx::v_noabi::client_encryption.
291+
///

src/mongocxx/include/mongocxx/v_noabi/mongocxx/client_session-fwd.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@ using ::mongocxx::v_noabi::client_session;
3131
} // namespace mongocxx
3232

3333
#include <mongocxx/config/postlude.hpp>
34+
35+
///
36+
/// @file
37+
/// Declares @ref mongocxx::v_noabi::client_session.
38+
///
39+
40+
#if defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
41+
42+
namespace mongocxx {
43+
44+
/// @ref mongocxx::v_noabi::client_session
45+
class client_session {};
46+
47+
} // namespace mongocxx
48+
49+
#endif // defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)

0 commit comments

Comments
 (0)