namespace tree
{
/**
- * \ingroup Model
+ * \ingroup Tree
*/
//=====================================================================
/// Forward declaration of Tree
//=====================================================================
//=====================================================================
- /// Abstract class to store user data on a tree node
+ /// Abstract class to store user data on a Tree node
struct NodeData
{
NodeData() {}
//=====================================================================
- /// Node of an attributed tree structure
+ /// Node of an attributed Tree structure
class Node
{
public:
const ChildrenListType& GetChildrenList() const { return mChildren; }
/// Remove the given children from the children list
- void RemoveChildrenFromList(Node*);
+ int RemoveChildrenFromList(Node*);
AttributeMapType& GetAttributeMap() { return mAttributeMap; }
void UnsafeSetAttribute(const std::string& k, const std::string& v)
{ mAttributeMap[k] = v; }
- const AttributeDescriptor& GetAttributeDescriptor(const std::string& k)
- const;
+ const AttributeDescriptor& GetAttributeDescriptor(const std::string& k)const;
// { return GetTypeDescription().GetFieldDescription(k); }
/// Sorts the children of the node
void SortChildren(const LexicographicalComparator&);
-
virtual void Print() const;
std::string GetLabel() const;
/*