C# Class GitSharp.Core.DirectoryCache.DirCacheIterator

Iterate a DirCache as part of a TreeWalk. This is an iterator to adapt a loaded DirCache instance (such as Read from an existing .git/index file) to the tree structure used by a TreeWalk, making it possible for applications to walk over any combination of tree objects already in the object database, index files, or working directories.
Inheritance: GitSharp.Core.TreeWalk.AbstractTreeIterator
Mostra file Open project: jagregory/GitSharp Class Usage Examples

Public Methods

Method Description
DirCacheIterator ( DirCache dc ) : System

Create a new iterator for an already loaded DirCache instance. The iterator implementation may copy part of the cache's data during construction, so the cache must be Read in prior to creating the iterator.

DirCacheIterator ( DirCacheIterator parentIterator, DirCacheTree cacheTree ) : System
back ( int delta ) : void
createEmptyTreeIterator ( ) : GitSharp.Core.TreeWalk.EmptyTreeIterator
createSubtreeIterator ( Repository repo ) : AbstractTreeIterator
eof ( ) : bool
first ( ) : bool
getDirCacheEntry ( ) : DirCacheEntry

Get the DirCacheEntry for the current file.

idBuffer ( ) : byte[]
idOffset ( ) : int
next ( int delta ) : void

Private Methods

Method Description
ParseEntry ( ) : void

Method Details

DirCacheIterator() public method

Create a new iterator for an already loaded DirCache instance. The iterator implementation may copy part of the cache's data during construction, so the cache must be Read in prior to creating the iterator.
public DirCacheIterator ( DirCache dc ) : System
dc DirCache /// The cache to walk. It must be already loaded into memory. ///
return System

DirCacheIterator() public method

public DirCacheIterator ( DirCacheIterator parentIterator, DirCacheTree cacheTree ) : System
parentIterator DirCacheIterator
cacheTree DirCacheTree
return System

back() public method

public back ( int delta ) : void
delta int
return void

createEmptyTreeIterator() public method

public createEmptyTreeIterator ( ) : GitSharp.Core.TreeWalk.EmptyTreeIterator
return GitSharp.Core.TreeWalk.EmptyTreeIterator

createSubtreeIterator() public method

public createSubtreeIterator ( Repository repo ) : AbstractTreeIterator
repo Repository
return GitSharp.Core.TreeWalk.AbstractTreeIterator

eof() public method

public eof ( ) : bool
return bool

first() public method

public first ( ) : bool
return bool

getDirCacheEntry() public method

Get the DirCacheEntry for the current file.
public getDirCacheEntry ( ) : DirCacheEntry
return DirCacheEntry

idBuffer() public method

public idBuffer ( ) : byte[]
return byte[]

idOffset() public method

public idOffset ( ) : int
return int

next() public method

public next ( int delta ) : void
delta int
return void