terrahs-0.7: A library for GIS Programs in Haskell.ContentsIndex
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
The Pointer class
class Pointer a where
The class Pointer is a class for handling pointers to objects, ex: TePoint and TePointPtr
Methods
new :: a -> IO (Ptr a)
create a pointer from haskell object
fromPointer :: Ptr a -> IO a
create a haskell object from a pointer
delete :: Ptr a -> IO ()
delete a pointer from memory
show/hide Instances
The Convert class
class Convert a b where
The class Convert permit the converts from diferents objects
Methods
to :: a -> b
convert from a to b
from :: b -> a
convert from b to a
The Element class
class Element a b where
Methods
getElement :: Ptr a -> Int32 -> IO b
show/hide Instances
The Size class
class Size a where
Methods
size :: Ptr a -> IO Int32
show/hide Instances
Produced by Haddock version 2.3.0