Modernized GAlib  3.0.0 current
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
GATreeBASE Class Reference
Inheritance diagram for GATreeBASE:
[legend]
Collaboration diagram for GATreeBASE:
[legend]

Public Types

enum  Location { ROOT = 0 , BEFORE , AFTER , BELOW }
 
enum  { NO_ERR = 0 , ERR = -1 }
 

Public Member Functions

 GATreeBASE (GANodeBASE *n)
 
GANodeBASEremove (GANodeBASE *n)
 
int insert (GANodeBASE *n, GANodeBASE *idx, Location where=BELOW)
 
int swaptree (GANodeBASE *a, GANodeBASE *b)
 
int swapnode (GANodeBASE *a, GANodeBASE *b)
 
int size () const
 
int depth () const
 
int ancestral (unsigned int i, unsigned int j) const
 

Protected Attributes

int sz
 
int dpth
 
short csz
 
short cdpth
 
GANodeBASErt
 

Friends

class GATreeIterBASE
 

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