mirror of
https://github.com/Green-Sky/crdt_tests.git
synced 2025-12-07 10:06:36 +01:00
add ops, start on text diffing and op gernation, no diffing yet
This commit is contained in:
@@ -35,6 +35,20 @@ struct List {
|
||||
}
|
||||
};
|
||||
|
||||
// almost the same as entry
|
||||
struct OpAdd {
|
||||
ListID id;
|
||||
|
||||
std::optional<ListID> parent_left;
|
||||
std::optional<ListID> parent_right;
|
||||
|
||||
ValueType value;
|
||||
};
|
||||
|
||||
struct OpDel {
|
||||
ListID id;
|
||||
};
|
||||
|
||||
// TODO: replace with SoA
|
||||
struct Entry {
|
||||
ListID id;
|
||||
|
||||
Reference in New Issue
Block a user