450 return !(lhs == rhs);
A non-owning, read-only BSON document.
Definition view.hpp:54
An iterator over change stream events.
Definition change_stream.hpp:333
std::ptrdiff_t difference_type
Provide std::iterator_traits<T>::difference_type.
Definition change_stream.hpp:351
friend bool operator!=(iterator const &lhs, iterator const &rhs)
Equivalent to !(lhs == rhs).
Definition change_stream.hpp:449
value_type reference
Provide std::iterator_traits<T>::reference.
Definition change_stream.hpp:361
iterator(iterator &&other) noexcept
Move construction.
value_type const * pointer
Provide std::iterator_traits<T>::pointer.
Definition change_stream.hpp:356
bsoncxx::v1::document::view value_type
Provide std::iterator_traits<T>::value_type.
Definition change_stream.hpp:346
~iterator()
Destroy this object.
iterator & operator++()
Increment this iterator.
friend bool operator==(iterator const &lhs, iterator const &rhs)
Equality comparison.
std::input_iterator_tag iterator_category
Provide std::iterator_traits<T>::iterator_category.
Definition change_stream.hpp:341
Options for mongocxx::v1::change_stream.
Definition change_stream.hpp:174
options & collation(bsoncxx::v1::document::value v)
Set the "collation" option.
options & batch_size(std::int32_t v)
Set the "batchSize" option.
options & start_at_operation_time(bsoncxx::v1::types::b_timestamp v)
Set the "startAtOperationTime" option.
options(options &&other) noexcept
Move constructor.
options & resume_after(bsoncxx::v1::document::value v)
Set the "resumeAfter" option.
options & start_after(bsoncxx::v1::document::value v)
Set the "startAfter" option.
options & max_await_time(std::chrono::milliseconds v)
Set the "maxAwaitTimeMS" option.
options & comment(bsoncxx::v1::types::value v)
Set the "comment" option.
options & full_document_before_change(std::string v)
Set the "fullDocumentBeforeChange" option.
~options()
Destroy this object.
options & full_document(std::string v)
Set the "fullDocument" option.
~change_stream()
Destroy this object.
change_stream(change_stream &&other) noexcept
Move constructor.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > get_resume_token() const
Return the resume token for this change stream.
iterator end() const
Return an end iterator.
Definition change_stream.hpp:459
bsoncxx::v1::document::view next()
Obtain the next event document.
iterator begin()
Return an iterator associated with this change stream.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > try_next()
Try to obtain the next event document.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard postlude header.
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v1::change_stream.
Declares bsoncxx::v1::document::value.
Provides bsoncxx::v1::document::view.
Provides std::optional-related polyfills for library API usage.
Provides std::string_view-related polyfills for library API usage.
Provides bsoncxx::v1::types::value.
Provides non-owning, read-only entities representing a BSON type value.