The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TreeKeyIdx::TreeNode Class Reference
+ Collaboration diagram for TreeKeyIdx::TreeNode:

Public Member Functions

void clear ()
 
 TreeNode ()
 
 ~TreeNode ()
 

Public Attributes

SW_u16 dsize
 
SW_s32 firstChild
 
char * name
 
SW_s32 next
 
SW_s32 offset
 
SW_s32 parent
 
char * userData
 

Detailed Description

Definition at line 42 of file treekeyidx.h.

Constructor & Destructor Documentation

TreeKeyIdx::TreeNode::TreeNode ( )

Definition at line 630 of file treekeyidx.cpp.

630  {
631 
632  name = 0;
633  stdstr(&name, "");
634  userData = 0;
635 
636  clear();
637 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
TreeKeyIdx::TreeNode::~TreeNode ( )

Definition at line 659 of file treekeyidx.cpp.

659  {
660  if (name)
661  delete [] name;
662 
663  if (userData)
664  delete [] userData;
665 }

Member Function Documentation

void TreeKeyIdx::TreeNode::clear ( )

Definition at line 640 of file treekeyidx.cpp.

640  {
641  offset = 0;
642  parent = -1;
643  next = -1;
644  firstChild = -1;
645  dsize = 0;
646 
647  if (name)
648  delete [] name;
649  name = 0;
650  stdstr(&name, "");
651 
652  if (userData)
653  delete [] userData;
654  userData = 0;
655 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44

Member Data Documentation

SW_u16 TreeKeyIdx::TreeNode::dsize

Definition at line 52 of file treekeyidx.h.

SW_s32 TreeKeyIdx::TreeNode::firstChild

Definition at line 50 of file treekeyidx.h.

char* TreeKeyIdx::TreeNode::name

Definition at line 51 of file treekeyidx.h.

SW_s32 TreeKeyIdx::TreeNode::next

Definition at line 49 of file treekeyidx.h.

SW_s32 TreeKeyIdx::TreeNode::offset

Definition at line 47 of file treekeyidx.h.

SW_s32 TreeKeyIdx::TreeNode::parent

Definition at line 48 of file treekeyidx.h.

char* TreeKeyIdx::TreeNode::userData

Definition at line 53 of file treekeyidx.h.


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