Commit Graph

1316 Commits

Author SHA1 Message Date
Michele Caini
dc041b7ea0 test: cleanup/update 2022-05-05 14:53:05 +02:00
Michele Caini
584cfdf64c test: avoid using ENTT_NOEXCEPT in the test suite 2022-05-05 09:24:02 +02:00
Michele Caini
03477ce400 type_traits: type_list_index[_v] 2022-05-02 10:58:11 +02:00
Michele Caini
14d213d13e ident/family: change names for consistency 2022-05-02 09:14:53 +02:00
Michele Caini
8d86816d8d view: tuple constructor 2022-04-30 11:56:04 +02:00
Michele Caini
12cf3fd8e7 *: spot and clear some misues of = default 2022-04-29 12:35:11 +02:00
Michele Caini
837481a854 group: support both const and non-const excluded types 2022-04-29 12:22:54 +02:00
Michele Caini
b682e58df7 view:
* prepare to storage getters for filters
* support both const and non-const excluded types
2022-04-29 12:18:12 +02:00
Qix
049e529f66 test: add mention of storage initialization workaround (ref #827) (#879) 2022-04-28 16:34:45 +02:00
Dominic Koepke
ef6e47f625 tuple: forward_apply functional type (#876) 2022-04-28 16:14:25 +02:00
Michele Caini
ebc0c18534 test: add missing template keywords (thanks msvc) 2022-04-27 09:22:07 +02:00
Michele Caini
379a4bdda6 meta: re-added meta_type::remove_pointer (close #878) 2022-04-27 09:17:18 +02:00
Michele Caini
80c700b1f8 sigh_storage_mixin: allocator support 2022-04-26 11:43:59 +02:00
Michele Caini
103f935d61 meta (close #872):
* container traits don't really support plain arrays anymore (if they ever did)
* fix an issue with insert/erase of meta sequence containers
* add non-regression tests
2022-04-24 17:17:47 +02:00
Michele Caini
7e900626bc test: suppress shadow warnings 2022-04-21 13:59:27 +02:00
Michele Caini
dc30c29f4e config/component/storage:
* ENTT_IGNORE_IF_EMPTY is an internal def-only macro
* component_traits review to also support void type
* updated tests for component_traits
* added a non-regression test for storage<void>
2022-04-21 11:43:42 +02:00
Michele Caini
80015e83d4 sigh/dispatcher: use allocator<void> 2022-04-20 16:40:19 +02:00
Michele Caini
51f279160f resource: added more comparison operators for resource handles 2022-04-16 11:38:45 +02:00
Michele Caini
803db476bb entity:
* drop utility.hpp
* turn get_t/exclude_t into aliases for type_list
* updated api for basic_registry<...>::group/group_if_exists
* doc review to reflect all the changes above
2022-04-15 11:46:08 +02:00
Michele Caini
36af39e2b4 emitter: full review 2022-04-15 11:46:08 +02:00
Michele Caini
dcac7942fa type_info: a default constructible type isn't a good idea actually 2022-04-08 12:17:14 +02:00
Michele Caini
4e13529adb registry: ctor that reserves enough memory for count pools 2022-04-08 09:58:05 +02:00
Michele Caini
22757e064f *: review remove_cv/remove_ref tokens after spotting an error by chance 2022-04-06 15:57:26 +02:00
Michele Caini
2d5e3402fa type_info: allow to construct type_info objects directly 2022-04-06 11:25:44 +02:00
Michele Caini
6b9d346b8b type_info:
* reserve a seq identifier for empty type_info objects
* require type_index to return non-zero values
* make type_info default constructible
* add type_info::operator bool()
2022-04-06 08:53:55 +02:00
Michele Caini
9e68eb4d2c type_id: type_info from variable 2022-04-05 08:50:08 +02:00
Michele Caini
428bfbd810 tests: updated tests for the resource module 2022-03-31 15:43:44 +02:00
Michele Caini
b63aebfdaf dense_set: strong exception guarantee (emplace/insert) 2022-03-30 15:34:45 +02:00
Michele Caini
335f876a46 dense_map: strong exception guarantee (emplace/insert) 2022-03-30 15:26:39 +02:00
Michele Caini
c5e99342a3 tests: minor changes 2022-03-30 15:14:26 +02:00
Michele Caini
2e6cfc08f0 registry: refine storage proxy iterator and guarantee iterator conversions 2022-03-25 17:20:23 +01:00
Michele Caini
b8bb509d5c resource:
* drop the resource_loader class
* made the loader a template parameter of the resource_cache
* updated the API of the resource_cache
2022-03-23 15:31:55 +01:00
Michele Caini
990baa0929 test: typo 2022-03-21 16:14:20 +01:00
Michele Caini
7b25eacfc8 dense_map:
* try_emplace should not consume arguments if the element exists
* clean up
2022-03-18 10:51:16 +01:00
Michele Caini
dcb7c0c27e dense_map: constrain the allocator type 2022-03-17 11:39:45 +01:00
Michele Caini
f432dc6bdc dense_map:
* uses-allocator construction
* iterators model forward/random access iter types but are in the input iter category
* iter value_type is pair<const T &, U &>/pair<const T &, const U &> (zip iter types)
* no risky UBs due to type punning or destroy/construct within a vector
2022-03-17 11:39:45 +01:00
Michele Caini
ce21ee6001 test: minor changes 2022-03-17 11:39:36 +01:00
Michele Caini
a431f5a674 registry: allow creating pools during a destroy (close #853) 2022-03-16 17:18:14 +01:00
Michele Caini
c17ecbc78c resource: add operator==/!= to resource handles 2022-03-16 17:17:35 +01:00
Michele Caini
0c1371ffae test: suppress warning due to unused variables 2022-03-16 17:16:54 +01:00
Michele Caini
8a350acf39 dispatcher: allocator support 2022-03-16 17:16:50 +01:00
Michele Caini
e13d06fe20 component: reintroduce utility ignore_as_empty_v (it's actually useful sometimes) 2022-03-16 17:16:32 +01:00
Michele Caini
805bb84c8f component_traits:
* removed ::ignore_if_empty member
* use ::page_size 0 for empty types
2022-03-16 17:16:21 +01:00
Michele Caini
03d0f3e9ca test: merge no-eto tests with registry tests 2022-03-16 17:15:18 +01:00
Michele Caini
c89bf30e05 meta: dereferencing a pointer-like object which converts to bool works in all cases (false implies empty meta_any) 2022-03-16 17:14:32 +01:00
Michele Caini
21f00cf251 meta: make meta_sequence_container::meta_iterator model a bidirectional iterator (and keep staying in the input iterator category) 2022-03-16 17:14:10 +01:00
Michele Caini
52f77d61ba sigh:
* fixed doc
* test review/cleanup
2022-03-16 17:13:16 +01:00
Michele Caini
5adf332a5f registry: ::sortable -> ::owned for component types (close #847) 2022-03-16 17:13:04 +01:00
Michele Caini
efbb32a498 sparse_set: added the ::bump function 2022-03-16 17:12:56 +01:00
Michele Caini
772ac64e3b config: add ENTT_VERSION 2022-03-16 17:11:03 +01:00