maxon.Struct¶
Description¶
Represents a C++ structure.
Warning
Methods Signature¶
|
Returns a list of all the attributes names of the current instance including the member names for the underlying structure type. |
|
Returns the attribute value stored under the given name. |
|
Returns the string representation of a struct. |
|
Stores the given value under the given attribute name if it exists. |
Methods Definition¶
-
Struct.
__dir__
()¶ Returns a list of all the attributes names of the current instance including the member names for the underlying structure type.
- Returns
The list of all attributes names.
- Return type
list[str]
-
Struct.
__getattribute__
(name)¶ Returns the attribute value stored under the given name.
- Parameters
name (str) – The name of the attribute.
- Returns
The resolved attribute or raise AttributeError if the given name can’t be found.
- Return type
Any
-
Struct.
__repr__
()¶ Returns the string representation of a struct.
- Return type
str
-
Struct.
__setattr__
(name, value)¶ Stores the given value under the given attribute name if it exists.
- Parameters
name (str) – The name of the attribute.
value (
maxon.Data
) – The value we want to assign to the attribute.