Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

rtxDList.h File Reference

#include "rtxsrc/rtxCommonDefs.h"
#include "rtxsrc/rtxSysTypes.h"

Go to the source code of this file.

Classes

struct  OSRTDListNode
 This structure is used to hold a single data item within the list. More...
struct  OSRTDList
 This is the main list structure. More...

Defines

#define rtxDListAppendData(pctxt, pList, pData)
#define rtxDListFastInit(pList)

Functions

void rtxDListInit (OSRTDList *pList)
 This function initializes a doubly linked list structure.
OSRTDListNodertxDListAppend (struct OSCTXT *pctxt, OSRTDList *pList, void *pData)
 This function appends an item to the linked list structure.
OSRTDListNodertxDListInsert (struct OSCTXT *pctxt, OSRTDList *pList, int index, void *pData)
 This function inserts an item into the linked list structure.
OSRTDListNodertxDListInsertBefore (struct OSCTXT *pctxt, OSRTDList *pList, OSRTDListNode *node, void *pData)
 This function inserts an item into the linked list structure before the specified element.
OSRTDListNodertxDListInsertAfter (struct OSCTXT *pctxt, OSRTDList *pList, OSRTDListNode *node, void *pData)
 This function inserts an item into the linked list structure after the specified element.
OSRTDListNodertxDListFindByIndex (const OSRTDList *pList, int index)
 This function will return the node pointer of the indexed entry in the list.
OSRTDListNodertxDListFindByData (const OSRTDList *pList, void *data)
 This function will return the node pointer of the given data item within the list or NULL if the item is not found.
int rtxDListFindIndexByData (const OSRTDList *pList, void *data)
 This function will return the index of the given data item within the list or -1 if the item is not found.
void rtxDListFreeNode (struct OSCTXT *pctxt, OSRTDList *pList, OSRTDListNode *node)
 This function will remove the given node from the list and free memory.
void rtxDListRemove (OSRTDList *pList, OSRTDListNode *node)
 This function will remove the given node from the list.
void rtxDListFreeNodes (struct OSCTXT *pctxt, OSRTDList *pList)
 This function will free all of the dynamic memory used to hold the list node pointers.
void rtxDListFreeAll (struct OSCTXT *pctxt, OSRTDList *pList)
 This function will free all of the dynamic memory used to hold the list node pointers and the data items.
int rtxDListToArray (struct OSCTXT *pctxt, OSRTDList *pList, void **ppArray, OSUINT32 *pElements, int elemSize)
 This function converts a doubly linked list to an array.
int rtxDListAppendArray (struct OSCTXT *ctxt_p, OSRTDList *pList, void *pArray, OSUINT32 numElements, int elemSize)
 This function appends pointers to items in the given array to a doubly linked list structure.
int rtxDListAppendArrayCopy (struct OSCTXT *ctxt_p, OSRTDList *pList, const void *pArray, OSUINT32 numElements, int elemSize)
 This function appends a copy of each item in the given array to a doubly linked list structure.


Detailed Description

Definition in file rtxDList.h.


This file was last modified on 8 Jan 2007.
XBinder, Version 1.1.9