Switch to astypedef, adds unit tests
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
18
Scripts/Interfaces/dictionary.astypedef
Normal file
18
Scripts/Interfaces/dictionary.astypedef
Normal file
@@ -0,0 +1,18 @@
|
||||
type dictionary {
|
||||
behave 4 dictionary@ f(int&in) { repeat { string, ? } };
|
||||
dictionary& opAssign(const dictionary &in);
|
||||
void set(const string &in, const ?&in);
|
||||
bool get(const string &in, ? &out) const;
|
||||
void set(const string &in, const int64&in);
|
||||
bool get(const string &in, int64 &out) const;
|
||||
void set(const string &in, const double&in);
|
||||
bool get(const string &in, double &out) const;
|
||||
bool exists(const string &in) const;
|
||||
bool isEmpty() const;
|
||||
uint getSize() const;
|
||||
bool delete(const string &in);
|
||||
void deleteAll();
|
||||
string[]@ getKeys() const;
|
||||
dictionaryValue& opIndex(const string &in);
|
||||
const dictionaryValue& opIndex(const string &in) const;
|
||||
}
|
||||
Reference in New Issue
Block a user