Freeciv-3.3
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes
generate_packets.BoolType Class Reference
+ Inheritance diagram for generate_packets.BoolType:

Public Member Functions

 __init__ (self, str dataio_info, str public_type)
 
 __init__ (self, "re.Match[str]" dataio_info, str public_type)
 
 __init__ (self, "str | re.Match[str]" dataio_info, str public_type)
 
- Public Member Functions inherited from generate_packets.IntType
str get_code_hash (self, Location location, str packet)
 
str get_code_get (self, Location location, str packet, bool deep_diff=False)
 
- Public Member Functions inherited from generate_packets.BasicType
str get_code_declaration (self, Location location)
 
str get_code_param (self, Location location)
 
str get_code_cmp (self, Location location, str new, str old)
 
str get_code_put (self, Location location, str packet, "str | None" diff_packet=None)
 
str __str__ (self)
 
- Public Member Functions inherited from generate_packets.FieldType
"FieldType" array (self, SizeInfo size)
 
str get_code_handle_arg (self, Location location, str packet)
 
str get_code_init (self, Location location, str packet)
 
str get_code_copy (self, Location location, str dest, str src)
 
str get_code_fill (self, Location location, str packet)
 
str get_code_free (self, Location location, str packet)
 
bool is_type_compatible (self, "FieldType" other)
 
- Public Member Functions inherited from generate_packets.RawFieldType
str __repr__ (self)
 

Static Public Attributes

 TYPE_PATTERN = re.compile(r"^bool\d*$")
 
bool foldable = True
 
- Static Public Attributes inherited from generate_packets.IntType
 TYPE_PATTERN = re.compile(r"^[su]int\d+$")
 
- Static Public Attributes inherited from generate_packets.BasicType
str dataio_type
 
str public_type
 
str DEFAULT_REGISTRY = TypeRegistry(BasicType)
 
- Static Public Attributes inherited from generate_packets.FieldType
bool foldable = False
 
bool complex = False
 
- Static Public Attributes inherited from generate_packets.RawFieldType
str FieldTypeConstructor = typing.Callable[[str, str], RawFieldType]
 

Additional Inherited Members

- Data Fields inherited from generate_packets.BasicType
 dataio_type
 
 public_type
 
- Protected Member Functions inherited from generate_packets.FieldType
 _compat_keys (self, Location location, str packet)
 

Detailed Description

Type information for a boolean field

Definition at line 1005 of file generate_packets.py.

Constructor & Destructor Documentation

◆ __init__() [1/3]

generate_packets.BoolType.__init__ (   self,
str  dataio_info,
str  public_type 
)

Reimplemented from generate_packets.IntType.

Definition at line 1014 of file generate_packets.py.

◆ __init__() [2/3]

generate_packets.BoolType.__init__ (   self,
"re.Match[str]"  dataio_info,
str  public_type 
)

Reimplemented from generate_packets.IntType.

Definition at line 1016 of file generate_packets.py.

◆ __init__() [3/3]

generate_packets.BoolType.__init__ (   self,
"str | re.Match[str]"  dataio_info,
str  public_type 
)

Reimplemented from generate_packets.IntType.

Definition at line 1017 of file generate_packets.py.

Field Documentation

◆ foldable

bool generate_packets.BoolType.foldable = True
static

Definition at line 1011 of file generate_packets.py.

◆ TYPE_PATTERN

generate_packets.BoolType.TYPE_PATTERN = re.compile(r"^bool\d*$")
static

Definition at line 1008 of file generate_packets.py.