v_sim.NodeProperty¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
Details¶
- class v_sim.NodeProperty¶
This structure defines a storage for one property for each node of a given
v_sim.NodeArray. Usev_sim.NodeArray.property_newPointer() orv_sim.NodeArray.property_newInteger() to create one property.- getArray()¶
- Returns:
the
v_sim.NodeArrayself is attached to.- Return type:
Retrieve the
v_sim.NodeArrayself is attached to.New in version 3.8.
- getValue(node, value)¶
- Parameters:
node (
v_sim.Node) – av_sim.Nodeobject ;value (
GObject.Value) – an initialiseGObject.Valuelocation.
- Returns:
some data associated to the key, stored the given
GObject.Valuelocation.- Return type:
This method is used to retrieve some data associated to the specified node, stored in the given data. These return data should not be freed after used. The read value is stored in the given
GObject.Valuepointer. ThisGObject.Valuemust be of the right type, depending on the creation of thev_sim.NodeProperty.
- reset()¶
Reset to zero all values, deallocating allocated memory, if any.
New in version 3.8.
- setValue(node, value)¶
- Parameters:
node (
v_sim.Node) – av_sim.Nodeobject ;value (
GObject.Value) – AGObject.Valuepointer this the value to be stored.
This method is used to store some values associated with the given node of the given nodeArray. These values can be pointers to anything allocated (will be free automatically when the property is deleted) or they can be static values. This depends on the construction of the node property. These values can be retrieved with the
v_sim.NodeProperty.getValue() method.See
v_sim.NodeArray.getProperty() to get a property by its name.