示例#1
0
        internal Index(Repository repo)
        {
            this.repo = repo;

            handle    = Proxy.git_repository_index(repo.Handle);
            conflicts = new ConflictCollection(this);

            repo.RegisterForCleanup(handle);
        }
示例#2
0
        internal Index(Repository repo, string indexPath)
        {
            this.repo = repo;

            handle = Proxy.git_index_open(indexPath);
            Proxy.git_repository_set_index(repo.Handle, handle);
            conflicts = new ConflictCollection(this);

            repo.RegisterForCleanup(handle);
        }
示例#3
0
 public IndexSourceNode(
     PlanNodeId id,
     IndexHandle indexHandle,
     TableHandle tableHandle,
     TableLayoutHandle tableLayout,
     HashSet <Symbol> lookupSymbols,
     IEnumerable <Symbol> outputSymbols,
     IDictionary <string, dynamic> assignments,
     TupleDomainPlaceHolder <dynamic> currentConstraint
     ) : base(id)
 {
     this.IndexHandle       = indexHandle ?? throw new ArgumentNullException("indexHandle");
     this.TableHandle       = tableHandle ?? throw new ArgumentNullException("tableHanlde");
     this.TableLayout       = tableLayout;
     this.LookupSymbols     = lookupSymbols ?? throw new ArgumentNullException("lookupSymbols");
     this.OutputSymbols     = outputSymbols ?? throw new ArgumentNullException("outputSymbols");
     this.Assignments       = assignments ?? throw new ArgumentNullException("assignments");
     this.CurrentConstraint = currentConstraint ?? throw new ArgumentNullException("currentConstraint");
 }
示例#4
0
 internal TransientIndex(IndexHandle handle, Repository repo)
     : base(handle, repo)
 {
 }
示例#5
0
文件: Index.cs 项目: Xornent/simula
 internal Index(IndexHandle handle, Repository repo)
 {
     this.repo   = repo;
     this.handle = handle;
     conflicts   = new ConflictCollection(this);
 }