Browse Source

entity: table class placeholder

Michele Caini 1 year ago
parent
commit
d6588f9b59
6 changed files with 23 additions and 0 deletions
  1. 1 0
      CMakeLists.txt
  2. 1 0
      entt.imp
  3. 13 0
      src/entt/entity/table.hpp
  4. 1 0
      src/entt/entt.hpp
  5. 1 0
      test/CMakeLists.txt
  6. 6 0
      test/entt/entity/table.cpp

+ 1 - 0
CMakeLists.txt

@@ -149,6 +149,7 @@ if(ENTT_INCLUDE_HEADERS)
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/entity/snapshot.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/entity/sparse_set.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/entity/storage.hpp>
+            $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/entity/table.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/entity/view.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/graph/adjacency_matrix.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/graph/dot.hpp>

+ 1 - 0
entt.imp

@@ -24,6 +24,7 @@
   { "include": [ "@[\"<].*/entity/fwd\\.hpp[\">]", "private", "<entt/entity/snapshot.hpp>", "public" ] },
   { "include": [ "@[\"<].*/entity/fwd\\.hpp[\">]", "private", "<entt/entity/sparse_set.hpp>", "public" ] },
   { "include": [ "@[\"<].*/entity/fwd\\.hpp[\">]", "private", "<entt/entity/storage.hpp>", "public" ] },
+  { "include": [ "@[\"<].*/entity/fwd\\.hpp[\">]", "private", "<entt/entity/table.hpp>", "public" ] },
   { "include": [ "@[\"<].*/entity/fwd\\.hpp[\">]", "private", "<entt/entity/view.hpp>", "public" ] },
   { "include": [ "@[\"<].*/graph/fwd\\.hpp[\">]", "private", "<entt/graph/adjacency_matrix.hpp>", "public" ] },
   { "include": [ "@[\"<].*/graph/fwd\\.hpp[\">]", "private", "<entt/graph/dot.hpp>", "public" ] },

+ 13 - 0
src/entt/entity/table.hpp

@@ -0,0 +1,13 @@
+#ifndef ENTT_ENTITY_TABLE_HPP
+#define ENTT_ENTITY_TABLE_HPP
+
+#include "fwd.hpp"
+
+namespace entt {
+
+struct basic_table {
+};
+
+} // namespace entt
+
+#endif

+ 1 - 0
src/entt/entt.hpp

@@ -32,6 +32,7 @@
 #include "entity/snapshot.hpp"
 #include "entity/sparse_set.hpp"
 #include "entity/storage.hpp"
+#include "entity/table.hpp"
 #include "entity/view.hpp"
 #include "graph/adjacency_matrix.hpp"
 #include "graph/dot.hpp"

+ 1 - 0
test/CMakeLists.txt

@@ -262,6 +262,7 @@ SETUP_BASIC_TEST(storage entt/entity/storage.cpp)
 SETUP_BASIC_TEST(storage_entity entt/entity/storage_entity.cpp)
 SETUP_BASIC_TEST(storage_no_instance entt/entity/storage_no_instance.cpp)
 SETUP_BASIC_TEST(storage_utility entt/entity/storage_utility.cpp)
+SETUP_BASIC_TEST(table entt/entity/table.cpp)
 SETUP_BASIC_TEST(view entt/entity/view.cpp)
 
 # Test graph

+ 6 - 0
test/entt/entity/table.cpp

@@ -0,0 +1,6 @@
+#include <gtest/gtest.h>
+#include <entt/entity/table.hpp>
+
+TEST(Table, Placeholder) {
+    entt::basic_table table{};
+}