DSTreeElement



Member Functions

DSTreeElement

	public:

DSTreeElement(int cleanup=0);

Creates a new TreeElement.

Parameters

NameDescription
cleanupSpecifies the cleanup flags that apply to this TreeElement.

DSTreeElement

	public:

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

Creates a new TreeElement.

Parameters

NameDescription
DataSpecifies the value of the new element. This pointer is used in the element, copy data yourself.
CleanupSpecifies the cleanup flags that apply to this TreeElement.

DSTreeElement

	public:

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

Creates a new TreeElement.

Parameters

NameDescription
DataSpecifies the numeric value of the new element.
CleanupSpecifies the cleanup flags that apply to this TreeElement.

getDataInt

	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.

getDataPtr

	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.

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 TreeElement. Any previous value is destroyed.

Parameters

NameDescription
DataThe new numeric value.

setDataPtr

	public:

void setDataPtr(void * Data);

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

Parameters

NameDescription
DataThe 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.

Parameters

NameDescription
KeyThe new numeric value.

setKeyInt

	public:

void setKeyString(char * Key);

Modifies the key in the TreeElement. 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 TreeElement to keep it.

~TreeElement

	public:

~DSTreeElement();

Destroys the TreeElement.


Member Data

Cleanup

public:
  enum  {
  CLEANUP_VALUE_FREE=64,
  CLEANUP_ALL=64
  };

Cleanup flags

Constants

NameDescription
CLEANUP_VALUE_FREESpecifies that the value should be cleaned up using free() when it's disposed.

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