This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathpatch-wrapper.h
31 lines (28 loc) · 1.64 KB
/
patch-wrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <nan.h>
#include "patch.h"
class PatchWrapper : public Nan::ObjectWrap {
public:
static void init(v8::Local<v8::Object> exports);
static v8::Local<v8::Value> from_patch(Patch &&);
private:
explicit PatchWrapper(Patch &&patch);
static void construct(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void splice(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void splice_old(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void copy(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void invert(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void get_changes(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void get_changes_in_old_range(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void get_changes_in_new_range(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void change_for_old_position(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void change_for_new_position(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void serialize(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void deserialize(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void compose(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void get_dot_graph(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void get_json(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void get_change_count(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void get_bounds(const Nan::FunctionCallbackInfo<v8::Value> &info);
static void rebalance(const Nan::FunctionCallbackInfo<v8::Value> &info);
Patch patch;
};