Functions



DSListElement

	public:

DSListElement(int cleanup=0);

Creates a new ListElement.

Parameters

NameDescription
cleanupSpecifies the cleanup flags that apply to this ListElement.

DSListElement

	public:

DSListElement(DSListElement * le);

Copies a ListElement; does not copy the data contained inside.

Parameters

NameDescription
leSpecifies the ListElement to copy.

DSListElement

	public:

DSListElement(char* Key,void* Data,DSListElement* Next, int Cleanup=0);

Creates a new ListElement.

Parameters

NameDescription
KeySpecifies the string key of the new element. This pointer is used in the element, copy data yourself.
DataSpecifies the value of the new element. This pointer is used in the element, copy data yourself.
NextPoints to the next ListElement in the List.
CleanupSpecifies the cleanup flags that apply to this ListElement.

DSListElement

	public:

DSListElement(unsigned int Key,void* Data,DSListElement* Next, int Cleanup=0);

Creates a new ListElement.

Parameters

NameDescription
KeySpecifies the numeric key of the new element.
DataSpecifies the value of the new element. This pointer is used in the element, copy data yourself.
NextPoints to the next ListElement in the List.
CleanupSpecifies the cleanup flags that apply to this ListElement.

DSListElement

	public:

DSListElement(char* Key,unsigned int Data,DSListElement* Next, int Cleanup=0);

Creates a new ListElement.

Parameters

NameDescription
KeySpecifies the string key of the new element. This pointer is used in the element, copy data yourself.
DataSpecifies the numeric value of the new element.
NextPoints to the next ListElement in the List.
CleanupSpecifies the cleanup flags that apply to this ListElement.

DSListElement

	public:

DSListElement(unsigned int Key,unsigned int Data, DSListElement* Next, int Cleanup=0);

Creates a new ListElement.

Parameters

NameDescription
KeySpecifies the numeric key of the new element.
DataSpecifies the numeric value of the new element.
NextPoints to the next ListElement in the List.
CleanupSpecifies the cleanup flags that apply to this ListElement.

getDataInt

	public:

unsigned int getDataInt();

Retrieves the numeric value of the ListElement.

Result: The numeric value of the ListElement, or 0, if the ListElement contains a pointer.

getDataPtr

	public:

void* getDataPtr();

Retrieves the pointer value of the ListElement.

Result: The pointer value of the ListElement, or NULL, if the ListElement contains a number.

getKeyInt

	public:

unsigned int getKeyInt();

Retrieves the numeric key of the ListElement.

Result: The numeric key of the ListElement, or 0, if the key is a string.

getKeyString

	public:

char* getKeyString();

Retrieves the string key of the ListElement.

Result: The string key of the ListElement, or NULL, if the key is numeric.

getNext

	public:

DSListElement* getNext();

Retrieves the next ListElement.

Result: A pointer to the next ListElement, or NULL, if there is no following element.

setCleanup

	public:

void setCleanup(int Cleanup);

Modifies the cleanup flags.

Parameters

NameDescription
CleanupThe new cleanup flags.

setDataInt

	public:

void setDataInt(unsigned int Data);

Modifies the value in the ListElement. Any previous value is destroyed.

Parameters

NameDescription
DataThe new numeric value.

setDataPtr

	public:

void setDataPtr(void * Data);

Modifies the value in the ListElement. Any previous value is destroyed.

Parameters

NameDescription
DataThe new pointer value. This pointer is inserted into the ListElement and is not copied.

setKeyInt

	public:

void setKeyInt(unsigned int Key);

Modifies the key in the ListElement. Any previous key is destroyed.

Parameters

NameDescription
KeyThe new numeric value.

setKeyInt

	public:

void setKeyString(char * Key);

Modifies the key in the ListElement. Any previous key is destroyed.

Parameters

NameDescription
KeyThe new string value. This pointer is used directly, not copied; make sure you have copied it yourself if you'd like the ListElement to keep it.

setNext

	public:

void setNext(DSListElement* Next);

Modifies the next the ListElement.

Parameters

NameDescription
NextThe new next ListElement.

~ListElement

	public:

~DSListElement();

Destroys the ListElement.


Generated with HeaderDoc - © 2000 Apple Computer, Inc. — (Last Updated 5/10/2004)