public:
DSTreeElement(int cleanup=0);
Creates a new TreeElement.
Name Description cleanup Specifies the cleanup flags that apply to this TreeElement.
public:
DSTreeElement(void* Data,int Cleanup=0);
Creates a new TreeElement.
Name Description Data Specifies the value of the new element. This pointer is used in the element, copy data yourself. Cleanup Specifies the cleanup flags that apply to this TreeElement.
public:
DSTreeElement(unsigned int Data, int Cleanup=0);
Creates a new TreeElement.
Name Description Data Specifies the numeric value of the new element. Cleanup Specifies the cleanup flags that apply to this TreeElement.
public:
unsigned int getDataInt();
Retrieves the numeric value of the TreeElement.
Result: The numeric value of the TreeElement, or 0, if the TreeElement contains a pointer.public:
void* getDataPtr();
Retrieves the pointer value of the TreeElement.
Result: The pointer value of the TreeElement, or NULL, if the TreeElement contains a number.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 TreeElement. Any previous value is destroyed.
Name Description Data The new numeric value.
public:
void setDataPtr(void * Data);
Modifies the value in the TreeElement. Any previous value is destroyed.
Name Description Data The new pointer value. This pointer is inserted into the TreeElement and is not copied.
public:
void setKeyInt(unsigned int Key);
Modifies the key in the TreeElement. Any previous key is destroyed.
Name Description Key The new numeric value.
public:
void setKeyString(char * Key);
Modifies the key in the TreeElement. 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 TreeElement to keep it.
public:
~DSTreeElement();
Destroys the TreeElement.
public:enum { CLEANUP_VALUE_FREE=64, CLEANUP_ALL=64 };
Cleanup flags
Name Description 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)