|
Nyx Node
|
JSON list object. More...


Public Member Functions | |
| __init__ (self, int|None ptr=None) | |
| Allocates a new JSON list object or wraps one. | |
| None | clear (self) |
| Clears the content of this JSON list object. | |
| None | __delitem__ (self, int idx) |
| Deletes the entry at the provided index. | |
| obj.NyxObject | __getitem__ (self, int idx) |
| Gets the JSON object at the provided index. | |
| bool | __setitem__ (self, int idx, obj.NyxObject value) |
| Sets a JSON object at the provided index. | |
| bool | append (self, obj.NyxObject value) |
| Appends a JSON object in this JSON list object. | |
| int | __len__ (self) |
| Gets the number of items in this JSON list object. | |
| typing.Iterator[obj.NyxObject] | __iter__ (self) |
| Iterates over the values of this JSON list object. | |
| typing.Iterator[int] | indices (self) |
| Iterates over the indices of this JSON list object. | |
| typing.Iterator[obj.NyxObject] | values (self) |
| Iterates over the values of this JSON list object. | |
| typing.Iterator[typing.Tuple[int, obj.NyxObject]] | items (self) |
| Iterates over the index/value pairs of this JSON list object. | |
| Public Member Functions inherited from nyx.obj.NyxObject | |
| __init__ (self, int ptr) | |
| Wraps a C JSON object pointer. | |
| typing.Callable | on (self, typing.Callable callback) |
| Registers a callback triggered when clients modify this object. | |
| bool | notify (self) |
| Notifies this Nyx / INDI object to the clients. | |
| str | to_string (self, bool json_string=True) |
| Returns a string representing this JSON object. | |
| NyxXMLDoc | to_xmldoc (self) |
| Converts this JSON Nyx / INDI command to the XML one. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from nyx.obj.NyxObject | |
| NyxObject | from_string (str string) |
| Parses a JSON object from a string. | |
JSON list object.
Definition at line 22 of file json_list.py.
| nyx.json.json_list.NyxList.__init__ | ( | self, | |
| int | None | ptr = None ) |
Allocates a new JSON list object or wraps one.
| ptr | Optional JSON list object pointer. |
Definition at line 29 of file json_list.py.
| None nyx.json.json_list.NyxList.clear | ( | self | ) |
Clears the content of this JSON list object.
Definition at line 48 of file json_list.py.
| None nyx.json.json_list.NyxList.__delitem__ | ( | self, | |
| int | idx ) |
Deletes the entry at the provided index.
| idx | Index. |
Definition at line 59 of file json_list.py.
| obj.NyxObject nyx.json.json_list.NyxList.__getitem__ | ( | self, | |
| int | idx ) |
Gets the JSON object at the provided index.
| idx | Index. |
Definition at line 71 of file json_list.py.
| bool nyx.json.json_list.NyxList.__setitem__ | ( | self, | |
| int | idx, | ||
| obj.NyxObject | value ) |
Sets a JSON object at the provided index.
| idx | Index. |
| value | JSON object to be added. |
True if the value was modified, False otherwise. Definition at line 93 of file json_list.py.
| bool nyx.json.json_list.NyxList.append | ( | self, | |
| obj.NyxObject | value ) |
Appends a JSON object in this JSON list object.
| value | JSON object to be added. |
True if the value was modified, False otherwise. Definition at line 110 of file json_list.py.
| int nyx.json.json_list.NyxList.__len__ | ( | self | ) |
Gets the number of items in this JSON list object.
Definition at line 122 of file json_list.py.
| typing.Iterator[obj.NyxObject] nyx.json.json_list.NyxList.__iter__ | ( | self | ) |
Iterates over the values of this JSON list object.
Definition at line 167 of file json_list.py.
| typing.Iterator[int] nyx.json.json_list.NyxList.indices | ( | self | ) |
Iterates over the indices of this JSON list object.
Definition at line 180 of file json_list.py.
| typing.Iterator[obj.NyxObject] nyx.json.json_list.NyxList.values | ( | self | ) |
Iterates over the values of this JSON list object.
Definition at line 193 of file json_list.py.
| typing.Iterator[typing.Tuple[int, obj.NyxObject]] nyx.json.json_list.NyxList.items | ( | self | ) |
Iterates over the index/value pairs of this JSON list object.
Definition at line 206 of file json_list.py.