Skip to content
Snippets Groups Projects
Commit 3144b008 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed isolation of MeshEntity.setId

parent cbd39a7b
No related branches found
No related tags found
No related merge requests found
......@@ -36,17 +36,17 @@ public:
return this->id;
}
void setId( GlobalIndexType id )
{
this->id = id;
}
bool operator==( const MeshEntityId< IDType, GlobalIndexType >& id ) const
{
return ( this->id == id.id );
}
protected:
void setId( GlobalIndexType id )
{
this->id = id;
}
IDType id;
};
......@@ -54,13 +54,14 @@ template< typename GlobalIndexType >
class MeshEntityId< void, GlobalIndexType >
{
public:
void setId( GlobalIndexType )
{}
bool operator==( const MeshEntityId< void, GlobalIndexType >& id ) const
{
return true;
}
protected:
void setId( GlobalIndexType )
{}
};
} // namespace Meshes
......
......@@ -79,6 +79,7 @@ public:
using BaseType::bindSuperentitiesStorageNetwork;
using BaseType::setNumberOfSuperentities;
using BaseType::setSuperentityIndex;
using BaseType::setId;
};
TEST( MeshEntityTest, VertexMeshEntityTest )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment