mirror of
https://github.com/sigmasternchen/crap-libs
synced 2025-03-15 15:48:56 +00:00
28 lines
671 B
C
28 lines
671 B
C
#ifndef ARRAYLIST_H
|
|
#define ARRAYLIST_H
|
|
|
|
#include "../oop.h"
|
|
#include "lists.h"
|
|
|
|
// #define ArrayList construct(ArrayList)
|
|
extern class(ArrayList, Object_class, (interfaces){5 namely {Cloneable_class and List_class and Countable_class and Stack_class and Compareable_class}}, true) {
|
|
extends(Object_t);
|
|
implements(Cloneable);
|
|
implements(List);
|
|
implements(Countable);
|
|
implements(Stack);
|
|
implements(Compareable);
|
|
def_hashcode();
|
|
|
|
void (*destruct)(defclass ArrayList*);
|
|
|
|
size_t currentSize;
|
|
size_t sizeStep;
|
|
int steps;
|
|
void** data;
|
|
} ArrayList_t;
|
|
|
|
ArrayList_t* method(ArrayList, construct)(void);
|
|
void method(ArrayList, populate)(ArrayList_t*, class_t);
|
|
|
|
#endif
|