Name
PnSymbolTable -- an object for managing in-script variables
Object Hierarchy
GObject
+----PnObject
+----PnSymbolTable |
Description
PnSymbolTable objects manage a list of in-script variables. A reference
counting system is used to allow user-created variables to be freed when
no longer needed, while keeping variables needed by the actuator.
Details
pn_symbol_table_ref_variable_by_name ()
Retrieves an in-script variable contained within a symbol table and increments the
variable's reference count. If the variable is not yet in the symbol table, it is
added (with a value of 0.0).
pn_symbol_table_ref_variable ()
Increments the reference count of an in-script variable contained within
a symbol table.
struct PnVariable
struct PnVariable
{
/*< public >*/
gdouble value; /* read-write */
gchar *name; /* read-only */
/*< private >*/
guint refs;
}; |
pn_symbol_table_unref_variable ()
Decrements the reference count of an in-script variable. If the reference
count becomes 0, the variable is freed from memory.