Typedefs | |
typedef MPlist | MPlist |
Type of property list objects. | |
Functions | |
MPlist * | mplist () |
Create a property list object. | |
MPlist * | mplist_copy (MPlist *plist) |
Copy a plist. | |
MPlist * | mplist_put (MPlist *plist, MSymbol key, void *val) |
Set the value of a property in a property list object. | |
void * | mplist_get (MPlist *plist, MSymbol key) |
Get the value of a property in a property list object. | |
MPlist * | mplist_add (MPlist *plist, MSymbol key, void *val) |
Add a property at the end of a property list object. | |
MPlist * | mplist_push (MPlist *plist, MSymbol key, void *val) |
Push a property to a property list object. | |
void * | mplist_pop (MPlist *plist) |
Pop a property from a property list object. | |
MPlist * | mplist_find_by_key (MPlist *plist, MSymbol key) |
Find a property of a specific key in a property list object. | |
MPlist * | mplist_find_by_value (MPlist *plist, void *val) |
Find a property of a specific value in a property list object. | |
MPlist * | mplist_next (MPlist *plist) |
Return the next sublist of a plist. | |
MPlist * | mplist_set (MPlist *plist, MSymbol key, void *val) |
Set the first property in a property list object. | |
int | mplist_length (MPlist *plist) |
Return the length of a plist. | |
MSymbol | mplist_key (MPlist *plist) |
Return the key of the first property in a property list object. | |
void * | mplist_value (MPlist *plist) |
Return the value of the first property in a property list object. | |
Variables | |
MSymbol | Minteger |
Symbol whose name is "integer". | |
MSymbol | Mplist |
Symbol whose name is "plist". | |
MSymbol | Mtext |
Symbol whose name is "mtext". |
(void *)
.If the key of a property is a managing key, its value is a managed object. A property list itself is a managed objects.
|
The type MPlist is for a property list object. Its internal structure is concealed from application programs. |
|
The mplist() function returns a newly created property list object of length zero.
|
|
The mplist_copy() function copies plist. In the copy, the values are the same as those of plist.
|
|
The mplist_put() function searches property list object plist from the beginning for a property whose key is key. If such a property is found, its value is changed to value. Otherwise, a new property whose key is key and value is value is appended at the end of plist. See the documentation of mplist_add() for the restriction on key and val.
If key is a managing key, val must be a managed object. In this case, the reference count of the old value, if not
|
|
The mplist_get() function searches property list object plist from the beginning for a property whose key is key. If such a property is found, a pointer to its value is returned as the type of
When
|
|
The mplist_add() function appends at the end of plist a property whose key is key and value is val. key can be any symbol other than If key is a managing key, val must be a managed object. In this case, the reference count of val is incremented by one.
|
|
The mplist_push() function pushes at the top of plist a property whose key is key and value si val. If key is a managing key, val must be a managed object. In this case, the reference count of val is incremented by one.
|
|
The mplist_pop() function pops the topmost property from plist. As a result, the key and value of plist becomes those of the next of plist.
|
|
The mplist_find_by_key() function searches property list object plist from the beginning for a property whose key is key. If such a property is found, a sublist of plist whose first element is the found one is returned. Otherwise, If key is Mnil, it returns the last a sublist of plist whose first element is the last one of plist. |
|
The mplist_find_by_value() function searches property list object plist from the beginning for a property whose value is val. If such a property is found, a sublist of plist whose first element is the found one is returned. Otherwise, |
|
The mplist_next() function returns a pointer to the sublist of plist, which begins at the second element in plist. If the length of plist is zero, it returns |
|
The mplist_set() function sets the key and value of the first property in property list object plist to key and value, respectively. See the documentation of mplist_add() for the restriction on key and val.
|
|
The mplist_length() function returns the number of properties in property list object plist. |
|
The mplist_key() function returns the key of the first property in property list object plist. If the length of plist is zero, it returns |
|
The mplist_value() function returns the value of the first property in property list object plist. If the length of plist is zero, it returns |
|
The symbol |
|
The symbol |
|
The symbol |