Newer
Older
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==
// ============================================================================
// == ==
// == Institut fr Wissenschaftliches Rechnen ==
// == Zellescher Weg 12-14 ==
// == 01069 Dresden ==
// == germany ==
// == ==
// ============================================================================
// == ==
// == https://gforge.zih.tu-dresden.de/projects/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:
inline bool isOfType(int typeID) const
{
if (typeID == EMPTY_ED)
return true;
return false;
class Creator : public CreatorInterface<ElementData>
{
public:
};
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()));
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;
}
{
ElementData::serialize(out);
{
ElementData::deserialize(in);