EnsEMBL::Web::OrderedTree::Node

Location: /modules/EnsEMBL/Web/OrderedTree/Node.pm
Source code · Permalink
No superclasses
No subclasses

Overview

Accessor

Method

Unknown

  • _sorted_keys
  • data
  • get_node
  • is_leaf
  • key
  • leaves
  • left
  • new
  • parent_key
  • right
  • set
  • set_user
  • user_data
Documentation coverage: 63 %

Methods

    _node
    Return the current node hash...
    View source

    _nodes
    Return reference to nodes....
    View source

    _reorder_nodes
    private function ... move subtree [$l1,$r1] to [$l0,..] used by add_before; add_after
    View source

    _tree_info
    Handle on the tree info hash....
    View source

    add_after
    Splice in subtree $node as sibling before current node!
    View source

    add_before
    Splice in subtree $node as sibling before current node!
    View source

    append
    Splice in subtree $node as last child of current node!
    View source

    descendants
    Returns list of all nodes under this node!
    View source

    flush_user
    Remove a particular user setting for this node... Remove all user settings for this node...
    View source

    get
    Accessor. Returns user value if defined - otherwise returns value from data...
    View source

    is_ancestor_of
    Return true if this node is ancestor of $node;
    View source

    is_child_of
    Return true if this node is direct descendant of $node;
    View source

    is_descendant_of
    Return true if this node is descendant of $node;
    View source

    is_parent_of
    Return true if this node is direct ancestor of $node;
    View source

    next
    Get the next leaf node - irrespective of the subtree it is inReturns node object - or undef if current node is last leaf....
    View source

    next_leaf
    Get the next leaf node - irrespective of the subtree it is inReturns node object - or undef if current node is last leaf....
    View source

    nodes
    Returns list of all nodes in and under this node!
    View source

    prepend
    Splice in subtree $node as last child of current node!
    View source

    previous
    Get the previous leaf node - irrespective of the subtree it is inReturns node object - or undef if current node is first leaf....
    View source

    previous_leaf
    Get the previous leaf node - irrespective of the subtree it is inReturns node object - or undef if current node is first leaf....
    View source

    remove_node
    Remove a node - only if is a leaf node!!
    View source

    remove_subtree
    Remove subtree even if it is not empty!!
    View source