![]() |
Flecs v3.1
A fast entity component system (ECS) for C & C++
|
Wrapper class around a column. More...
#include <iter.hpp>
Public Member Functions | |
column (T *array, size_t count, bool is_shared=false) | |
Create column from component array. | |
column (iter &iter, int column) | |
Create column from iterator. | |
T & | operator[] (size_t index) const |
Return element in component array. | |
T & | operator* () const |
Return first element of component array. | |
T * | operator-> () const |
Return first element of component array. | |
Protected Attributes | |
T * | m_array |
size_t | m_count |
bool | m_is_shared |
Wrapper class around a column.
T | component type of the column. |
|
inline |
flecs::column< T >::column | ( | iter & | iter, |
int | column | ||
) |
Create column from iterator.
iter | Iterator object. |
column | Index of the signature of the query being iterated over. |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |