DSTreeElement |
public:
DSTreeElement ( int cleanup=0 );
Creates a new TreeElement.
- cleanup
- Specifies the cleanup flags that apply to this TreeElement.
DSTreeElement |
public:
DSTreeElement ( void* Data, int Cleanup=0 );
Creates a new TreeElement.
- 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 );
Creates a new TreeElement.
- 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);
Retrieves the numeric value of the TreeElement.
getDataPtr |
public:
void* getDataPtr (void);
Retrieves the pointer value of the TreeElement.
setCleanup |
public:
void setCleanup ( int Cleanup );
Modifies the cleanup flags.
- Cleanup
- The new cleanup flags.
setDataInt |
public:
void setDataInt ( unsigned int Data );
Modifies the value in the TreeElement. Any previous value is destroyed.
- Data
- The new numeric value.
setDataPtr |
public:
void setDataPtr ( void * Data );
Modifies the value in the TreeElement. Any previous value is destroyed.
- Data
- The new pointer value. This pointer is inserted into the TreeElement and is not copied.
setKeyInt |
public:
void setKeyInt ( unsigned int Key );
Modifies the key in the TreeElement. Any previous key is destroyed.
- Key
- The new numeric value.
setKeyInt |
public:
void setKeyString ( char * Key );
Modifies the key in the TreeElement. Any previous key is destroyed.
- 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);
Destroys the TreeElement.
Cleanup |
public:enum { CLEANUP_VALUE_FREE=64, CLEANUP_ALL=64 };
Cleanup flags
- CLEANUP_VALUE_FREE
- Specifies that the value should be cleaned up using free() when it's disposed.
(Last Updated 9/24/2004)