A Relation is a named list of items. An utterance can hold an arbitrary number of relations.
The SRelation structure.
An Utterance can hold an arbitrary number of Relations.
The SRelationClass structure.
Initialize a newly created relation with the given name.
Parameters: |
|
---|---|
Note: | If this function fails the relation will be deleted and the self pointer will be set to NULL. To connect a newly created relation to an utterance call SUtteranceSetRelation. Mostly for internal use when relations have been created with S_NEW, and not SUtteranceNewRelation. |
Get the name of given relation.
Parameters: |
|
---|---|
Return: | Pointer to the name of the given relation. |
Get the utterance of the given relation.
Parameters: |
|
---|---|
Return: | Pointer to the utterance of the given relation. |
Return the item at the head of the given relation.
Parameters: |
|
---|---|
Return: | Pointer to the head item of the given relation. |
Return the item at the tail of the given relation.
Parameters: |
|
---|---|
Return: | Pointer to the tail item of given relation. |
Create a new item and append it to the end of the items in the given relation.
Parameters: |
|
---|---|
Return: | Pointer to the appended item as it is in the given relation. |
Create a new item and prepend it to the front of the items in the given relation.
Parameters: |
|
---|---|
Return: | Pointer to the prepended item as it is in the relation. |