Michele Caini
d392eba4a0
test: code coverage
2021-09-22 16:49:42 +02:00
Michele Caini
03e363f5d9
any: added the ::assign function to copy/move assign the wrapped variable
2021-09-22 16:27:56 +02:00
Michele Caini
39211889b0
any ( close #782 ):
...
* make const type_info * a first citizen
* further reduce vtable size
2021-09-22 12:48:25 +02:00
Michele Caini
db44549276
type_info/type_id:
...
* type_info is no longer default constructible
* users cannot construct type_info objects anymore
* make type_id refer to an object with static storage duration
2021-09-22 12:41:09 +02:00
Michele Caini
c9c5214b3e
type_info: operator<, operator<=, operator> and operator>=
2021-09-22 08:34:18 +02:00
Michele Caini
c32ecf171b
sparse_set: added user_data field
2021-09-21 15:54:26 +02:00
Michele Caini
e7655c761d
test: code coverage
2021-09-18 23:22:00 +02:00
Michele Caini
464fcf4300
test: fix a test that I've broken a couple of commits ago :)
2021-09-18 00:06:50 +02:00
Michele Caini
80b5ed3d22
introduced clang-format ( close #733 )
2021-09-17 23:42:43 +02:00
Michele Caini
be5ad379b6
*: another handful of changes to please clang-format
2021-09-17 17:21:26 +02:00
Michele Caini
4b3bd265a6
meta: minor changes
2021-09-15 12:43:31 +02:00
Michele Caini
42dcec961b
meta: support for multi-setters on meta data members
2021-09-15 09:32:12 +02:00
Michele Caini
6b2a3b2916
meta: prepare for multi-setters on meta data members
2021-09-14 14:57:17 +02:00
Michele Caini
a96a767b9b
test: code coverage
2021-09-13 19:32:23 +02:00
Michele Caini
36627dbe78
meta:
...
* removed meta_ctor, no alternatives provided
* removed meta_type::ctor overloads, no alternatives provided
2021-09-13 19:03:22 +02:00
Michele Caini
7458072df2
hashed_string ( close #781 ):
...
* operator< and operator<=
* operator> and operator>=
2021-09-12 18:26:08 +02:00
Michele Caini
7ab08779dc
type_info: temporarily reintroduce type_info::index for performance reasons
2021-09-10 11:29:05 +02:00
Michele Caini
778cee3b27
any:
...
* operator bool doesn't rely on the vtable
* valid but unspecified state after move converts to true
* compare type info objects to avoid future errors if the logic changes
2021-09-09 17:03:36 +02:00
Michele Caini
fb3252732b
type_info: name rollback, hash_code -> hash (why should I introduce a breaking change to match a terrible name from the standard library after all?)
2021-09-09 14:49:39 +02:00
Michele Caini
83853c3dee
any:
...
* ::type() returns the object type if any, type_id<void>() otherwise
* avoid indirection when accessing the type
2021-09-09 14:00:08 +02:00
Michele Caini
92d43ce620
core: rename type_seq to type_index
2021-09-09 09:53:29 +02:00
Michele Caini
6943822fed
type_info:
...
* make the API closer to that of std::type_info
* remove the ::seq member function
* rename :.hash to ::hash_code
2021-09-09 09:44:58 +02:00
Michele Caini
aa146c4125
type_info: avoid testing constexpr-ness because older compilers don't guarantee it
2021-09-09 09:04:04 +02:00
Michele Caini
505f4a2b4f
type_info:
...
* constexpr support
* reduce instantiations
* reduce function calls/indirection
2021-09-09 00:20:20 +02:00
Michele Caini
1fa5a03605
test: code coverage
2021-09-07 17:13:53 +02:00
Michele Caini
2f22395eea
meta:
...
* a more robust meta_any::allow_cast (reviewed all overloads)
* removed internal meta_info dispatcher to reduce useless instantiations
* reviewed meta_conversion_helper
2021-09-06 10:19:23 +02:00
Michele Caini
591f885e67
meta: automatic conversion function to underlying type for enums (see #735 )
2021-09-03 18:23:49 +02:00
Michele Caini
bac51045e5
meta: automatic arithmetic conversions (see #735 )
2021-09-03 14:37:52 +02:00
Michele Caini
cb5e9393a4
meta: internal changes
2021-09-03 11:42:20 +02:00
Michele Caini
097509dd2a
view: add operator[] to access (eventually unwrapped) components by entity ( close #775 )
2021-09-02 16:05:46 +02:00
Michele Caini
6cd44248c7
core: added tuple header and unwrap_tuple utility
2021-09-02 15:32:52 +02:00
Michele Caini
5ddc746915
memory: turn is_power_of_two in a constexpr function
2021-08-31 17:39:47 +02:00
Michele Caini
f7d67067ad
test: increase code coverage
2021-08-30 17:06:31 +02:00
Michele Caini
2d07a6ec1f
storage:
...
* decouple iterator from allocator
* test iterator aliases to avoid future regressions
* internal changes/rework
2021-08-30 16:18:28 +02:00
Michele Caini
014ba5a7aa
sparse_set:
...
* test iterator aliases to avoid future regressions
* internal changes/rework
2021-08-30 16:09:59 +02:00
Michele Caini
ea6af75e8e
memory: added utility function fast_mod
2021-08-29 23:04:40 +02:00
Michele Caini
a595c6ec6f
memory:
...
* added utility class is_power_of_two
* added variable template is_power_of_two_v
2021-08-29 22:15:33 +02:00
Michele Caini
4cc3824653
test: basic_registry<...>::get_or_emplace must work for empty types
2021-08-28 09:52:46 +02:00
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
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
9551b7a597
storage: added empty ::get method to storage for empty types
2021-08-25 17:05:58 +02:00
Michele Caini
b43e723c84
meta: reintroduce meta_type::is_array support
2021-08-24 10:13:56 +02:00
Michele Caini
0b79d99cac
storage: non-copyable allocator aware container
2021-08-23 18:13:24 +02:00
Michele Caini
6f546ffe95
sparse_set: entity ::swap -> ::swap_elements
2021-08-21 17:25:38 +02:00
Michele Caini
52ea5e4074
memory: added pocca/pocma/pocs utility functions
2021-08-21 17:03:07 +02:00