91 template <
typename MaskedMeshType>
94 using Element =
typename MaskedMeshType::Element;
108 return Element(*maskedMesh, this->getIndex(), this->getNumber());
119 const Set&
set()
const {
return maskedMesh->elementSet; }
153 template <
typename MaskedMeshType>
156 using Element =
typename MaskedMeshType::Element;
159 class const_iterator:
public Set::ConstIteratorFacade<const_iterator, LocalCoords> {
164 return Element(*originalMesh, this->getIndex(), this->getNumber()).getMidpoint();
175 const Set&
set()
const {
return originalMesh->elementSet; }
210 for (
int d = 0; d < DIM; ++d) {
266 LocalCoords dereference()
const {
285 LocalCoords
at(std::size_t
index)
const override {
315 for (
int d = 0; d < DIM; ++d) {
381 return fullMesh.getElementsCount0();
389 return fullMesh.getElementsCount1();
514 template <
int d = DIM>
515 typename std::enable_if<d == 2>::type calculateElements() {
516 boost::lock_guard<boost::mutex> lock((boost::mutex&)
writeMutex);
539 template <
int d = DIM>
540 typename std::enable_if<d == 3>::type calculateElements() {
541 boost::lock_guard<boost::mutex> lock((boost::mutex&)
writeMutex);
572 template <
int d = DIM>
573 typename std::enable_if<d == 2>::type calculateBoundaryIndex() {
574 boost::lock_guard<boost::mutex> lock((boost::mutex&)
writeMutex);
577 const auto minor =
fullMesh.minorAxisIndex();
596 template <
int d = DIM>
597 typename std::enable_if<d == 3>::type calculateBoundaryIndex() {
598 boost::lock_guard<boost::mutex> lock((boost::mutex&)
writeMutex);
601 const auto minor =
fullMesh.minorAxisIndex();