Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorDom/NodeListAdapter.cs @ 12762

Last change on this file since 12762 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 678 bytes
Line 
1using System;
2using System.Xml;
3
4namespace SharpVectors.Dom
5{
6  /// <summary>
7  /// Summary description for NodeListAdapter.
8  /// </summary>
9  public class NodeListAdapter
10    : INodeList
11  {
12    #region Private Fields
13   
14    XmlNodeList nodeList;
15   
16    #endregion
17   
18    #region Constructors
19   
20    public NodeListAdapter(
21      XmlNodeList nodeList)
22    {
23      this.nodeList = nodeList;
24    }
25   
26    #endregion
27   
28    #region INodeList interface
29   
30    public INode this[
31      ulong index]
32    {
33      get
34      {
35        return (INode)nodeList[(int)index];
36      }
37    }
38   
39    public ulong Count
40    {
41      get
42      {
43        return (ulong)nodeList.Count;
44      }
45    }
46   
47    #endregion
48  }
49}
Note: See TracBrowser for help on using the repository browser.