terrahs-0.7: A library for GIS Programs in Haskell.Source codeContentsIndex
TerraHS.Algebras.Base.Object
Contents
The Pointer class
The Convert class
The Element class
The Size class
Description
Module for handling terralib an haskell objects
Synopsis
class Pointer a where
new :: a -> IO (Ptr a)
fromPointer :: Ptr a -> IO a
delete :: Ptr a -> IO ()
class Convert a b where
to :: a -> b
from :: b -> a
class Element a b where
getElement :: Ptr a -> Int32 -> IO b
class Size a where
size :: Ptr a -> IO Int32
applyf
The Pointer class
class Pointer a whereSource
The class Pointer is a class for handling pointers to objects, ex: TePoint and TePointPtr
Methods
new :: a -> IO (Ptr a)Source
create a pointer from haskell object
fromPointer :: Ptr a -> IO aSource
create a haskell object from a pointer
delete :: Ptr a -> IO ()Source
delete a pointer from memory
show/hide Instances
The Convert class
class Convert a b whereSource
The class Convert permit the converts from diferents objects
Methods
to :: a -> bSource
convert from a to b
from :: b -> aSource
convert from b to a
The Element class
class Element a b whereSource
Methods
getElement :: Ptr a -> Int32 -> IO bSource
show/hide Instances
The Size class
class Size a whereSource
Methods
size :: Ptr a -> IO Int32Source
show/hide Instances
applyf
Produced by Haddock version 2.4.2