Skip to content
Snippets Groups Projects

Replace deprecated getRealImplementation by impl()

Merged akbib requested to merge remove_getrealimplementation into master
3 files
+ 14
14
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -78,8 +78,8 @@ class SubGridLevelIndexSet :
template<class EntityType>
bool contains (const EntityType& e) const
{
return grid_ == &(grid_->getRealImplementation(e).grid())
&& level_ == grid_->getRealImplementation(e).hostEntity().level();
return grid_ == &(e.impl().grid())
&& level_ == e.impl().hostEntity().level();
}
@@ -217,7 +217,7 @@ class SubGridGlobalIdSet :
GlobalIdType id (const typename std::remove_const<GridImp>::type::Traits::template Codim<cd>::Entity& e) const
{
// Return id of the host entity
return grid_->getHostGrid().globalIdSet().id(grid_->getRealImplementation(e).hostEntity());
return grid_->getHostGrid().globalIdSet().id(e.impl().hostEntity());
}
@@ -229,7 +229,7 @@ class SubGridGlobalIdSet :
GlobalIdType subId (const typename std::remove_const<GridImp>::type::Traits::template Codim<0>::Entity& e, int i, unsigned int cc) const
{
// Return sub id of the host entity
return grid_->getHostGrid().globalIdSet().subId(grid_->getRealImplementation(e).hostEntity(),i,cc);
return grid_->getHostGrid().globalIdSet().subId(e.impl().hostEntity(),i,cc);
}
@@ -273,7 +273,7 @@ class SubGridLocalIdSet :
LocalIdType id (const typename std::remove_const<GridImp>::type::Traits::template Codim<cd>::Entity& e) const
{
// Return id of the host entity
return grid_->getHostGrid().localIdSet().id(grid_->getRealImplementation(e).hostEntity());
return grid_->getHostGrid().localIdSet().id(e.impl().hostEntity());
}
@@ -285,7 +285,7 @@ class SubGridLocalIdSet :
LocalIdType subId (const typename std::remove_const<GridImp>::type::Traits::template Codim<0>::Entity& e, int i, unsigned int cc) const
{
// Return sub id of the host entity
return grid_->getHostGrid().localIdSet().subId(grid_->getRealImplementation(e).hostEntity(),i,cc);
return grid_->getHostGrid().localIdSet().subId(e.impl().hostEntity(),i,cc);
}
Loading