Joedb
9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
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
6
namespace
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
joedb::Blob
Definition
Blob.h:11
joedb::Blob::Blob
Blob()
Definition
Blob.h:21
joedb::Blob::is_null
bool is_null() const
Definition
Blob.h:25
joedb::Blob::get_position
int64_t get_position() const noexcept
Definition
Blob.h:28
joedb::Blob::operator<
bool operator<(Blob blob) const
Definition
Blob.h:26
joedb::Blob::Blob
Blob(int64_t position)
Definition
Blob.h:16
joedb
Definition
Blob.h:7
Generated by
1.9.8