Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Static Public Attributes | Properties | Private Attributes
Silverstone.Manticore.Toolkit.ManticoreTreeNode Class Reference
Inheritance diagram for Silverstone.Manticore.Toolkit.ManticoreTreeNode:
Inheritance graph
[legend]
Collaboration diagram for Silverstone.Manticore.Toolkit.ManticoreTreeNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ManticoreTreeNode (String aLabel, Object aData)
TreeNodeGetDirectDescendant (Symbol *aSymbol)
bool HasDescendants () const
TreeNodeAddDescendant (Symbol *aSymbol)
voidoperator new (size_t size) CPP_THROW_NEW
void operator delete (void *ptr)

Public Attributes

TreeNodedescendants
TreeNodenextSibling
TreeNodenextRoot
Symbolsymbol
u_long bytesLeaked
u_long descendantBytesLeaked

Static Public Attributes

static TreeNodefreeList

Properties

Object Data [get]

Private Attributes

Object mData

Detailed Description

Definition at line 206 of file toolkit.menus.cs.


Constructor & Destructor Documentation

Definition at line 217 of file toolkit.menus.cs.

                                                          : base(aLabel)
    {
      mData = aData;
    }

Member Function Documentation

TreeNode * TreeNode::AddDescendant ( Symbol aSymbol) [inherited]

Definition at line 778 of file leaky.cpp.

{
  TreeNode* node = new TreeNode(aSymbol);
  node->nextSibling = descendants;
  descendants = node;
  return node;
}

Here is the call graph for this function:

Here is the caller graph for this function:

TreeNode * TreeNode::GetDirectDescendant ( Symbol aSymbol) [inherited]

Definition at line 766 of file leaky.cpp.

{
  TreeNode* node = descendants;
  while (node) {
    if (node->symbol == aSymbol) {
      return node;
    }
    node = node->nextSibling;
  }
  return NULL;
}

Here is the caller graph for this function:

bool TreeNode::HasDescendants ( ) const [inline, inherited]

Definition at line 64 of file leaky.h.

                              {
    return NULL != descendants;
  }

Here is the caller graph for this function:

void TreeNode::operator delete ( void ptr) [inherited]

Definition at line 757 of file leaky.cpp.

{
  TreeNode* node = (TreeNode*) ptr;
  if (node) {
    node->nextSibling = freeList;
    freeList = node;
  }
}
void * TreeNode::operator new ( size_t  size) [inherited]

Definition at line 734 of file leaky.cpp.

{
  if (!freeList) {
    TreeNode* newNodes = (TreeNode*) new char[sizeof(TreeNode) * 5000];
    if (!newNodes) {
      return NULL;
    }
    TreeNode* n = newNodes;
    TreeNode* end = newNodes + 5000 - 1;
    while (n < end) {
      n->nextSibling = n + 1;
      n++;
    }
    n->nextSibling = NULL;
    freeList = newNodes;
  }

  TreeNode* rv = freeList;
  freeList = rv->nextSibling;

  return (void*) rv;
}

Member Data Documentation

Definition at line 75 of file leaky.h.

Definition at line 76 of file leaky.h.

Definition at line 70 of file leaky.h.

TreeNode * TreeNode::freeList [static, inherited]

Definition at line 81 of file leaky.h.

Definition at line 208 of file toolkit.menus.cs.

Definition at line 72 of file leaky.h.

Definition at line 71 of file leaky.h.

Symbol* TreeNode::symbol [inherited]

Definition at line 73 of file leaky.h.


Property Documentation

Definition at line 210 of file toolkit.menus.cs.


The documentation for this class was generated from the following file: