fix: add some missing API methods, ref: NOISSUE
This commit is contained in:
1 parent
1b2e9ad1ee
commit
fc137ebd03
1 file changed
+7
-2
@@ -123,7 +123,7 @@ public abstract class DataSetManipulatorBase<TCollectedType, TDataType, TIndexTy
|
|||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<DirectionalSearchResult<TIndexType>> FindInSet(List<TDataType> data)
|
public List<DirectionalSearchResult<TIndexType>> FindInSet(List<TDataType> data, Direction directions)
|
||||||
{
|
{
|
||||||
var result = new List<DirectionalSearchResult<TIndexType>>();
|
var result = new List<DirectionalSearchResult<TIndexType>>();
|
||||||
|
|
||||||
@@ -131,11 +131,16 @@ public abstract class DataSetManipulatorBase<TCollectedType, TDataType, TIndexTy
|
|||||||
var startingPoints = this.FindInSet(data[0]);
|
var startingPoints = this.FindInSet(data[0]);
|
||||||
foreach (var startingPoint in startingPoints)
|
foreach (var startingPoint in startingPoints)
|
||||||
{
|
{
|
||||||
foreach (var results in this.FindAtPosition(startingPoint.DataIndex, data))
|
foreach (var results in this.FindAtPosition(startingPoint.DataIndex, data, directions))
|
||||||
{
|
{
|
||||||
result.AddRange(results);
|
result.AddRange(results);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<DirectionalSearchResult<TIndexType>> FindInSet(List<TDataType> data)
|
||||||
|
{
|
||||||
|
return this.FindInSet(data, this.ValidDirections());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user