Newer
Older
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==

Thomas Witkowski
committed
// == http://www.amdis-fem.org ==
// == ==
// ============================================================================

Thomas Witkowski
committed
//
// Software License for AMDiS
//
// Copyright (c) 2010 Dresden University of Technology
// All rights reserved.
// Authors: Simon Vey, Thomas Witkowski et al.
//
// This file is part of AMDiS
//
// See also license.opensource.txt in the distribution.
/** \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);