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 |
GI.Ggit.Objects.Tree
Description
Represents a tree object.
Synopsis
- newtype Tree = Tree (ManagedPtr Tree)
- class (GObject o, IsDescendantOf Tree o) => IsTree o
- toTree :: (MonadIO m, IsTree o) => o -> m Tree
- treeGet :: (HasCallStack, MonadIO m, IsTree a) => a -> Word32 -> m (Maybe TreeEntry)
- treeGetByName :: (HasCallStack, MonadIO m, IsTree a) => a -> Text -> m (Maybe TreeEntry)
- treeGetByPath :: (HasCallStack, MonadIO m, IsTree a) => a -> Text -> m (Maybe TreeEntry)
- treeGetId :: (HasCallStack, MonadIO m, IsTree a) => a -> m (Maybe OId)
- treeSize :: (HasCallStack, MonadIO m, IsTree a) => a -> m Word32
- treeWalk :: (HasCallStack, MonadIO m, IsTree a) => a -> TreeWalkMode -> TreeWalkCallback -> m ()
Exported types
Memory-managed wrapper type.
Constructors
Tree (ManagedPtr Tree) |
Instances
Eq Tree Source # | |
GObject Tree Source # | |
Defined in GI.Ggit.Objects.Tree | |
ManagedPtrNewtype Tree Source # | |
Defined in GI.Ggit.Objects.Tree Methods toManagedPtr :: Tree -> ManagedPtr Tree # | |
TypedObject Tree Source # | |
Defined in GI.Ggit.Objects.Tree | |
HasParentTypes Tree Source # | |
Defined in GI.Ggit.Objects.Tree | |
IsGValue (Maybe Tree) Source # | Convert |
Defined in GI.Ggit.Objects.Tree | |
type ParentTypes Tree Source # | |
Defined in GI.Ggit.Objects.Tree |
class (GObject o, IsDescendantOf Tree o) => IsTree o Source #
Instances
(GObject o, IsDescendantOf Tree o) => IsTree o Source # | |
Defined in GI.Ggit.Objects.Tree |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, get, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, size, stealData, stealQdata, thawNotify, unref, walk, watchClosure.
Getters
getByName, getByPath, getData, getId, getOwner, getProperty, getQdata.
Setters
get
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a |
|
-> Word32 |
|
-> m (Maybe TreeEntry) |
Get a tree entry by index.
getByName
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a |
|
-> Text |
|
-> m (Maybe TreeEntry) |
Get a tree entry by name.
getByPath
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a |
|
-> Text |
|
-> m (Maybe TreeEntry) |
Retrieves a tree entry contained in a tree or in any of its subtrees, given its relative path.
getId
Get the OId
of the tree.
size
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a |
|
-> m Word32 | Returns: the number of entries in the tree. |
Get the number of entries in the tree.
walk
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a |
|
-> TreeWalkMode |
|
-> TreeWalkCallback |
|
-> m () | (Can throw |
Walk all the entries of a tree object recursively (resolving and walking
subtrees of the tree as needed). The error
will be set to the error returned
by callback
(if any).