Skip to content

Commit

Permalink
fixed doc + updated TODO list
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Oct 7, 2018
1 parent 618a325 commit 922c955
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* suggestion/request: cache made with flat_map + object pools + new/delete overloads so as to get rid of shared pointers (+ cache coherency)
# suggestion/request: add iterative sorter to the algorithms
* long term feature: shared_ptr less locator
* long term feature: shared_ptr-less resource cache
* custom allocators and EnTT allocator-aware in general (long term feature, I don't actually need it at the moment) - see #22
* scene management (I prefer the concept of spaces, that is a kind of scene anyway)
* debugging tools (#60): the issue online already contains interesting tips on this, look at it
Expand Down
18 changes: 9 additions & 9 deletions docs/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ The meta objects that compose a meta type are accessed in the following ways:
* _Meta constructors_. They are accessed by types of arguments:
```cpp
auto *ctor = entt::resolve<my_type>().ctor<int, char>();
auto *ctor = entt::resolve<my_type>()->ctor<int, char>();
```

The returned type is `meta_ctor *` and may be null if there is no constructor
Expand All @@ -220,7 +220,7 @@ The meta objects that compose a meta type are accessed in the following ways:
* _Meta destructor_. It's returned by a dedicated function:

```cpp
auto *dtor = entt::resolve<my_type>().dtor();
auto *dtor = entt::resolve<my_type>()->dtor();
```

The returned type is `meta_dtor *` and may be null if there is no custom
Expand All @@ -231,7 +231,7 @@ The meta objects that compose a meta type are accessed in the following ways:
* _Meta data_. They are accessed by name:

```cpp
auto *data = entt::resolve<my_type>().data("member");
auto *data = entt::resolve<my_type>()->data("member");
```
The returned type is `meta_data *` and may be null if there is no meta data
Expand All @@ -243,7 +243,7 @@ The meta objects that compose a meta type are accessed in the following ways:
* _Meta functions_. They are accessed by name:
```cpp
auto *func = entt::resolve<my_type>().func("member");
auto *func = entt::resolve<my_type>()->func("member");
```

The returned type is `meta_func *` and may be null if there is no meta
Expand All @@ -258,7 +258,7 @@ The meta objects that compose a meta type are accessed in the following ways:
* _Meta bases_. They are accessed through the name of the base types:

```cpp
auto *base = entt::resolve<derived_type>().base("base");
auto *base = entt::resolve<derived_type>()->base("base");
```
The returned type is `meta_base *` and may be null if there is no meta base
Expand All @@ -270,7 +270,7 @@ The meta objects that compose a meta type are accessed in the following ways:
* _Meta conversion functions_. They are accessed by type:
```cpp
auto *conv = entt::resolve<double>().conv<int>();
auto *conv = entt::resolve<double>()->conv<int>();
```

The returned type is `meta_conv *` and may be null if there is no meta
Expand All @@ -285,7 +285,7 @@ iterated through an overload that accepts a callback through which to return
them. As an example:

```cpp
entt::resolve<my_type>().data([](auto *data) {
entt::resolve<my_type>()->data([](auto *data) {
// ...
});
```
Expand Down Expand Up @@ -326,12 +326,12 @@ named `prop` to iterate them at once and to search a specific property by key:

```cpp
// iterate all the properties of a meta type
entt::resolve<my_type>().prop([](auto *prop) {
entt::resolve<my_type>()->prop([](auto *prop) {
// ...
});

// search for a given property by name
auto *prop = entt::resolve<my_type>().prop("tooltip"_hs);
auto *prop = entt::resolve<my_type>()->prop("tooltip"_hs);
```
Meta properties are objects having a fairly poor interface, all in all. They
Expand Down

0 comments on commit 922c955

Please sign in to comment.