30 template <
typename TElement>
35 "TElement must be a descendant of ElementInterface");
38 : mCoordinateElement(coordinateElement)
39 , mShape(coordinateElement.
GetShape())
48 mDofElements.Insert(dofType, dofElement);
62 return mCoordinateElement;
70 return mCoordinateElement;
79 return mDofElements[dofType];
88 return mDofElements.At(dofType);
93 return mDofElements.Has(dof);
102 TElement mCoordinateElement;
109 template <
int TDimParameter>
virtual const ElementInterface & DofElement(DofType) const =0
TElement & DofElement(DofType dofType)
nonconst Getter for DofElements
Definition: ElementCollection.h:86
interface for all the cell operations, simply forwarding the corresponding element interfaces ...
Definition: ElementCollection.h:14
bool Has(DofType dof) const
Definition: ElementCollection.h:91
virtual ~ElementCollection()=default
virtual const Shape & GetShape() const =0
ElementCollectionImpl(TElement coordinateElement)
Definition: ElementCollection.h:37
TElement & CoordinateElement()
nonconst Getter for CoordinateElement
Definition: ElementCollection.h:68
string value
Definition: single_edge_notch_tension_test.py:6
const TElement & CoordinateElement() const override
Getter for CoordinateElement.
Definition: ElementCollection.h:60
Definition: ElementInterface.h:8
virtual const ElementInterface & CoordinateElement() const =0
void AddDofElement(DofType dofType, TElement dofElement)
adds a dof element to the collection
Definition: ElementCollection.h:46
const Shape & GetShape() const override
Definition: ElementCollection.h:96
Definition: Exception.h:6
implementation of the interface ElementCollection for arbitrary element types that are derived from E...
Definition: ElementCollection.h:31
const TElement & DofElement(DofType dofType) const override
Getter for DofElements.
Definition: ElementCollection.h:77