Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/Auxiliary/DataSearch/SearchResult1d.cs @ 13757

Last change on this file since 13757 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 560 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace Microsoft.Research.DynamicDataDisplay.Common.DataSearch
7{
8  internal struct SearchResult1d
9  {
10    public static SearchResult1d Empty
11    {
12      get { return new SearchResult1d { Index = -1 }; }
13    }
14
15    public int Index { get; internal set; }
16
17    public bool IsEmpty
18    {
19      get { return Index == -1; }
20    }
21
22    public override string ToString()
23    {
24      if (IsEmpty)
25        return "Empty";
26
27      return String.Format("Index = {0}", Index);
28    }
29  }
30}
Note: See TracBrowser for help on using the repository browser.