MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
bsoncxx Namespace Reference

Description

The top-level namespace within which all bsoncxx library entities are declared.

In addition to declaring ABI namespaces (v_noabi, v1, etc.), this namespace also provides "redeclarations" of entities within ABI namespaces. These redeclarations are intended to be the preferred method for using bsoncxx library entities when ABI stability of the bsoncxx library is NOT a requirement by the user. See Root Namespace Redeclarations.

Namespaces

namespace  array
 Declares entities representing a BSON array.
 
namespace  builder
 Declares entities used to build BSON documents.
 
namespace  document
 Declares entities representing a BSON document.
 
namespace  stdx
 Declares C++17 standard library polyfills.
 
namespace  string
 Declares entities related to handling string types.
 
namespace  types
 Declares entities representing BSON value types.
 
namespace  v_noabi
 Declares entities whose ABI stability is NOT guaranteed.
 

Classes

class  decimal128
 bsoncxx::v_noabi::decimal128 More...
 
class  error_code
 bsoncxx::v_noabi::error_code More...
 
class  exception
 bsoncxx::v_noabi::exception More...
 
class  oid
 bsoncxx::v_noabi::oid More...
 
class  validator
 bsoncxx::v_noabi::validator More...
 
class  view_or_value
 bsoncxx::v_noabi::view_or_value More...
 

Enumerations

enum class  ExtendedJsonMode
 bsoncxx::v_noabi::ExtendedJsonMode More...
 

Functions

const std::error_category & error_category ()
 bsoncxx::v_noabi::error_category()
 
v_noabi::document::value from_json (v_noabi::stdx::string_view json)
 bsoncxx::v_noabi::from_json(v_noabi::stdx::string_view json)
 
std::error_code make_error_code (v_noabi::error_code error)
 bsoncxx::v_noabi::make_error_code(v_noabi::error_code error)
 
template<typename View , typename Value >
bool operator!= (const v_noabi::view_or_value< View, Value > &lhs, const v_noabi::view_or_value< View, Value > &rhs)
 bsoncxx::v_noabi::operator!=(const v_noabi::view_or_value<View, Value>& lhs, const v_noabi::view_or_value<View, Value>& rhs)
 
template<typename View , typename Value >
bool operator!= (const v_noabi::view_or_value< View, Value > &lhs, const Value &rhs)
 bsoncxx::v_noabi::operator!=(const v_noabi::view_or_value<View, Value>& lhs, const Value& rhs)
 
template<typename View , typename Value >
bool operator!= (const v_noabi::view_or_value< View, Value > &lhs, View rhs)
 bsoncxx::v_noabi::operator!=(const v_noabi::view_or_value<View, Value>& lhs, View rhs)
 
template<typename View , typename Value >
bool operator!= (View lhs, const v_noabi::view_or_value< View, Value > &rhs)
 bsoncxx::v_noabi::operator!=(View lhs, const v_noabi::view_or_value<View, Value>& rhs)
 
v_noabi::document::value operator""_bson (const char *json, std::size_t len)
 bsoncxx::v_noabi::operator ""_bson(const char* json, size_t len)
 
template<typename View , typename Value >
bool operator== (const v_noabi::view_or_value< View, Value > &lhs, const v_noabi::view_or_value< View, Value > &rhs)
 bsoncxx::v_noabi::operator==(const v_noabi::view_or_value<View, Value>& lhs, const v_noabi::view_or_value<View, Value>& rhs)
 
template<typename View , typename Value >
bool operator== (const v_noabi::view_or_value< View, Value > &lhs, const Value &rhs)
 bsoncxx::v_noabi::operator==(const v_noabi::view_or_value<View, Value>& lhs, const Value& rhs)
 
template<typename View , typename Value >
bool operator== (const v_noabi::view_or_value< View, Value > &lhs, View rhs)
 bsoncxx::v_noabi::operator==(const v_noabi::view_or_value<View, Value>& lhs, View rhs)
 
template<typename View , typename Value >
bool operator== (const Value &lhs, const v_noabi::view_or_value< View, Value > &rhs)
 bsoncxx::v_noabi::operator==(const Value& lhs, const v_noabi::view_or_value<View, Value>& rhs)
 
template<typename View , typename Value >
bool operator== (View lhs, const v_noabi::view_or_value< View, Value > &rhs)
 bsoncxx::v_noabi::operator==(View lhs, const v_noabi::view_or_value<View, Value>& rhs)
 
std::string to_json (v_noabi::array::view view, v_noabi::ExtendedJsonMode mode=ExtendedJsonMode::k_legacy)
 bsoncxx::v_noabi::to_json(v_noabi::array::view view, v_noabi::ExtendedJsonMode mode)
 
std::string to_json (v_noabi::document::view view, v_noabi::ExtendedJsonMode mode=ExtendedJsonMode::k_legacy)
 bsoncxx::v_noabi::to_json(v_noabi::document::view view, v_noabi::ExtendedJsonMode mode)
 
std::string to_string (v_noabi::binary_sub_type rhs)
 bsoncxx::v_noabi::to_string(v_noabi::binary_sub_type rhs)
 
std::string to_string (v_noabi::type rhs)
 bsoncxx::v_noabi::to_string(v_noabi::type rhs)
 
v_noabi::stdx::optional< v_noabi::document::viewvalidate (const std::uint8_t *data, std::size_t length)
 bsoncxx::v_noabi::validate(const std::uint8_t* data, std::size_t length)
 
v_noabi::stdx::optional< v_noabi::document::viewvalidate (const std::uint8_t *data, std::size_t length, const v_noabi::validator &validator, std::size_t *invalid_offset=nullptr)
 bsoncxx::v_noabi::validate(const std::uint8_t* data, std::size_t length, const v_noabi::validator& validator, std::size_t* invalid_offset)
 

Enumeration Type Documentation

◆ ExtendedJsonMode

Function Documentation

◆ error_category()

const std::error_category & bsoncxx::error_category ( )

◆ from_json()

◆ make_error_code()

std::error_code bsoncxx::make_error_code ( v_noabi::error_code error)

◆ operator!=() [1/4]

template<typename View , typename Value >
bool bsoncxx::operator!= ( const v_noabi::view_or_value< View, Value > & lhs,
const v_noabi::view_or_value< View, Value > & rhs )

◆ operator!=() [2/4]

template<typename View , typename Value >
bool bsoncxx::operator!= ( const v_noabi::view_or_value< View, Value > & lhs,
const Value & rhs )

◆ operator!=() [3/4]

template<typename View , typename Value >
bool bsoncxx::operator!= ( const v_noabi::view_or_value< View, Value > & lhs,
View rhs )

◆ operator!=() [4/4]

template<typename View , typename Value >
bool bsoncxx::operator!= ( View lhs,
const v_noabi::view_or_value< View, Value > & rhs )

◆ operator""_bson()

v_noabi::document::value bsoncxx::operator""_bson ( const char * json,
std::size_t len )

◆ operator==() [1/5]

template<typename View , typename Value >
bool bsoncxx::operator== ( const v_noabi::view_or_value< View, Value > & lhs,
const v_noabi::view_or_value< View, Value > & rhs )

◆ operator==() [2/5]

template<typename View , typename Value >
bool bsoncxx::operator== ( const v_noabi::view_or_value< View, Value > & lhs,
const Value & rhs )

◆ operator==() [3/5]

template<typename View , typename Value >
bool bsoncxx::operator== ( const v_noabi::view_or_value< View, Value > & lhs,
View rhs )

◆ operator==() [4/5]

template<typename View , typename Value >
bool bsoncxx::operator== ( const Value & lhs,
const v_noabi::view_or_value< View, Value > & rhs )

◆ operator==() [5/5]

template<typename View , typename Value >
bool bsoncxx::operator== ( View lhs,
const v_noabi::view_or_value< View, Value > & rhs )

◆ to_json() [1/2]

◆ to_json() [2/2]

◆ to_string() [1/2]

◆ to_string() [2/2]

std::string bsoncxx::to_string ( v_noabi::type rhs)

◆ validate() [1/2]

◆ validate() [2/2]

v_noabi::stdx::optional< v_noabi::document::view > bsoncxx::validate ( const std::uint8_t * data,
std::size_t length,
const v_noabi::validator & validator,
std::size_t * invalid_offset = nullptr )