|
xapian-core
2.0.0
|
#include <honey_table.h>
Collaboration diagram for BufferedFile:Public Member Functions | |
| BufferedFile () | |
| BufferedFile (const BufferedFile &o) | |
| BufferedFile (int fd_, off_t offset_, off_t pos_, bool read_only_) | |
| ~BufferedFile () | |
| off_t | get_offset () const |
| void | close (bool fd_owned) |
| void | force_close (bool fd_owned) |
| bool | is_open () const |
| bool | was_forced_closed () const |
| bool | open (const std::string &path, bool read_only_) |
| off_t | get_pos () const |
| void | set_pos (off_t pos_) |
| void | skip (size_t delta) const |
| void | write (unsigned char ch) |
| void | write (const char *p, size_t len) |
| int | read () const |
| uint4 | read_uint4_be () const |
| void | read (char *p, size_t len) const |
| void | flush () |
| void | sync () |
| void | rewind (off_t start) |
Private Attributes | |
| BufferedFileCommon * | common = nullptr |
| off_t | pos = 0 |
| Offset in file. More... | |
| bool | read_only = true |
| size_t | buf_end = 0 |
| Index into buf where buffered data ends. More... | |
| char | buf [4096] |
| const int | FORCED_CLOSE = -2 |
Definition at line 91 of file honey_table.h.
|
inline |
Definition at line 110 of file honey_table.h.
|
inline |
Definition at line 112 of file honey_table.h.
References BufferedFileCommon::_refs, buf, buf_end, common, and read_only.
|
inline |
Definition at line 123 of file honey_table.h.
|
inline |
Definition at line 127 of file honey_table.h.
References BufferedFileCommon::_refs, and common.
|
inline |
Definition at line 134 of file honey_table.h.
References common, and BufferedFileCommon::fd.
Referenced by HoneyTable::close(), force_close(), and HoneyTable::~HoneyTable().
|
inline |
Definition at line 319 of file honey_table.h.
References buf, buf_end, common, BufferedFileCommon::fd, io_write(), pos, and read_only.
Referenced by HoneyTable::flush_db(), and set_pos().
|
inline |
Definition at line 141 of file honey_table.h.
References close(), common, BufferedFileCommon::fd, and FORCED_CLOSE.
Referenced by HoneyTable::close().
|
inline |
Definition at line 132 of file honey_table.h.
References common, and BufferedFileCommon::offset.
|
inline |
Definition at line 171 of file honey_table.h.
References buf_end, pos, and read_only.
Referenced by HoneyCursor::HoneyCursor(), and SSTIndex::write().
|
inline |
Definition at line 148 of file honey_table.h.
References common, and BufferedFileCommon::fd.
Referenced by HoneyTable::is_open().
|
inline |
Definition at line 154 of file honey_table.h.
References BufferedFileCommon::_refs, common, io_open_stream_rd(), io_open_stream_wr(), and read_only.
|
inline |
Definition at line 275 of file honey_table.h.
References buf, buf_end, common, BufferedFileCommon::fd, io_pread(), and pos.
Referenced by read_uint4_be().
|
inline |
Definition at line 300 of file honey_table.h.
References AssertEq, buf, buf_end, common, BufferedFileCommon::fd, io_pread(), BufferedFileCommon::offset, p, and pos.
|
inline |
Definition at line 292 of file honey_table.h.
References read().
|
inline |
Definition at line 331 of file honey_table.h.
|
inline |
Definition at line 175 of file honey_table.h.
References buf_end, flush(), pos, and read_only.
Referenced by HoneyCursor::HoneyCursor(), and HoneyCursor::rewind().
|
inline |
Definition at line 194 of file honey_table.h.
|
inline |
Definition at line 327 of file honey_table.h.
References common, BufferedFileCommon::fd, and io_sync().
Referenced by HoneyTable::sync().
|
inline |
Definition at line 150 of file honey_table.h.
References common, BufferedFileCommon::fd, and FORCED_CLOSE.
Referenced by HoneyCursor::next().
|
inline |
Definition at line 225 of file honey_table.h.
References buf, buf_end, common, BufferedFileCommon::fd, io_write(), p, and pos.
|
inline |
Definition at line 215 of file honey_table.h.
References buf, buf_end, common, BufferedFileCommon::fd, io_write(), and pos.
Referenced by SSTIndex::write().
|
mutableprivate |
Definition at line 105 of file honey_table.h.
Referenced by BufferedFile(), flush(), read(), and write().
|
mutableprivate |
Index into buf where buffered data ends.
Definition at line 104 of file honey_table.h.
Referenced by BufferedFile(), flush(), get_pos(), read(), rewind(), set_pos(), skip(), and write().
|
private |
Definition at line 92 of file honey_table.h.
Referenced by BufferedFile(), close(), flush(), force_close(), get_offset(), is_open(), open(), read(), sync(), was_forced_closed(), write(), and ~BufferedFile().
|
private |
Definition at line 107 of file honey_table.h.
Referenced by force_close(), and was_forced_closed().
|
mutableprivate |
|
private |
Definition at line 101 of file honey_table.h.
Referenced by BufferedFile(), flush(), get_pos(), open(), rewind(), set_pos(), and skip().