Michele Caini
3d9959c8e5
sparse_set/storage: small review and optimizations
2021-05-19 09:29:37 +02:00
Michele Caini
7c2bce8baf
core: added entt::page_size
2021-05-17 12:07:48 +02:00
Michele Caini
b062bbf58d
storage/view/group: reintroduce (opaque) ::raw functions as it ought to be
2021-05-17 11:59:51 +02:00
Michele Caini
9af318a767
test: minor changes
2021-05-14 15:12:23 +02:00
Michele Caini
6194e12616
entity:
...
* allocator support for sparse set and storage
* pointer stability when assigning components
* removed ::raw functions (registry, view, group)
* to_entity returns null for invalid components
2021-05-14 15:12:16 +02:00
Michele Caini
0f6d1268c7
meta: further reduced number of instantiations/size of symbols
2021-05-08 17:13:52 +02:00
Michele Caini
77afd2d36c
any: ::owner function (useful to also review meta_any)
2021-05-08 17:13:51 +02:00
Michele Caini
2b5c393a13
meta: forward_as_meta
2021-05-08 17:13:51 +02:00
Michele Caini
0817d416a3
meta: make_meta_any -> make_meta
2021-05-08 17:13:51 +02:00
Michele Caini
ccff753305
any: forward_as_any
2021-05-08 17:13:51 +02:00
Michele Caini
e252b22735
test: code coverage
2021-05-08 17:13:51 +02:00
Michele Caini
1979a2279f
poly: removed std::reference_wrapper support (incomplete, breaking change)
2021-05-08 17:13:50 +02:00
Michele Caini
955d325f07
meta_any: deprecated std::reference_wrapper support
2021-05-08 17:13:50 +02:00
Michele Caini
3fac3fe2d7
any: deprecate std::reference_wrapper support
2021-05-08 17:13:50 +02:00
Michele Caini
cd667fe34b
meta: make_meta_any
2021-05-08 17:13:50 +02:00
Michele Caini
3d6202ecfd
any: make_any
2021-05-08 17:13:50 +02:00
Michele Caini
c40f0ef2bb
type traits: is_equality_comparable support for nlohmann json like types (where T::value_type is T) - close #701
2021-05-08 10:43:27 +02:00
Michele Caini
c4b169edd1
registry: make ::remove and ::erase work also with iterators returned by views
2021-05-07 11:16:32 +02:00
Michele Caini
e5d4f1bb58
entity: deprecate handle::remove_all and registry::remove_all
2021-05-06 16:33:43 +02:00
Michele Caini
daf72a7c61
entity: registry ::remove/::erase entity/range and safe/unsafe versions ( close #486 )
2021-05-04 11:36:02 +02:00
Michele Caini
f116ad0594
test: use iterators in the poly storage example
2021-05-03 22:29:39 +02:00
Michele Caini
e59d40834d
any: reduce vtable options
2021-04-29 11:17:15 +02:00
Michele Caini
64eb8a2d0d
sparse_set: ::remove returns number of actually removed elements
2021-04-22 08:42:35 +02:00
Michele Caini
1cafbcff38
sparse_set: remove (and range-remove) if exists
2021-04-21 16:39:51 +02:00
Michele Caini
4bbf93fd0c
sparse_set: remove -> erase
2021-04-21 15:46:02 +02:00
Michele Caini
e8f982e909
view/group: raw() isn't bound to pointer types
2021-04-19 16:05:08 +02:00
Michele Caini
0fa433187e
storage: valid state on component removal (allows component destructors to access pools)
2021-04-19 15:34:41 +02:00
Michele Caini
b0069299ea
meta_any: avoid dereferencing C-style arrays
2021-04-15 11:45:10 +02:00
Michele Caini
fc69e91636
test: refined custom id example
2021-04-14 15:44:17 +02:00
Michele Caini
5c56cbd672
process: dead -> finished
2021-04-13 09:02:29 +02:00
Michele Caini
5c8a1e7d10
type traits: removed is_std_hashable[_v]
2021-04-12 23:37:46 +02:00
Michele Caini
77f80cecf9
test: re-enable tests left commented by mistake
2021-04-12 15:59:31 +02:00
Michele Caini
453f1c6edc
test: std::strcmp ... 🤦♂️
2021-04-12 15:59:20 +02:00
Michele Caini
9f8a36f2c9
any/meta: cleanup/better traits usage
2021-04-12 15:58:59 +02:00
Michele Caini
60393fbc5f
meta_any: decays Type on storage construction to handle correctly const T[N] types ( close #687 )
2021-04-12 15:55:59 +02:00
Michele Caini
b9a925dbd4
test: avoid regressions with any and deduced const T[N] types
2021-04-12 15:55:57 +02:00
Michele Caini
d55cefc086
meta_any: no redundant copies, better perf
2021-04-12 15:55:53 +02:00
Michele Caini
5380e6d98b
any: no redundant copies, better perf
2021-04-12 15:55:49 +02:00
Michele Caini
45cc24e0b8
any: favor aggregate initialization upon construction
2021-04-12 15:55:45 +02:00
Michele Caini
76bf1791eb
test: cleanup
2021-04-12 13:02:23 +02:00
Michele Caini
10636c82a2
view/group: review extended iterable mode ( close #686 )
2021-04-07 10:33:52 +02:00
Michele Caini
2404392daf
meta_any: vtable review for empty/void types
2021-03-30 15:55:48 +02:00
Michele Caini
eb05ab5fab
test: code coverage
2021-03-29 23:30:13 +02:00
Michele Caini
4b213adc75
test: cleanup
2021-03-29 19:03:10 +02:00
Michele Caini
e18c0a0c19
test: verify that dtor isn't invoked for a meta_any that wraps a reference
2021-03-29 17:01:05 +02:00
Michele Caini
11e6793544
build system: cleanup
2021-03-29 12:00:42 +02:00
Michele Caini
d07e0336a2
test: fix ub in the tests
2021-03-29 10:28:58 +02:00
Michele Caini
7dbfb3d9ae
test: code coverage (and try to please new gcov)
2021-03-29 08:23:30 +02:00
Michele Caini
02ef5db6e3
test: cleanup
2021-03-28 00:02:51 +01:00
Michele Caini
bb43bb5508
test: code coverage
2021-03-27 23:59:13 +01:00