Safe Haskell | None |
---|
Navigable tree structure which allow a program to traverse for XPath expressions copied and modified from HXML (http://www.flightlab.com/~joe/hxml/)
- data NavTree a = NT {
- self :: NTree a
- selfIndex :: Int
- ancestors :: [NavTree a]
- previousSiblings :: [NTree a]
- followingSiblings :: [NTree a]
- ntree :: NTree a -> NavTree a
- subtreeNT :: NavTree a -> NTree a
- dataNT :: NavTree a -> a
- childrenNT :: NavTree a -> [NTree a]
- indexNT :: NavTree a -> Int
- pathNT :: NavTree a -> [Int]
- upNT :: NavTree a -> Maybe (NavTree a)
- rightNT :: NavTree a -> Maybe (NavTree a)
- leftNT :: NavTree a -> Maybe (NavTree a)
- downNT :: NavTree a -> Maybe (NavTree a)
- preorderNT :: NavTree a -> [NavTree a]
- revPreorderNT :: NavTree a -> [NavTree a]
- getChildrenNT :: NavTree a -> [NavTree a]
- o' :: (b -> [c]) -> (a -> [b]) -> a -> [c]
- maybeStar :: (a -> Maybe a) -> a -> [a]
- maybePlus :: (a -> Maybe a) -> a -> [a]
- parentAxis :: NavTree a -> [NavTree a]
- ancestorAxis :: NavTree a -> [NavTree a]
- ancestorOrSelfAxis :: NavTree a -> [NavTree a]
- childAxis :: NavTree a -> [NavTree a]
- descendantAxis :: NavTree a -> [NavTree a]
- descendantOrSelfAxis :: NavTree a -> [NavTree a]
- followingSiblingAxis :: NavTree a -> [NavTree a]
- precedingSiblingAxis :: NavTree a -> [NavTree a]
- selfAxis :: NavTree a -> [NavTree a]
- followingAxis :: NavTree a -> [NavTree a]
- precedingAxis :: NavTree a -> [NavTree a]
- attributeAxis :: NavTree XNode -> [NavTree XNode]
- module Data.Tree.NTree.TypeDefs
Documentation
navigable tree with nodes of type node
a navigable tree consists of a n-ary tree for the current fragment tree, a navigable tree for all ancestors, and two n-ary trees for the previous- and following siblings
NT | |
|
childrenNT :: NavTree a -> [NTree a]Source
function for selecting all children of a tree
preorderNT :: NavTree a -> [NavTree a]Source
revPreorderNT :: NavTree a -> [NavTree a]Source
getChildrenNT :: NavTree a -> [NavTree a]Source
parentAxis :: NavTree a -> [NavTree a]Source
ancestorAxis :: NavTree a -> [NavTree a]Source
ancestorOrSelfAxis :: NavTree a -> [NavTree a]Source
descendantAxis :: NavTree a -> [NavTree a]Source
descendantOrSelfAxis :: NavTree a -> [NavTree a]Source
followingSiblingAxis :: NavTree a -> [NavTree a]Source
precedingSiblingAxis :: NavTree a -> [NavTree a]Source
followingAxis :: NavTree a -> [NavTree a]Source
precedingAxis :: NavTree a -> [NavTree a]Source
module Data.Tree.NTree.TypeDefs