public:
DSListElement(int cleanup=0);
Creates a new ListElement.
Name Description cleanup Specifies the cleanup flags that apply to this ListElement.
public:
DSListElement(DSListElement * le);
Copies a ListElement; does not copy the data contained inside.
Name Description le Specifies the ListElement to copy.
public:
DSListElement(char* Key,void* Data,DSListElement* Next, int Cleanup=0);
Creates a new ListElement.
Name Description Key Specifies the string key of the new element. This pointer is used in the element, copy data yourself. Data Specifies the value of the new element. This pointer is used in the element, copy data yourself. Next Points to the next ListElement in the List. Cleanup Specifies the cleanup flags that apply to this ListElement.
public:
DSListElement(unsigned int Key,void* Data,DSListElement* Next, int Cleanup=0);
Creates a new ListElement.
Name Description Key Specifies the numeric key of the new element. Data Specifies the value of the new element. This pointer is used in the element, copy data yourself. Next Points to the next ListElement in the List. Cleanup Specifies the cleanup flags that apply to this ListElement.
public:
DSListElement(char* Key,unsigned int Data,DSListElement* Next, int Cleanup=0);
Creates a new ListElement.
Name Description Key Specifies the string key of the new element. This pointer is used in the element, copy data yourself. Data Specifies the numeric value of the new element. Next Points to the next ListElement in the List. Cleanup Specifies the cleanup flags that apply to this ListElement.
public:
DSListElement(unsigned int Key,unsigned int Data, DSListElement* Next, int Cleanup=0);
Creates a new ListElement.
Name Description Key Specifies the numeric key of the new element. Data Specifies the numeric value of the new element. Next Points to the next ListElement in the List. Cleanup Specifies the cleanup flags that apply to this ListElement.
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.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.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.public:
char* getKeyString();
Retrieves the string key of the ListElement.
Result: The string key of the ListElement, or NULL, if the key is numeric.public:
DSListElement* getNext();
Retrieves the next ListElement.
Result: A pointer to the next ListElement, or NULL, if there is no following element.public:
void setCleanup(int Cleanup);
Modifies the cleanup flags.
Name Description Cleanup The new cleanup flags.
public:
void setDataInt(unsigned int Data);
Modifies the value in the ListElement. Any previous value is destroyed.
Name Description Data The new numeric value.
public:
void setDataPtr(void * Data);
Modifies the value in the ListElement. Any previous value is destroyed.
Name Description Data The new pointer value. This pointer is inserted into the ListElement and is not copied.
public:
void setKeyInt(unsigned int Key);
Modifies the key in the ListElement. Any previous key is destroyed.
Name Description Key The new numeric value.
public:
void setKeyString(char * Key);
Modifies the key in the ListElement. Any previous key is destroyed.
Name Description Key The 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.
public:
void setNext(DSListElement* Next);
Modifies the next the ListElement.
Name Description Next The new next ListElement.
public:
~DSListElement();
Destroys the ListElement.
public:enum { CLEANUP_KEY_FREE=16, CLEANUP_KEY_DELETE=32, CLEANUP_VALUE_FREE=64, CLEANUP_ALL=112 };
Cleanup flags
Name Description CLEANUP_KEY_FREE Specifies that the key should be cleaned up using free() when it's disposed. CLEANUP_KEY_DELETE Specifies that the key should be cleaned up using delete when it's disposed. CLEANUP_VALUE_FREE Specifies that the value should be cleaned up using free() when it's disposed.
Generated with HeaderDoc - © 2000 Apple Computer, Inc. (Last Updated 9/29/2003)