raze/wadsrc/static/zscript/engine/maps.zs

512 lines
13 KiB
Text
Raw Normal View History

2022-12-04 15:51:44 +00:00
struct Map_I32_I8 native
{
native void Copy(Map_I32_I8 other);
native void Move(Map_I32_I8 other);
native void Swap(Map_I32_I8 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native int Get(int key);
native bool CheckKey(int key) const;
native version("4.11") int GetIfExists(int key) const;
native version("4.11") int, bool CheckValue(int key) const;
native void Insert(int key, int value);
2022-12-04 15:51:44 +00:00
native void InsertNew(int key);
native void Remove(int key);
}
struct MapIterator_I32_I8 native
{
native bool Init(Map_I32_I8 other);
native bool ReInit();
native bool Valid();
native bool Next();
native int GetKey();
native int GetValue();
native void SetValue(int value);
}
struct Map_I32_I16 native
{
native void Copy(Map_I32_I16 other);
native void Move(Map_I32_I16 other);
native void Swap(Map_I32_I16 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native int Get(int key);
native bool CheckKey(int key) const;
native version("4.11") int GetIfExists(int key) const;
native version("4.11") int, bool CheckValue(int key) const;
native void Insert(int key, int value);
2022-12-04 15:51:44 +00:00
native void InsertNew(int key);
native void Remove(int key);
}
struct MapIterator_I32_I16 native
{
native bool Init(Map_I32_I16 other);
native bool ReInit();
native bool Valid();
native bool Next();
native int GetKey();
native int GetValue();
native void SetValue(int value);
}
struct Map_I32_I32 native
{
native void Copy(Map_I32_I32 other);
native void Move(Map_I32_I32 other);
native void Swap(Map_I32_I32 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native int Get(int key);
native bool CheckKey(int key) const;
native version("4.11") int GetIfExists(int key) const;
native version("4.11") int, bool CheckValue(int key) const;
native void Insert(int key, int value);
2022-12-04 15:51:44 +00:00
native void InsertNew(int key);
native void Remove(int key);
}
struct MapIterator_I32_I32 native
{
native bool Init(Map_I32_I32 other);
native bool ReInit();
native bool Valid();
native bool Next();
native int GetKey();
native int GetValue();
native void SetValue(int value);
}
struct Map_I32_F32 native
{
native void Copy(Map_I32_F32 other);
native void Move(Map_I32_F32 other);
native void Swap(Map_I32_F32 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native double Get(int key);
native bool CheckKey(int key) const;
native version("4.11") double GetIfExists(int key) const;
native version("4.11") double, bool CheckValue(int key) const;
native void Insert(int key, double value);
2022-12-04 15:51:44 +00:00
native void InsertNew(int key);
native void Remove(int key);
}
struct MapIterator_I32_F32 native
{
native bool Init(Map_I32_F32 other);
native bool ReInit();
native bool Valid();
native bool Next();
native int GetKey();
native double GetValue();
native void SetValue(double value);
}
struct Map_I32_F64 native
{
native void Copy(Map_I32_F64 other);
native void Move(Map_I32_F64 other);
native void Swap(Map_I32_F64 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native double Get(int key);
native bool CheckKey(int key) const;
native version("4.11") double GetIfExists(int key) const;
native version("4.11") double, bool CheckValue(int key) const;
native void Insert(int key, double value);
2022-12-04 15:51:44 +00:00
native void InsertNew(int key);
native void Remove(int key);
}
struct MapIterator_I32_F64 native
{
native bool Init(Map_I32_F64 other);
native bool ReInit();
native bool Valid();
native bool Next();
native int GetKey();
native double GetValue();
native void SetValue(double value);
}
struct Map_I32_Obj native
{
native void Copy(Map_I32_Obj other);
native void Move(Map_I32_Obj other);
native void Swap(Map_I32_Obj other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native Object Get(int key);
native bool CheckKey(int key) const;
native version("4.11") Object GetIfExists(int key) const;
native version("4.11") Object, bool CheckValue(int key) const;
native void Insert(int key, Object value);
2022-12-04 15:51:44 +00:00
native void InsertNew(int key);
native void Remove(int key);
}
struct MapIterator_I32_Obj native
{
native bool Init(Map_I32_Obj other);
native bool ReInit();
native bool Valid();
native bool Next();
native int GetKey();
native Object GetValue();
native void SetValue(Object value);
}
struct Map_I32_Ptr native
{
native void Copy(Map_I32_Ptr other);
native void Move(Map_I32_Ptr other);
native void Swap(Map_I32_Ptr other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native voidptr Get(int key);
native bool CheckKey(int key) const;
native version("4.11") voidptr GetIfExists(int key) const;
native version("4.11") voidptr, bool CheckValue(int key) const;
native void Insert(int key, voidptr value);
2022-12-04 15:51:44 +00:00
native void InsertNew(int key);
native void Remove(int key);
}
struct MapIterator_I32_Ptr native
{
native bool Init(Map_I32_Ptr other);
native bool Next();
native int GetKey();
native voidptr GetValue();
native void SetValue(voidptr value);
}
struct Map_I32_Str native
{
native void Copy(Map_I32_Str other);
native void Move(Map_I32_Str other);
native void Swap(Map_I32_Str other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native String Get(int key);
native bool CheckKey(int key) const;
native version("4.11") String GetIfExists(int key) const;
native version("4.11") String, bool CheckValue(int key) const;
native void Insert(int key, String value);
2022-12-04 15:51:44 +00:00
native void InsertNew(int key);
native void Remove(int key);
}
struct MapIterator_I32_Str native
{
native bool Init(Map_I32_Str other);
native bool ReInit();
native bool Valid();
native bool Next();
native int GetKey();
native String GetValue();
native void SetValue(String value);
}
// ---------------
struct Map_Str_I8 native
{
native void Copy(Map_Str_I8 other);
native void Move(Map_Str_I8 other);
native void Swap(Map_Str_I8 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native int Get(String key);
native bool CheckKey(String key) const;
native version("4.11") int GetIfExists(String key) const;
native version("4.11") int, bool CheckValue(String key) const;
native void Insert(String key, int value);
2022-12-04 15:51:44 +00:00
native void InsertNew(String key);
native void Remove(String key);
}
struct MapIterator_Str_I8 native
{
native bool Init(Map_Str_I8 other);
native bool ReInit();
native bool Valid();
native bool Next();
native String GetKey();
native int GetValue();
native void SetValue(int value);
}
struct Map_Str_I16 native
{
native void Copy(Map_Str_I16 other);
native void Move(Map_Str_I16 other);
native void Swap(Map_Str_I16 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native int Get(String key);
native bool CheckKey(String key) const;
native version("4.11") int GetIfExists(String key) const;
native version("4.11") int, bool CheckValue(String key) const;
native void Insert(String key, int value);
2022-12-04 15:51:44 +00:00
native void InsertNew(String key);
native void Remove(String key);
}
struct MapIterator_Str_I16 native
{
native bool Init(Map_Str_I16 other);
native bool ReInit();
native bool Valid();
native bool Next();
native String GetKey();
native int GetValue();
native void SetValue(int value);
}
struct Map_Str_I32 native
{
native void Copy(Map_Str_I32 other);
native void Move(Map_Str_I32 other);
native void Swap(Map_Str_I32 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native int Get(String key);
native bool CheckKey(String key) const;
native version("4.11") int GetIfExists(String key) const;
native version("4.11") int, bool CheckValue(String key) const;
native void Insert(String key, int value);
2022-12-04 15:51:44 +00:00
native void InsertNew(String key);
native void Remove(String key);
}
struct MapIterator_Str_I32 native
{
native bool Init(Map_Str_I32 other);
native bool ReInit();
native bool Valid();
native bool Next();
native String GetKey();
native int GetValue();
native void SetValue(int value);
}
struct Map_Str_F32 native
{
native void Copy(Map_Str_F32 other);
native void Move(Map_Str_F32 other);
native void Swap(Map_Str_F32 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native double Get(String key);
native bool CheckKey(String key) const;
native version("4.11") double GetIfExists(String key) const;
native version("4.11") double, bool CheckValue(String key) const;
native void Insert(String key, double value);
2022-12-04 15:51:44 +00:00
native void InsertNew(String key);
native void Remove(String key);
}
struct MapIterator_Str_F32 native
{
native bool Init(Map_Str_F32 other);
native bool ReInit();
native bool Valid();
native bool Next();
native String GetKey();
native double GetValue();
native void SetValue(double value);
}
struct Map_Str_F64 native
{
native void Copy(Map_Str_F64 other);
native void Move(Map_Str_F64 other);
native void Swap(Map_Str_F64 other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native double Get(String key);
native bool CheckKey(String key) const;
native version("4.11") double GetIfExists(String key) const;
native version("4.11") double, bool CheckValue(String key) const;
native void Insert(String key, double value);
2022-12-04 15:51:44 +00:00
native void InsertNew(String key);
native void Remove(String key);
}
struct MapIterator_Str_F64 native
{
native bool Init(Map_Str_F64 other);
native bool ReInit();
native bool Valid();
native bool Next();
native String GetKey();
native double GetValue();
native void SetValue(double value);
}
struct Map_Str_Obj native
{
native void Copy(Map_Str_Obj other);
native void Move(Map_Str_Obj other);
native void Swap(Map_Str_Obj other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native Object Get(String key);
native bool CheckKey(String key) const;
native version("4.11") Object GetIfExists(String key) const;
native version("4.11") Object, bool CheckValue(String key) const;
native void Insert(String key, Object value);
2022-12-04 15:51:44 +00:00
native void InsertNew(String key);
native void Remove(String key);
}
struct MapIterator_Str_Obj native
{
native bool Init(Map_Str_Obj other);
native bool ReInit();
native bool Valid();
native bool Next();
native String GetKey();
native Object GetValue();
native void SetValue(Object value);
}
struct Map_Str_Ptr native
{
native void Copy(Map_Str_Ptr other);
native void Move(Map_Str_Ptr other);
native void Swap(Map_Str_Ptr other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native voidptr Get(String key);
native bool CheckKey(String key) const;
native version("4.11") voidptr GetIfExists(String key) const;
native version("4.11") voidptr, bool CheckValue(String key) const;
native void Insert(String key, voidptr value);
2022-12-04 15:51:44 +00:00
native void InsertNew(String key);
native void Remove(String key);
}
struct MapIterator_Str_Ptr native
{
native bool Init(Map_Str_Ptr other);
native bool ReInit();
native bool Valid();
native bool Next();
native String GetKey();
native voidptr GetValue();
native void SetValue(voidptr value);
}
struct Map_Str_Str native
{
native void Copy(Map_Str_Str other);
native void Move(Map_Str_Str other);
native void Swap(Map_Str_Str other);
native void Clear();
native uint CountUsed() const;
2022-12-04 15:51:44 +00:00
native String Get(String key);
native bool CheckKey(String key) const;
native version("4.11") String GetIfExists(String key) const;
native version("4.11") String, bool CheckValue(String key) const;
native void Insert(String key, String value);
2022-12-04 15:51:44 +00:00
native void InsertNew(String key);
native void Remove(String key);
}
struct MapIterator_Str_Str native
{
native bool Init(Map_Str_Str other);
native bool ReInit();
native bool Valid();
native bool Next();
native String GetKey();
native String GetValue();
native void SetValue(String value);
}