36 #include "BoundaryElement.hpp"
45 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
52 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
56 assert(ELEMENT_DIM == 0);
59 this->
mNodes.push_back(pNode);
63 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
66 for (
unsigned i=0; i<this->mNodes.size(); i++)
68 this->mNodes[i]->AddBoundaryElement(this->mIndex);
72 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
75 for (
unsigned i=0; i<this->GetNumNodes(); i++)
77 this->mNodes[i]->RemoveBoundaryElement(this->mIndex);
83 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
86 this->mIsDeleted =
true;
89 for (
unsigned i=0; i<this->GetNumNodes(); i++)
91 this->mNodes[i]->RemoveBoundaryElement(this->mIndex);
95 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
98 assert(rIndex < this->mNodes.size());
101 this->mNodes[rIndex]->RemoveBoundaryElement(this->mIndex);
104 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)