-
Notifications
You must be signed in to change notification settings - Fork 0
/
ShapeHyperCol.cpp
41 lines (33 loc) · 997 Bytes
/
ShapeHyperCol.cpp
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
32
33
34
35
36
37
38
39
40
41
/*
* File: ShapeHyperCol.cpp
* Author: ivek
*
* Created on January 24, 2012, 9:23 AM
*/
#include "ShapeHyperCol.h"
//#include "MessageCollector.h"
#include "VertexVisitor.h"
#include <iostream>
#include <string>
#include <vector>
ShapeHyperCol::ShapeHyperCol()
{
this->aValues = new element_type[VertexProxy::K->get_val()];
}
ShapeHyperCol::ShapeHyperCol(const ShapeHyperCol& orig)
{
this->aValues = new element_type[VertexProxy::K->get_val()];
memcpy(this->aValues, orig.aValues, sizeof(element_type)*VertexProxy::K->get_val());
};
ShapeHyperCol::~ShapeHyperCol() {
delete(this->aValues);
}
UpdateFunctionDelegator* ShapeHyperCol::clone() {
UpdateFunctionDelegator* clone = new ShapeHyperCol(*this);
return (UpdateFunctionDelegator*) clone;
}
void ShapeHyperCol::accept(VertexVisitor& v, gl::iscope& scope, gl::icallback& schedule) {
v.visit(this, scope, schedule);
}
void ShapeHyperCol::updateFunction(gl::iscope& scope, gl::icallback& scheduler) {
}