#include <userver/formats/bson/types.hpp>
BSON ObjectId.
Definition at line 40 of file types.hpp.
|
| Oid () |
| Generates a new id.
|
|
| Oid (std::string_view hex_encoded) |
| Constructor from hex-encoded form, zero terminator is not required.
|
|
std::string | ToString () const |
| Returns hex-encoded value.
|
|
time_t | GetTimestamp () const |
| Returns stored unix timestamp.
|
|
std::chrono::system_clock::time_point | GetTimePoint () const |
| Returns stored time point.
|
|
bool | operator== (const Oid &) const |
|
bool | operator!= (const Oid &) const |
|
bool | operator< (const Oid &) const |
|
bool | operator> (const Oid &) const |
|
bool | operator<= (const Oid &) const |
|
bool | operator>= (const Oid &) const |
|
|
const uint8_t * | Data () const |
|
static constexpr size_t | Size () |
|
◆ MakeMinimalFor()
static Oid formats::bson::Oid::MakeMinimalFor |
( |
std::chrono::system_clock::time_point | time | ) |
|
|
static |
◆ Size()
static constexpr size_t formats::bson::Oid::Size |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ std::hash< Oid >
friend struct std::hash< Oid > |
|
friend |
The documentation for this class was generated from the following file: