KrkList Struct Reference
Mutable array of values. More...
#include <object.h>
Inheritance diagram for KrkList:
Public Member Functions | |
KrkValue | krk_list_of (int argc, const KrkValue argv[], int hasKw) |
Create a list object. | |
Public Member Functions inherited from KrkInstance | |
KrkInstance * | krk_newInstance (KrkClass *_class) |
Create a new instance of the given class. More... | |
Data Fields | |
KrkValueArray | values |
Stores the length, capacity, and actual values of the list. | |
pthread_rwlock_t | rwlock |
Data Fields inherited from KrkInstance | |
KrkClass * | _class |
Type. | |
KrkTable | fields |
Attributes table. | |
Data Fields inherited from KrkObj | |
uint16_t | type |
Tag indicating core type. | |
uint16_t | flags |
General object flags, mostly related to garbage collection. | |
uint32_t | hash |
Cached hash value for table keys. | |
struct KrkObj * | next |
Invasive linked list of all objects in the VM. | |
Protected Attributes | |
KrkInstance | inst |
Base. | |
Protected Attributes inherited from KrkInstance | |
KrkObj | obj |
Base. | |
Detailed Description
Mutable array of values.
A list is a flexible array of values that can be extended, cleared, sorted, rearranged, iterated over, etc.
The documentation for this struct was generated from the following files: