Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Blob.h
Go to the documentation of this file.
1#ifndef joedb_Blob_declared
2#define joedb_Blob_declared
3
4#include <stdint.h>
5
6namespace joedb
7{
8 ////////////////////////////////////////////////////////////////////////////
9 class Blob
10 ////////////////////////////////////////////////////////////////////////////
11 {
12 private:
13 int64_t position;
14
15 public:
16 explicit Blob(int64_t position):
17 position(position)
18 {
19 }
20
21 Blob(): Blob(0)
22 {
23 }
24
25 bool is_null() const {return position == 0;}
26 bool operator<(Blob blob) const {return position < blob.position;}
27
28 int64_t get_position() const noexcept {return position;}
29 };
30}
31
32#endif
bool is_null() const
Definition Blob.h:25
int64_t get_position() const noexcept
Definition Blob.h:28
bool operator<(Blob blob) const
Definition Blob.h:26
Blob(int64_t position)
Definition Blob.h:16
Definition Blob.h:7