Freeciv-3.3
|
Data Fields | |
elem | |
size | |
Static Public Attributes | |
FieldType | elem |
SizeInfo | size |
![]() | |
bool | foldable = False |
![]() | |
str | FieldTypeConstructor = typing.Callable[[str, str], RawFieldType] |
Additional Inherited Members | |
![]() | |
_compat_keys (self, Location location, str packet) | |
Type information for an array field. Consists of size information and another FieldType for the array's elements, which may also be an ArrayType (for multi-dimensional arrays) or another SequenceType.
Definition at line 1765 of file generate_packets.py.
Definition at line 1776 of file generate_packets.py.
str generate_packets.ArrayType.__str__ | ( | self | ) |
Reimplemented from generate_packets.RawFieldType.
Definition at line 1879 of file generate_packets.py.
bool generate_packets.ArrayType.complex | ( | self | ) |
Reimplemented from generate_packets.FieldType.
Definition at line 1781 of file generate_packets.py.
Generate a code snippet deep-copying a field of this type from one packet struct to another that has already been initialized. Subclasses must override this if self.complex is True
Reimplemented from generate_packets.FieldType.
Definition at line 1819 of file generate_packets.py.
Generate a code snippet declaring a field with this type in a packet struct.
Reimplemented from generate_packets.FieldType.
Definition at line 1784 of file generate_packets.py.
Generate a code snippet shallow-copying a value of this type from dsend arguments into a packet struct.
Reimplemented from generate_packets.FieldType.
Definition at line 1833 of file generate_packets.py.
Generate a code snippet deinitializing a field of this type in the packet struct before it gets destroyed. Subclasses must override this if self.complex is True
Reimplemented from generate_packets.FieldType.
Definition at line 1845 of file generate_packets.py.
Generate a code snippet factoring a field of this type into a hash computation's `result`.
Reimplemented from generate_packets.FieldType.
Definition at line 1862 of file generate_packets.py.
Generate a code snippet initializing a field of this type in the packet struct, after the struct has already been zeroed. Subclasses must override this if self.complex is True
Reimplemented from generate_packets.FieldType.
Definition at line 1802 of file generate_packets.py.
Generate a code fragment declaring a parameter with this type for a handle function. See also self.get_code_handle_arg()
Reimplemented from generate_packets.FieldType.
Definition at line 1789 of file generate_packets.py.
Generate the loop body for get_code_cmp() This is placed at the very beginning of a scope, so variable declarations are permitted without requiring an extra block.
Reimplemented from generate_packets.SequenceType.
Definition at line 1868 of file generate_packets.py.
str generate_packets.ArrayType.inner_get | ( | self, | |
Location | location, | ||
str | packet, | ||
bool | deep_diff = False , |
||
int | json_step = 1 |
||
) |
Generate the main part of the loop body for get_code_get()
Reimplemented from generate_packets.SequenceType.
Definition at line 1875 of file generate_packets.py.
str generate_packets.ArrayType.inner_put | ( | self, | |
Location | location, | ||
str | packet, | ||
"str | None" | diff_packet = None , |
||
int | json_step = 1 |
||
) |
Generate the main part of the loop body for get_code_put()
Reimplemented from generate_packets.SequenceType.
Definition at line 1871 of file generate_packets.py.
Return a size info object for a field of this type
Reimplemented from generate_packets.SequenceType.
Definition at line 1865 of file generate_packets.py.
|
static |
Definition at line 1770 of file generate_packets.py.
generate_packets.ArrayType.elem |
Definition at line 1777 of file generate_packets.py.
|
static |
Definition at line 1773 of file generate_packets.py.
generate_packets.ArrayType.size |
Definition at line 1778 of file generate_packets.py.