Newer
Older
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==
// ============================================================================
// == ==
// == crystal growth group ==
// == ==
// == Stiftung caesar ==
// == Ludwig-Erhard-Allee 2 ==
// == 53175 Bonn ==
// == germany ==
// == ==
// ============================================================================
// == ==
// == http://www.caesar.de/cg/AMDiS ==
// == ==
// ============================================================================
/** \file EmptyElementData.h */
#ifndef AMDIS_EMPTYELEMENTDATA_H
#define AMDIS_EMPTYELEMENTDATA_H
#include "Element.h"
#include "ElementData.h"
#include "FixVec.h"
namespace AMDiS {
const int EMPTY_ED = 6;
class EmptyElementData : public ElementData
{
public:
MEMORY_MANAGED(EmptyElementData);
inline bool isOfType(int typeID) const {
if(typeID == EMPTY_ED)
return true;
return false;
};
class Creator : public CreatorInterface<ElementData>
{
public:
ElementData* create() {
return NEW EmptyElementData;
};
};
EmptyElementData(ElementData *decorated = NULL)
: ElementData(decorated)
{};
bool refineElementData(Element* parent,
Element* child1,
Element* child2,
int elType)
{
ElementData::refineElementData(parent, child1, child2, elType);
child1->setElementData(NEW EmptyElementData(child1->getElementData()));
child2->setElementData(NEW EmptyElementData(child2->getElementData()));
return false;
};
ElementData *clone() const {
EmptyElementData *newObj = NEW EmptyElementData;
newObj->decorated_ = ElementData::clone();
return newObj;
};
inline ::std::string getTypeName() const { return "EmptyElementData"; };
inline const int getTypeID() const { return EMPTY_ED; };
void serialize(::std::ostream& out)
{
ElementData::serialize(out);
};
void deserialize(::std::istream& in)
{
ElementData::deserialize(in);
};
};
}
#endif