userver: formats::bson::Binary Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
formats::bson::Binary Class Reference

BSON Binary. More...

#include <userver/formats/bson/types.hpp>

Public Member Functions

 Binary (std::string data)
 Constructor from a string storage.
 
bool operator== (const Binary &rhs) const
 
bool operator!= (const Binary &rhs) const
 
bool operator< (const Binary &rhs) const
 
bool operator> (const Binary &rhs) const
 
bool operator<= (const Binary &rhs) const
 
bool operator>= (const Binary &rhs) const
 
Raw data access
const std::string & ToString () const &
 
std::string && ToString () &&
 
const uint8_t * Data () const
 
size_t Size () const
 

Friends

struct std::hash< Binary >
 

Detailed Description

BSON Binary.

Definition at line 94 of file types.hpp.

Constructor & Destructor Documentation

◆ Binary()

formats::bson::Binary::Binary ( std::string  data)
inlineexplicit

Constructor from a string storage.

Definition at line 97 of file types.hpp.

Member Function Documentation

◆ Data()

const uint8_t * formats::bson::Binary::Data ( ) const
inline

Definition at line 104 of file types.hpp.

◆ operator!=()

bool formats::bson::Binary::operator!= ( const Binary rhs) const
inline

Definition at line 111 of file types.hpp.

◆ operator<()

bool formats::bson::Binary::operator< ( const Binary rhs) const
inline

Definition at line 112 of file types.hpp.

◆ operator<=()

bool formats::bson::Binary::operator<= ( const Binary rhs) const
inline

Definition at line 114 of file types.hpp.

◆ operator==()

bool formats::bson::Binary::operator== ( const Binary rhs) const
inline

Definition at line 110 of file types.hpp.

◆ operator>()

bool formats::bson::Binary::operator> ( const Binary rhs) const
inline

Definition at line 113 of file types.hpp.

◆ operator>=()

bool formats::bson::Binary::operator>= ( const Binary rhs) const
inline

Definition at line 115 of file types.hpp.

◆ Size()

size_t formats::bson::Binary::Size ( ) const
inline

Definition at line 107 of file types.hpp.

◆ ToString() [1/2]

std::string && formats::bson::Binary::ToString ( ) &&
inline

Definition at line 102 of file types.hpp.

◆ ToString() [2/2]

const std::string & formats::bson::Binary::ToString ( ) const &
inline

Definition at line 101 of file types.hpp.

Friends And Related Symbol Documentation

◆ std::hash< Binary >

friend struct std::hash< Binary >
friend

Definition at line 115 of file types.hpp.


The documentation for this class was generated from the following file: