userver: formats::bson::Binary Class Reference
Loading...
Searching...
No Matches
formats::bson::Binary Class Reference

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

Detailed Description

BSON Binary.

Definition at line 94 of file 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
 

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 109 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 112 of file types.hpp.

◆ operator==()

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

Definition at line 108 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 113 of file types.hpp.

◆ Size()

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

Definition at line 105 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 113 of file types.hpp.


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