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

Removed DynamicTypeTag

parent 29ab0dc2
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,9 @@
#pragma once
#include <TNL/Containers/DynamicTypeTag.h>
#include <type_traits>
#include <TNL/Object.h>
#include <TNL/File.h>
namespace TNL {
......@@ -19,7 +21,7 @@ namespace Containers {
template< typename Element,
typename Device,
typename Index,
bool DynamicType = DynamicTypeTag< Element >::value >
bool Elementwise = std::is_base_of< Object, Element >::value >
class ArrayIO
{};
......
/***************************************************************************
DynamicTypeTag.h - description
-------------------
begin : Mar 13, 2014
copyright : (C) 2014 by Tomas Oberhuber
email : tomas.oberhuber@fjfi.cvut.cz
***************************************************************************/
/* See Copyright Notice in tnl/Copyright */
#pragma once
namespace TNL {
namespace Containers {
template< typename Element >
struct DynamicTypeTag
{
enum { value = false };
};
} // namespace Containers
} // namespace TNL
......@@ -17,7 +17,6 @@
#pragma once
#include <TNL/File.h>
#include <TNL/Containers/DynamicTypeTag.h>
#include <TNL/Meshes/MeshDetails/MeshEntityId.h>
#include <TNL/Meshes/MeshDetails/traits/MeshTraits.h>
#include <TNL/Meshes/MeshDimensionTag.h>
......@@ -173,20 +172,6 @@ template< typename MeshConfig,
std::ostream& operator<<( std::ostream& str, const MeshEntity< MeshConfig, EntityTopology >& entity );
} // namespace Meshes
/****
* This tells the compiler that theMeshEntity is a type with a dynamic memory allocation.
* It is necessary for the loading and the saving of the mesh entities arrays.
*/
namespace Containers {
template< typename MeshConfig,
typename EntityTopology >
struct DynamicTypeTag< Meshes::MeshEntity< MeshConfig, EntityTopology > >
{
enum { value = true };
};
}
} // namespace TNL
#include <TNL/Meshes/MeshDetails/MeshEntity_impl.h>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment