mlist.h File Reference

<mi32/mlist.h> Definitions for Mlist functions and structures More...

#include <mi32/stddefns.h>

Include dependency graph for mlist.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  MLIST
struct  MLISTNODE
 Structures used by Mlist functions. More...

Defines

#define GEOMLIBEXPORT   MI_DLLIMPORT

Typedefs

typedef MLIST LINKEDLIST
typedef MLISTNODE LINKEDLISTNODE

Functions

GEOMLIBEXPORT void MlistAddToHead (MLIST *list, MLISTNODE *node, UINT32 flags)
GEOMLIBEXPORT void MlistAddToTail (MLIST *list, MLISTNODE *node, UINT32 flags)
GEOMLIBEXPORT void MlistRemove (MLIST *list, MLISTNODE *node, UINT32 flags)


Detailed Description

<mi32/mlist.h> Definitions for Mlist functions and structures

Deprecated:
Use MILIST instead

Definition in file mlist.h.


Define Documentation

#define GEOMLIBEXPORT   MI_DLLIMPORT
 

Definition at line 45 of file mlist.h.


Typedef Documentation

typedef MLIST LINKEDLIST
 

old names for old code

Definition at line 68 of file mlist.h.

typedef MLISTNODE LINKEDLISTNODE
 

Definition at line 69 of file mlist.h.


Function Documentation

GEOMLIBEXPORT void MlistAddToHead MLIST list,
MLISTNODE node,
UINT32  flags
 

Add to the head of a Linked List.

This function adds a node to the head of list. You can create a linked list of any kind of structure simply by putting a MLISTNODE in the structure.

It works best to put the MLISTNODE as the first thing in the structure you want to keep a list of. That way the node.next can be treated as both a pointer to a MLISTNODE (for the purposes of iterating through the list) and a pointer to whatever the structure is. Of course you have to cast it. There are macros for this.

Parameters:
list  List to add to
node  Node to add
flags  Flags

GEOMLIBEXPORT void MlistAddToTail MLIST list,
MLISTNODE node,
UINT32  flags
 

Add to the tail of a Linked List.

This function adds a node to the tail of list. You can create a linked list of any kind of structure simply by putting a MLISTNODE in the structure.

Parameters:
list  List to add to
node  Node to add
flags  Flags

GEOMLIBEXPORT void MlistRemove MLIST list,
MLISTNODE node,
UINT32  flags
 

Remove an item from a linked list.

This function removes a node from the list. The node's prev and next fields are set to NULL.

Parameters:
list  List to remove from
node  Node to remove
flags  Flags


Generated on Tue Dec 14 13:19:08 2004 for TNTsdk by  doxygen 1.3.8-20040913