Michele Caini
0f951cd322
test: suppress a warning due to an unused variable
2021-01-25 15:22:46 +01:00
Michele Caini
cf0da32fd0
meta: iterators of meta associative containers return keys by const reference rather than by copy
2021-01-25 15:12:59 +01:00
Michele Caini
5a3085c42b
registry: removed data<T> and raw<T> (use view<T>::data/::raw instead)
2021-01-25 12:29:22 +01:00
Michele Caini
2822eda858
poly: added ::reset
2021-01-23 18:22:15 +01:00
Michele Caini
6c804b5ca2
meta: added meta_any::reset
2021-01-23 18:19:11 +01:00
Michele Caini
a045c88c61
any: added ::reset
2021-01-23 18:04:03 +01:00
Michele Caini
a5fdf917df
test: minor changes (code coverage)
2021-01-22 20:13:15 +01:00
Michele Caini
80a0e47f1a
core: more tests for hashed_string (code coverage)
2021-01-22 15:39:03 +01:00
Michele Caini
a304313ad4
any: more tests for the support to not copyable types (code coverage)
2021-01-22 15:28:24 +01:00
Michele Caini
05b1d5a4da
meta: more tests for entt::resolve (code coverage)
2021-01-22 15:22:36 +01:00
Michele Caini
edeef3541c
meta: tests (code coverage) for meta_ctor (implicitly generated default constructor)
2021-01-22 15:20:03 +01:00
Michele Caini
cd929d8e65
meta: review + tests (code coverage) for implicitly generated default constructors
2021-01-22 15:17:58 +01:00
Michele Caini
c35614fb63
meta: more tests for meta pointers (code coverage)
2021-01-22 15:08:45 +01:00
Michele Caini
18e16b09f2
any: more tests (code coverage)
2021-01-22 14:57:50 +01:00
Michele Caini
b18b76c1f0
meta: as_ref_t adapts to const objects/const-ref return types
2021-01-22 11:41:17 +01:00
Michele Caini
fad3bdeed4
meta: ::reset doesn't remove the implicitly generated default constructors
2021-01-20 15:29:35 +01:00
Michele Caini
ba098e1199
any: use actual constructors to be more like std::any
2021-01-15 17:24:10 +01:00
Michele Caini
0ec755fccf
meta: iterable base types as instances of meta_type
2021-01-15 14:34:27 +01:00
Michele Caini
4aea1567db
type_traits: make is_equality_comparable work with all major compilers
2021-01-15 10:37:14 +01:00
Michele Caini
446c8df3b4
type_traits: added type_list_diff[_t]
2021-01-15 08:36:22 +01:00
Michele Caini
f4bd868d6a
type_traits: is_equality_comparable, support for standard containers
2021-01-14 12:56:31 +01:00
Michele Caini
39ecd1545c
meta: support for dereferencing pointers to functions
2021-01-13 13:14:21 +01:00
Michele Caini
9b80c0028d
meta:
...
* implicitly generated default constructor (overridable)
* pointer-like to void support (no dereference)
2021-01-13 11:53:15 +01:00
Michele Caini
35276b55af
any: support for non-copyable types
2021-01-12 16:24:18 +01:00
Michele Caini
3eb00382e7
meta: removed meta_base, meta_base_node is used internally when needed
2021-01-11 10:46:51 +01:00
Michele Caini
98b5f7a26a
meta: removed meta_conv, meta_conv_node is used internally when needed
2021-01-11 10:34:30 +01:00
Michele Caini
8cb61da9c2
*: minor changes
2021-01-08 11:43:26 +01:00
Michele Caini
a7a2c96382
registry: added ::reserve_pools
2021-01-05 09:35:41 +01:00
Michele Caini
18ffbd0027
registry: group -> group_if_exists ( close #626 )
2021-01-04 08:34:56 +01:00
Michele Caini
29c1766714
registry: const poly storage function
2020-12-24 16:48:07 +01:00
Michele Caini
2e5a9f117c
*: cleanup
2020-12-23 19:09:31 +01:00
Michele Caini
2abcbcd30f
meta: support for pointer-like types with a custom dereference operator other than operator*
2020-12-23 19:00:05 +01:00
Michele Caini
5d472a1f2e
test: suppress warnings
2020-12-23 09:42:40 +01:00
Michele Caini
aa979b2046
any/meta:
...
* added alias constructor to any
* added alias constructor to meta_any
* added alias constructor to poly
* added support for const containers, const deref operator and const views to meta_any
2020-12-23 09:42:36 +01:00
Michele Caini
2daaf899d3
any: comparison functions (==, !=)
2020-12-23 09:42:33 +01:00
Michele Caini
fa4c6bccbc
meta_any: make ref to pointer-like types work in all cases
2020-12-23 09:42:31 +01:00
Michele Caini
bc415242f2
test:
...
* support for pointer-like to const
* internal meta_range coverage
* fully tested meta_handle
* references as arguments for meta_ctor
* invoke const function on const reference for meta_func
* references as arguments for meta_func
* as_cref_t return type for meta_func
* setter and getter on const reference for meta_data
* as_cref_t getter for meta_data
* set by const and non-const reference for meta_data
* const invoke for meta_any
* const get for meta_any
* aob
2020-12-23 09:42:26 +01:00
Michele Caini
2eeb7552d6
test:
...
* more on any const and non-const reference support
* poly support for const and non-const references
* poly as_ref overloads
2020-12-23 09:42:24 +01:00
Michele Caini
f55004d1e4
test: any::as_ref for const references
2020-12-23 09:42:19 +01:00
Michele Caini
c32f947c18
meta:
...
* support for pointers to const types
* use std::reference_wrapper instead of std::ref to let pass constness
2020-12-23 09:42:09 +01:00
Michele Caini
c52f16f5b8
meta:
...
* meta_any: convert -> allow_cast
* support for const references
* as_cref_t policy
2020-12-23 09:42:04 +01:00
Michele Caini
bc089bc4c1
any_cast: review any_cast for better support to const references
2020-12-23 09:41:58 +01:00
Michele Caini
1075ded4dc
test: minor changes
2020-12-23 09:41:55 +01:00
Michele Caini
5578ea2f30
meta_any: added support for const references, reviewed meta_any::cast (T vs T &)
2020-12-23 09:41:52 +01:00
Michele Caini
ade3e58829
any: added support to const references
2020-12-23 09:41:49 +01:00
Michele Caini
9950b2ea34
type_traits: added type_list_element[_t] and value_list_element[_v]
2020-12-17 10:13:02 +01:00
Michele Caini
002f92fe1e
organizer: fixed an issue for free functions with payload ( close #613 )
2020-12-14 11:17:10 +01:00
Michele Caini
a974235d10
core/entity/meta/poly:
...
* updated poly (static vtable, design review)
* .ref -> as_ref (any, meta_any, poly)
* poly storage
2020-12-12 15:09:29 +01:00
Michele Caini
be88d5dfb8
type_info: minor changes
2020-12-12 14:51:41 +01:00
Michele Caini
6f36723097
runtime_view: public constructor ( close #597 )
2020-12-06 15:37:51 +01:00