89 if (el) this->ensureCanHaveAsChild(*el);
101 if (el) this->ensureCanHaveAsChild(*el);
102 return addUnsafe(el, translation);
134 if (el) this->ensureCanHaveAsChild(*el);
135 return insertUnsafe(pos, el,
aligner);
147 if (el) this->ensureCanHaveAsChild(*el);
148 return insertUnsafe(pos, el, translation);
153 return ensureHasCache()->getMaterial(p);
157 return ensureHasCache()->contains(p);
166 if (
evt.isResize()) invalidateCache();
170 bool removeIfTUnsafe(
const std::function<
bool(
const shared_ptr<TranslationT>& c)>& predicate)
override {
193 void invalidateCache();
210 shared_ptr<TranslationT> newTranslation(
const shared_ptr<ChildType>& el, ChildAligner
aligner);
216 std::atomic<SpatialIndexNode<dim>*> cache;
219 boost::mutex cache_mutex;