| Copyright | (c) 2019 Edward Kmett |
|---|---|
| License | BSD-2-Clause OR Apache-2.0 |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Atlas.Internal
Description
Details of the implementation.
The contents of this module do not fall under the PVP. Use at your own risk.
Synopsis
- newtype Atlas s = Atlas (ForeignPtr AtlasContext)
- data AtlasContext
- type Coord = Word16
- data Rect
- data Node
- heuristicId :: Heuristic -> CInt
- data Heuristic
- sizeOfAtlas :: Int
- sizeOfNode :: Int
- sizeOfRect :: Int
- data Pt = Pt Int Int
- peekWH :: Ptr Rect -> IO Pt
- peekXY :: Ptr Rect -> IO Pt
- pokeWH :: Ptr Rect -> Pt -> IO ()
- peekMaybeXY :: Ptr Rect -> IO (Maybe Pt)
- atlasCtx :: Context
- die :: (MonadIO m, HasCallStack) => String -> m a
Documentation
Constructors
| Atlas (ForeignPtr AtlasContext) |
data AtlasContext Source #
heuristicId :: Heuristic -> CInt Source #
Constructors
| BottomLeft | bottom-left sort-height |
| BestFirst | best first sort-height |
Instances
| Bounded Heuristic Source # | |
| Enum Heuristic Source # | |
Defined in Data.Atlas.Internal Methods succ :: Heuristic -> Heuristic # pred :: Heuristic -> Heuristic # fromEnum :: Heuristic -> Int # enumFrom :: Heuristic -> [Heuristic] # enumFromThen :: Heuristic -> Heuristic -> [Heuristic] # enumFromTo :: Heuristic -> Heuristic -> [Heuristic] # enumFromThenTo :: Heuristic -> Heuristic -> Heuristic -> [Heuristic] # | |
| Eq Heuristic Source # | |
| Ord Heuristic Source # | |
| Read Heuristic Source # | |
| Show Heuristic Source # | |
| Ix Heuristic Source # | |
Defined in Data.Atlas.Internal Methods range :: (Heuristic, Heuristic) -> [Heuristic] # index :: (Heuristic, Heuristic) -> Heuristic -> Int # unsafeIndex :: (Heuristic, Heuristic) -> Heuristic -> Int inRange :: (Heuristic, Heuristic) -> Heuristic -> Bool # rangeSize :: (Heuristic, Heuristic) -> Int # unsafeRangeSize :: (Heuristic, Heuristic) -> Int | |
| Lift Heuristic Source # | |
| Default Heuristic Source # | |
Defined in Data.Atlas.Internal | |
sizeOfAtlas :: Int Source #
sizeOfNode :: Int Source #
sizeOfRect :: Int Source #