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

Cosmetic changes

parent b50d0191
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,8 @@
#pragma once
#include <TNL/Assert.h>
namespace TNL {
namespace Meshes {
......@@ -23,13 +25,12 @@ template< typename IDType,
typename GlobalIndexType >
class MeshEntityId
{
public:
public:
MeshEntityId()
: id( -1 )
{}
const IDType &getId() const
const IDType& getId() const
{
TNL_ASSERT( this->id >= 0, );
return this->id;
......@@ -45,14 +46,14 @@ class MeshEntityId
return ( this->id == id.id );
}
protected:
protected:
IDType id;
};
template< typename GlobalIndexType >
class MeshEntityId< void, GlobalIndexType >
{
public:
public:
void setId( GlobalIndexType )
{}
......
......@@ -25,10 +25,11 @@ template< typename MeshConfig,
typename EntityTopology>
class MeshEntityOrientation
{
template< typename, typename> friend class MeshEntityReferenceOrientation;
template< typename, typename>
friend class MeshEntityReferenceOrientation;
public:
typedef typename MeshTraits< MeshConfig >::IdPermutationArrayAccessorType IdPermutationArrayAccessorType;
using IdPermutationArrayAccessorType = typename MeshTraits< MeshConfig >::IdPermutationArrayAccessorType;
IdPermutationArrayAccessorType getSubvertexPermutation() const
{
......@@ -39,8 +40,8 @@ class MeshEntityOrientation
}
private:
typedef typename MeshTraits< MeshConfig >::LocalIndexType LocalIndexType;
typedef typename MeshTraits< MeshConfig >::template SubentityTraits< EntityTopology, 0 >::IdPermutationArrayType IdPermutationArrayType;
using LocalIndexType = typename MeshTraits< MeshConfig >::LocalIndexType;
using IdPermutationArrayType = typename MeshTraits< MeshConfig >::template SubentityTraits< EntityTopology, 0 >::IdPermutationArrayType;
void setPermutationValue( LocalIndexType index, LocalIndexType value )
{
......
......@@ -25,7 +25,8 @@
namespace TNL {
namespace Meshes {
template< typename MeshConfig, typename EntityTopology > class MeshEntityOrientation;
template< typename MeshConfig, typename EntityTopology >
class MeshEntityOrientation;
template< typename MeshConfig,
typename EntityTopology,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment