Class for reading/writing dynamic values.
More...
#include <cursor.hpp>
Class for reading/writing dynamic values.
Definition at line 22 of file cursor.hpp.
◆ cursor()
◆ elem()
| int flecs::cursor::elem |
( |
int32_t | elem | ) |
|
|
inline |
Move to an element by index.
Definition at line 48 of file cursor.hpp.
◆ get_bool()
| bool flecs::cursor::get_bool |
( |
| ) |
const |
|
inline |
◆ get_char()
| char flecs::cursor::get_char |
( |
| ) |
const |
|
inline |
◆ get_entity()
Get entity value.
Definition at line 103 of file impl.hpp.
◆ get_float()
| double flecs::cursor::get_float |
( |
| ) |
const |
|
inline |
◆ get_int()
| int64_t flecs::cursor::get_int |
( |
| ) |
const |
|
inline |
◆ get_member()
Get the member name.
Definition at line 58 of file cursor.hpp.
◆ get_ptr()
| void * flecs::cursor::get_ptr |
( |
| ) |
|
|
inline |
Get an untyped pointer to a value.
Definition at line 69 of file cursor.hpp.
◆ get_string()
| const char * flecs::cursor::get_string |
( |
| ) |
const |
|
inline |
◆ get_type()
Get the type of a value.
Definition at line 95 of file impl.hpp.
◆ get_uint()
| uint64_t flecs::cursor::get_uint |
( |
| ) |
const |
|
inline |
Get unsigned int value.
Definition at line 139 of file cursor.hpp.
◆ get_unit()
Get the unit of a value.
Definition at line 99 of file impl.hpp.
◆ is_collection()
| bool flecs::cursor::is_collection |
( |
| ) |
|
|
inline |
Test if the current scope is a collection type.
Definition at line 53 of file cursor.hpp.
◆ member()
| int flecs::cursor::member |
( |
const char * | name | ) |
|
|
inline |
Move to a member by name.
Definition at line 43 of file cursor.hpp.
◆ next()
| int flecs::cursor::next |
( |
| ) |
|
|
inline |
Move to the next member/element.
Definition at line 38 of file cursor.hpp.
◆ pop()
| int flecs::cursor::pop |
( |
| ) |
|
|
inline |
Pop a value scope.
Definition at line 33 of file cursor.hpp.
◆ push()
| int flecs::cursor::push |
( |
| ) |
|
|
inline |
Push a value scope (such as a nested struct).
Definition at line 28 of file cursor.hpp.
◆ set_bool()
| int flecs::cursor::set_bool |
( |
bool | value | ) |
|
|
inline |
Set boolean value.
Definition at line 74 of file cursor.hpp.
◆ set_char()
| int flecs::cursor::set_char |
( |
char | value | ) |
|
|
inline |
◆ set_entity()
◆ set_float()
| int flecs::cursor::set_float |
( |
double | value | ) |
|
|
inline |
◆ set_id()
Set (component) ID value.
Definition at line 114 of file cursor.hpp.
◆ set_int()
| int flecs::cursor::set_int |
( |
int64_t | value | ) |
|
|
inline |
Set signed int value.
Definition at line 84 of file cursor.hpp.
◆ set_null()
| int flecs::cursor::set_null |
( |
| ) |
|
|
inline |
◆ set_string()
| int flecs::cursor::set_string |
( |
const char * | value | ) |
|
|
inline |
◆ set_string_literal()
| int flecs::cursor::set_string_literal |
( |
const char * | value | ) |
|
|
inline |
Set string literal value.
Definition at line 104 of file cursor.hpp.
◆ set_uint()
| int flecs::cursor::set_uint |
( |
uint64_t | value | ) |
|
|
inline |
Set unsigned int value.
Definition at line 89 of file cursor.hpp.
◆ cursor_
The documentation for this struct was generated from the following files:
- include/flecs/addons/cpp/mixins/meta/cursor.hpp
- include/flecs/addons/cpp/mixins/meta/impl.hpp