Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Trie = Trie (ManagedPtr Trie)
- trieDestroy :: (HasCallStack, MonadIO m) => Trie -> m ()
- trieInsert :: (HasCallStack, MonadIO m) => Trie -> Text -> Ptr () -> m ()
- trieLookup :: (HasCallStack, MonadIO m) => Trie -> Text -> m (Ptr ())
- trieNew :: (HasCallStack, MonadIO m) => DestroyNotify -> m Trie
- trieRef :: (HasCallStack, MonadIO m) => Trie -> m Trie
- trieRemove :: (HasCallStack, MonadIO m) => Trie -> Text -> m Bool
- trieTraverse :: (HasCallStack, MonadIO m) => Trie -> Text -> TraverseType -> [TraverseFlags] -> Int32 -> TrieTraverseFunc -> m ()
- trieUnref :: (HasCallStack, MonadIO m) => Trie -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Trie Source # | |
GBoxed Trie Source # | |
Defined in GI.Dazzle.Structs.Trie | |
ManagedPtrNewtype Trie Source # | |
Defined in GI.Dazzle.Structs.Trie toManagedPtr :: Trie -> ManagedPtr Trie | |
TypedObject Trie Source # | |
Defined in GI.Dazzle.Structs.Trie | |
HasParentTypes Trie Source # | |
Defined in GI.Dazzle.Structs.Trie | |
IsGValue (Maybe Trie) Source # | Convert |
Defined in GI.Dazzle.Structs.Trie gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Trie -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Trie) | |
type ParentTypes Trie Source # | |
Defined in GI.Dazzle.Structs.Trie |
Methods
Click to display all available methods, including inherited ones
destroy
:: (HasCallStack, MonadIO m) | |
=> Trie | |
-> m () |
This is an alias for trieUnref
.
insert
:: (HasCallStack, MonadIO m) | |
=> Trie |
|
-> Text |
|
-> Ptr () |
|
-> m () |
Inserts value
into trie
located with key
.
lookup
:: (HasCallStack, MonadIO m) | |
=> Trie |
|
-> Text |
|
-> m (Ptr ()) | Returns: The value inserted or |
Looks up key
in trie
and returns the value associated.
new
:: (HasCallStack, MonadIO m) | |
=> DestroyNotify |
|
-> m Trie | Returns: A newly allocated |
Creates a new Trie
. When a value is removed from the trie, valueDestroy
will be called to allow you to release any resources.
ref
trieRef :: (HasCallStack, MonadIO m) => Trie -> m Trie Source #
No description available in the introspection data.
remove
Removes key
from trie
, possibly destroying the value associated with
the key.
traverse
:: (HasCallStack, MonadIO m) | |
=> Trie |
|
-> Text |
|
-> TraverseType |
|
-> [TraverseFlags] |
|
-> Int32 |
|
-> TrieTraverseFunc |
|
-> m () |
Traverses all nodes of trie
according to the parameters. For each node
matching the traversal parameters, func
will be executed.
Only TraverseTypePreOrder
and TraverseTypePostOrder
are supported for order
.
If maxDepth
is less than zero, the entire tree will be traversed.
If max_depth is 1, then only the root will be traversed.