Wrapper class around a field matched through component inheritance. More...
#include <field.hpp>
Public Member Functions | |
| base_field (T *array, size_t stride, size_t count, bool is_shared=false) | |
| base_field (iter &iter, int field) | |
| T & | operator[] (size_t index) const |
| T & | operator* () const |
| T * | operator-> () const |
Protected Attributes | |
| T * | data_ |
| size_t | stride_ |
| size_t | count_ |
| bool | is_shared_ |
Wrapper class around a field matched through component inheritance.
Same interface as field, but uses a runtime stride so it can iterate a field whose stored (derived) component is larger than T. Unlike field, this does not assert when the matched id is a subtype of T.
| T | Base component type of the field. |
|
inline |
| T & flecs::base_field< T >::operator* | ( | ) | const |
| T * flecs::base_field< T >::operator-> | ( | ) | const |
| T & flecs::base_field< T >::operator[] | ( | size_t | index | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |