| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Storage.VolatileDB.Impl.Index
Description
VolatileDB Index
Intended for qualified import > import qualified Ouroboros.Consensus.Storage.VolatileDB.Impl.Index as Index
Synopsis
- data Index blk
- empty :: Index blk
- lookup :: FileId -> Index blk -> Maybe (FileInfo blk)
- insert :: FileId -> FileInfo blk -> Index blk -> Index blk
- delete :: FileId -> Index blk -> Index blk
- toAscList :: Index blk -> [(FileId, FileInfo blk)]
- elems :: Index blk -> [FileInfo blk]
- lastFile :: Index blk -> Maybe (FileId, FileInfo blk)
Documentation
Instances
| Generic (Index blk) Source # | |
| StandardHash blk => NoThunks (Index blk) Source # | |
| type Rep (Index blk) Source # | |
Defined in Ouroboros.Consensus.Storage.VolatileDB.Impl.Index type Rep (Index blk) = D1 ('MetaData "Index" "Ouroboros.Consensus.Storage.VolatileDB.Impl.Index" "ouroboros-consensus-0.1.0.0-GfJNvFcM6lj2s5utKAUPEp" 'True) (C1 ('MetaCons "Index" 'PrefixI 'True) (S1 ('MetaSel ('Just "unIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (IntMap (FileInfo blk))))) | |