This class encapsulates a node in a tree
This class encapsulates a node in a tree. The node has a label, a piece of data and a list of subitems
virtual ~skTreeNode()
skTreeNode(const skTreeNode& )
skTreeNode(const skString& label)
skTreeNode(const skString& label, const skString& data)
skTreeNode(const skString& label, bool data)
skTreeNode(const skString& label, int data)
skTreeNode(const skString& label, long data)
skTreeNode(const skString& label, float data)
skTreeNode& operator=(const skTreeNode& )
skString label() const
void label(const skString& s)
skString data() const
void data(const skString& s)
bool boolData() const
void boolData(bool)
int intData() const
void intData(int)
long longData() const
void longData(long)
float floatData() const
void floatData(float)
void prependChild(skTreeNode*)
void addChild(skTreeNode*)
void setChild(skTreeNode*)
void deleteChild(skTreeNode*)
bool containsChild(skTreeNode*)
skTreeNode* findChild(const skString& label) const
skTreeNode* findChild(const skString& label, const skString& data) const
skString findChildData(const skString& label, const skString& defaultVal) const
defaultVal - - the value to return if a match is not found
bool findChildboolData(const skString& label, bool defaultVal=false) const
defaultVal - - the value to return if a match is not found
int findChildIntData(const skString& label, int defaultVal=0) const
defaultVal - - the value to return if a match is not found
long findChildLongData(const skString& label, long defaultVal=0) const
defaultVal - - the value to return if a match is not found
float findChildFloatData(const skString& label, float defaultVal=0.0f) const
defaultVal - - the value to return if a match is not found
skString nthChildData(USize index) const
int nthChildIntData(USize index) const
void write(ostream& out, USize tabstops) const
bool write(const skString& file) const
skTreeNode* nthChild(USize i) const
USize numChildren() const
void copyItems(skTreeNode& node)
void moveItemsFrom(skTreeNode& node)
void clear()
static skTreeNode* read(const skString& file)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de