namespace vase.
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
#include "../shard.h"
|
||||
#include "pch.h"
|
||||
|
||||
namespace crib::internal::vase {
|
||||
enum struct Direction : uint8_t {
|
||||
Forward,
|
||||
Backward
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "pch.h"
|
||||
#include "petal.h"
|
||||
|
||||
namespace crib::internal::vase {
|
||||
struct LineIterator {
|
||||
PetalIterator it;
|
||||
const char *chunk;
|
||||
@@ -18,3 +19,4 @@ struct LineIterator {
|
||||
bool next(std::string *line);
|
||||
uint64_t byte_offset();
|
||||
};
|
||||
} // namespace crib::internal::vase
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "iter.h"
|
||||
#include "pch.h"
|
||||
|
||||
namespace crib::internal::vase {
|
||||
struct PetalIterator {
|
||||
Direction dir;
|
||||
Shard *root = nullptr;
|
||||
@@ -25,3 +26,4 @@ struct PetalIterator {
|
||||
private:
|
||||
Petal *_next(uint64_t *offset);
|
||||
};
|
||||
} // namespace crib::internal::vase
|
||||
|
||||
Reference in New Issue
Block a user