Michele Caini
6d3e0600a1
storage:
...
* increase code coverage
* remove a pretty much useless if constexpr
2021-08-28 09:52:19 +02:00
Michele Caini
b52c9c1676
test: use storage (and sigh storage mixin) from base type
2021-08-27 16:47:08 +02:00
Michele Caini
f7506251fe
build system: increase ctest timeout because ASSERT_DEATH is... expensive, at least :)
2021-08-27 11:03:35 +02:00
Michele Caini
5b06f298f1
sparse_set/storage: make storage safe to use from the base (to be tested)
2021-08-26 17:52:16 +02:00
Michele Caini
dc5488a198
storage: generalized ::insert for all mixins
2021-08-26 17:14:51 +02:00
Michele Caini
23d162e9e4
sparse_set: ::emplace no longer returns the position
2021-08-26 16:13:26 +02:00
Michele Caini
de6b660b12
sparse_set/storage:
...
* removed basic_sparse_set<...>::emplace_back
* general cleanup
2021-08-26 15:22:29 +02:00
Michele Caini
60c175a51d
storage: ::insert always fills holes before appending
2021-08-26 15:09:30 +02:00
Michele Caini
c0a39c8064
sparse_set: insert always fills holes before appending
2021-08-26 14:56:15 +02:00
Michele Caini
61f4f93cc6
sparse_set: internals review
2021-08-26 14:55:47 +02:00
Michele Caini
764404a472
doc: minor changes, updated todo list
2021-08-26 12:19:43 +02:00
Michele Caini
04da85c88a
storage: avoid invoking ::page more than once in a row
2021-08-26 12:11:54 +02:00
Michele Caini
9551b7a597
storage: added empty ::get method to storage for empty types
2021-08-25 17:05:58 +02:00
Michele Caini
f1d537d035
compressed_pair:
...
* disable structured binding support for clang 6
* avoid using structured binding with compressed pair in the codebase
2021-08-24 13:11:21 +02:00
Michele Caini
b43e723c84
meta: reintroduce meta_type::is_array support
2021-08-24 10:13:56 +02:00
Michele Caini
5466039c1a
meta: generic begin/end for meta containers
2021-08-24 09:48:59 +02:00
Michele Caini
74e11117be
storage: minor changes
2021-08-24 09:00:55 +02:00
Michele Caini
e0abab2dc4
storage:
...
* fixed typo in the doc
* get around msvc that also accepts invalid code (again) O.o
2021-08-23 18:18:58 +02:00
Michele Caini
08ff3ff55c
sparse_set: erase assertion
2021-08-23 18:15:23 +02:00
Michele Caini
0b79d99cac
storage: non-copyable allocator aware container
2021-08-23 18:13:24 +02:00
Michele Caini
38f655e7b8
*: get around the fact that msvc also accepts invalid code O.o
2021-08-21 17:28:30 +02:00
Michele Caini
6f546ffe95
sparse_set: entity ::swap -> ::swap_elements
2021-08-21 17:25:38 +02:00
Michele Caini
ef8211a46e
sparse_set: non-copyable allocator-aware container
2021-08-21 17:18:04 +02:00
Michele Caini
52ea5e4074
memory: added pocca/pocma/pocs utility functions
2021-08-21 17:03:07 +02:00
Michele Caini
99621cf08a
memory: unfancy -> to_address (waiting for C++20)
2021-08-20 15:28:46 +02:00
Michele Caini
a9ae9ce758
test: code coverage
2021-08-20 00:32:02 +02:00
Michele Caini
fc5a529df8
core:
...
* added memory.hpp
* added public unfancy function
2021-08-20 00:26:25 +02:00
Michele Caini
bc1081550d
storage: minor changes
2021-08-20 00:10:09 +02:00
Michele Caini
e311ab1605
test: try to also please g++-7
2021-08-19 23:32:51 +02:00
Michele Caini
994ade0638
meta_factory: suppress shadow warning
2021-08-19 23:02:28 +02:00
Michele Caini
cf9522bd3b
sparse_set: ::clear honors the modality of the set
2021-08-19 17:36:16 +02:00
Michele Caini
7fd1858db0
storage: minor changes
2021-08-19 16:34:03 +02:00
Michele Caini
c41509151b
sparse_set:
...
* (almost) allocator-aware container
* unequal containers not supported
* copying a sparse set isn't supported
2021-08-19 15:50:29 +02:00
Michele Caini
4e12853d4a
runtime_view: correctly set the no_tombstone_check member
2021-08-17 11:58:49 +02:00
Michele Caini
e1fadbc9b9
registry: removed ::version/::entity (use entt_traits instead)
2021-08-16 23:30:14 +02:00
Michele Caini
3c4d13d8b9
sparse_set/view:
...
* added basic_sparse_set<E>::current to return known version of identifiers in set
* sparse arrays also contain updated entity versions, no more unused bits
* basic_sparse_set<E>::contains performs a strict version check
* sparse sets manage correctly foreign entities in all cases now
* no tombstone checks for multi-type views, zero-cost pointer stability model
2021-08-16 17:07:52 +02:00
Michele Caini
732159db07
registry:
...
* ::current no longer asserts, it returns now tombstone versions for invalid entities
* minor changes to doc and tests
2021-08-16 16:56:11 +02:00
Michele Caini
00894eaccf
entity/*: minor changes to doc and tests
2021-08-16 16:52:56 +02:00
Michele Caini
17818178cf
entity:
...
* removed null_t::operator| (use entt_traits<T>::combine instead)
* removed tombstone_t::operator| (use entt_traits<T>::combine instead)
2021-08-14 23:00:02 +02:00
Michele Caini
89c0abfada
entity:
...
* reviewed entt_traits<T>::combine
* added entt_traits::reserved
* use entt_traits<T>::combine where it makes sense to slightly improve perf
2021-08-14 22:26:41 +02:00
Michele Caini
8bbdd92739
entity: added entt_traits<T>::combine
2021-08-14 22:24:43 +02:00
Michele Caini
f724ceb052
entity: cleanup
2021-08-14 16:14:11 +02:00
Michele Caini
b7ac85005f
updated TODO
2021-08-13 23:58:57 +02:00
Michele Caini
8ec899a8e7
sigh: make scoped_connection move constructible/assignable ( close #760 )
2021-08-13 15:35:05 +02:00
Michele Caini
1013c6a50e
meta: removed annotation support for meta properties
2021-08-12 19:54:12 +02:00
Michele Caini
2cd5d3bab3
meta: cleanup, minor changes
2021-08-12 19:01:38 +02:00
Michele Caini
d9494960a2
meta:
...
* removed the possibility of invoking meta_factory::prop multiple times
* further reduced instantiations due to meta properties
2021-08-11 17:11:09 +02:00
Michele Caini
c0eb6590da
snapshot: include destroyed list head in the entity count ( close #757 )
2021-08-11 15:23:46 +02:00
Michele Caini
a9cefcb823
meta: avoid risk of name clashing on meta types and meta data members
2021-08-10 16:07:17 +02:00
Michele Caini
d1ff491010
meta:
...
* removed meta_type::is_member_object_pointer (no alternative provided)
* removed meta_type::is_member_function_pointer (no alternative provided)
2021-08-10 15:39:26 +02:00