The Python mapping generates the following definition for this structure:
The constructor initializes each of the attributes to a default value appropriate for its type:
|Data Member Type||Default Value|
|First enumerator in enumeration|
You can also declare different default values for members of primitive and enumerated types.
__eq__ method returns true if all members of two structures are (recursively) equal, and
__ne__ returns true if any member differs.
__str__ method returns a string representation of the structure.
For structures that are also legal dictionary key types, the mapping also generates relational operators (
__ge__) and a
__hash__ method. The
__hash__ method returns a hash value for the structure based on the value of all its data members.