Portability | not portable |
---|---|
Stability | experimental |
Maintainer | Birte Wagner, Sebastian Philipp (sebastian@spawnhost.de) |
Safe Haskell | None |
Internal implementations. Use Data.RTree instead
- data RTree a
- empty :: RTree a
- singleton :: MBB -> a -> RTree a
- insert :: MBB -> a -> RTree a -> RTree a
- union :: RTree a -> RTree a -> RTree a
- lookup :: MBB -> RTree a -> Maybe a
- lookupRange :: MBB -> RTree a -> [a]
- fromList :: [(MBB, a)] -> RTree a
- toList :: RTree a -> [(MBB, a)]
- delete :: MBB -> RTree a -> RTree a
- length :: RTree a -> Int
- null :: RTree a -> Bool
- keys :: RTree a -> [MBB]
- values :: RTree a -> [a]
- mapMaybe :: (a -> Maybe b) -> RTree a -> RTree b
- foldWithMBB :: (MBB -> a -> b) -> (MBB -> [b] -> b) -> b -> RTree a -> b
- getMBB :: RTree a -> MBB
- pp :: Show a => RTree a -> IO ()
- isValid :: Show b => b -> RTree a -> Bool
- unionDistinct :: RTree a -> RTree a -> RTree a
- getC1 :: RTree a -> RTree a
- getC2 :: RTree a -> RTree a
- getC3 :: RTree a -> RTree a
- getC4 :: RTree a -> RTree a
Documentation
insert :: MBB -> a -> RTree a -> RTree aSource
inserts an element whith the given MBB
and a value in a tree
lookupRange :: MBB -> RTree a -> [a]Source
returns all values, which are located in the given bounding box.
toList :: RTree a -> [(MBB, a)]Source
creates a list of pairs out of a tree
toList t = zip (keys t) (values t)
delete :: MBB -> RTree a -> RTree aSource
Delete a key and its value from the RTree. When the key is not a member of the tree, the original tree is returned.
foldWithMBB :: (MBB -> a -> b) -> (MBB -> [b] -> b) -> b -> RTree a -> bSource
testing
unionDistinct :: RTree a -> RTree a -> RTree aSource
unifies left and right RTeee. Works only, if they don't contain common keys. Much faster than union, though.