Functions



DSTreeElement


public:

DSTreeElement (     int cleanup=0 );
Discussion

Creates a new TreeElement.

Parameter Descriptions
cleanup
Specifies the cleanup flags that apply to this TreeElement.

DSTreeElement


public:

DSTreeElement (     void* Data,     int Cleanup=0 );
Discussion

Creates a new TreeElement.

Parameter Descriptions
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.

DSTreeElement


public:

DSTreeElement (     unsigned int Data,     int Cleanup=0 );
Discussion

Creates a new TreeElement.

Parameter Descriptions
Data
Specifies the numeric value of the new element.
Cleanup
Specifies the cleanup flags that apply to this TreeElement.

getDataInt


public:

unsigned int getDataInt (void);
Discussion

Retrieves the numeric value of the TreeElement.

function result
The numeric value of the TreeElement, or 0, if the TreeElement contains a pointer.

getDataPtr


public:

void* getDataPtr (void);
Discussion

Retrieves the pointer value of the TreeElement.

function result
The pointer value of the TreeElement, or NULL, if the TreeElement contains a number.

setCleanup


public:

void setCleanup (     int Cleanup );
Discussion

Modifies the cleanup flags.

Parameter Descriptions
Cleanup
The new cleanup flags.

setDataInt


public:

void setDataInt (     unsigned int Data );
Discussion

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

Parameter Descriptions
Data
The new numeric value.

setDataPtr


public:

void setDataPtr (     void * Data );
Discussion

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

Parameter Descriptions
Data
The new pointer value. This pointer is inserted into the TreeElement and is not copied.

setKeyInt


public:

void setKeyInt (     unsigned int Key );
Discussion

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

Parameter Descriptions
Key
The new numeric value.

setKeyInt


public:

void setKeyString (     char * Key );
Discussion

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

Parameter Descriptions
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.

~TreeElement


public:

~DSTreeElement (void);
Discussion

Destroys the TreeElement.

(Last Updated 9/24/2004)