Doubly-Linked List Utility Functions
The XBinder compiler will generate a mapping to the OSRTDList type for many kinds of repeating types. This is a linked list structure type. The doubly-linked list utility functions are common routines for working with linked lists of this type.
Functions are available to initialize, append, insert, remove, and find elements in lists. Some useful functions in this group are as follows:
- rtxDListInit - This function is used to initialize a linked list variable. This is first function that should be called before working with a linked list variable.
- rtxDListAppend - This function is used to append an item to a linked list. The normal procedure for populating a linked list variable is to first initialize it and then call this function to add items.
- rtxDListInsert - This function is used to insert an item into a specific location within a list.
- rtxDListRemove - This function is used to remove an item from a list.
Copyright © Objective Systems 2002-2008 This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included. |
Objective Systems, Inc.55 Dowlin Forge RoadExton, Pennsylvania 19341 http://www.obj-sys.com Phone: (484) 875-9841 Toll-free: (877) 307-6855 (US only) Fax: (484) 875-9830 info@obj-sys.com |