Skip to content
Snippets Groups Projects
Commit b4dfc222 authored by belladj's avatar belladj
Browse files

add (temporary) fdelete and controller function

parent 11054b1f
No related merge requests found
......@@ -34,7 +34,11 @@ public:
//vv.add(v);
}
void fdelete(VersionVector& vv, Version v){
for(int i=0; i< vv.getData().size(); i++){
if(vv.getData()[i] == v){
vv.getData().erase(vv.getData().erase(vv.getData().begin()+i));
}
}
}
void update(){
......@@ -71,4 +75,4 @@ int main(){
Version vers(1,1.5,"DELETE", 'C');
cout << vers.getTimestamp() << endl;
return 0;
}
\ No newline at end of file
}
#include "CRDT.cpp"
#include "VersionVector.h"
#include "Buffer.h"
class Controller
{
public:
{
private:
Buffer deletion;
public:
Controller();
~Controller();
};
\ No newline at end of file
~Controller();
void updateCRDT(CRDT crdt)
{
}
void updateVersionVector(VersionVector vv)
{
}
void getNotifyOperation(VersionVector vv)
{
}
void convertOperationToObject(VersionVector vv)
{
}
void sendOperation(Messenger m, VersionVector vv)
{
}
void verification(CRDT crdt, VersionVector vv)
{
}
void saveChanges(Editor e)
{
}
void saveDeletionBuffer()
{
}
void deleteDeletionBuffer()
{
}
};
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment