36 #include "BoundaryElement.hpp"
45 template <
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
52 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
59 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
63 assert(ELEMENT_DIM == 0);
66 this->
mNodes.push_back(pNode);
70 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
73 for (
unsigned i=0; i<this->mNodes.size(); i++)
75 this->mNodes[i]->AddBoundaryElement(this->mIndex);
79 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
82 for (
unsigned i=0; i<this->GetNumNodes(); i++)
84 this->mNodes[i]->RemoveBoundaryElement(this->mIndex);
90 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
93 this->mIsDeleted =
true;
96 for (
unsigned i=0; i<this->GetNumNodes(); i++)
98 this->mNodes[i]->RemoveBoundaryElement(this->mIndex);
102 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
105 assert(rIndex < this->mNodes.size());
108 this->mNodes[rIndex]->RemoveBoundaryElement(this->mIndex);
111 this->mNodes[rIndex] = pNode;
void UpdateNode(const unsigned &rIndex, Node< SPACE_DIM > *pNode)
std::vector< Node< SPACE_DIM > * > mNodes
void AddBoundaryElement(unsigned index)
void ResetIndex(unsigned index)