linal::LTree Class Reference

#include <LTree.h>


Public Member Functions

 LTree ()
 LTree (const LTree &)
 LTree (Object *)
 LTree (Object *, LTree *, LTree *)
 Creates a tree with Object o as its item and o2, o3 as branches /*.
 ~LTree ()
LTreeoperator= (const LTree &)
bool operator== (const LTree &) const
bool operator!= (const LTree &tree) const
Object getItem () const
bool hasLeft () const
LTree getLeft () const
bool hasRight () const
LTree getRight () const
void setItem (Object *o)
void setLeft (LTree *tree)
void setRight (LTree *tree)
bool isEmpty () const
DString & toDString () const
utils::DArray< Objectdecompose () const
bool hasChildren () const
bool contains (const Object &o) const
 Searches through the tree and determines whether the given object is in the tree.
int replace (const Object &a, const Object &b)
 Replaces a with b (if a exists).
bool isMatrix () const

Static Public Member Functions

static DString getVersion ()

Private Attributes

Objectitem
LTreeleftNode
LTreerightNode


Constructor & Destructor Documentation

linal::LTree::LTree (  ) 

linal::LTree::LTree ( const LTree  ) 

linal::LTree::LTree ( Object  ) 

linal::LTree::LTree ( Object ,
LTree ,
LTree  
)

Creates a tree with Object o as its item and o2, o3 as branches /*.

linal::LTree::~LTree (  ) 


Member Function Documentation

static DString linal::LTree::getVersion (  )  [inline, static]

LTree & linal::LTree::operator= ( const LTree  ) 

bool linal::LTree::operator== ( const LTree  )  const

bool linal::LTree::operator!= ( const LTree tree  )  const [inline]

Object linal::LTree::getItem (  )  const [inline]

bool linal::LTree::hasLeft (  )  const [inline]

LTree linal::LTree::getLeft (  )  const [inline]

bool linal::LTree::hasRight (  )  const [inline]

LTree linal::LTree::getRight (  )  const [inline]

void linal::LTree::setItem ( Object o  )  [inline]

void linal::LTree::setLeft ( LTree tree  )  [inline]

void linal::LTree::setRight ( LTree tree  )  [inline]

bool linal::LTree::isEmpty (  )  const [inline]

DString & linal::LTree::toDString (  )  const

utils::DArray< Object > linal::LTree::decompose (  )  const

bool linal::LTree::hasChildren (  )  const [inline]

bool linal::LTree::contains ( const Object o  )  const

Searches through the tree and determines whether the given object is in the tree.

Parameters:
o Object
Returns:
bool

int linal::LTree::replace ( const Object a,
const Object b 
)

Replaces a with b (if a exists).

A int is returned to show how often the replace occured.

Parameters:
a Object
b Object
Returns:
int

bool linal::LTree::isMatrix (  )  const [inline]


Field Documentation

Object* linal::LTree::item [private]

LTree* linal::LTree::leftNode [private]

LTree* linal::LTree::rightNode [private]


The documentation for this class was generated from the following files:
Generated on Wed Jan 23 14:53:55 2008 by  doxygen 1.5.2