Navigation
API > API/Developer > API/Developer/TraceServices
Description
Use binary search to find the first and last element inside a TPagedArray that overlaps a given input interval. This requires the elements in the array to be sorted by the value returned from the Projection. Example usage for Timeline events would require a projection that returns Item.StartTime and the resulting range.Min will point to the last element where Item.End > StartTime and range.Max to the last element where Item.StartTime < EndTime.
| Name | TraceServices::GetElementRangeOverlappingGivenRange |
| Type | function |
| Header File | /Engine/Source/Developer/TraceServices/Public/Common/PagedArray.h |
| Include Path | #include "Common/PagedArray.h" |
namespace TraceServices
{
template<typename ItemType, typename PageType>
FInt32Interval TraceServices::GetElementRangeOverlappingGivenRange
(
const TPagedArray < ItemType, PageType > & PagedArray,
double StartTime,
double EndTime,
TFunctionRef < double> ItemStartProjection,
TFunctionRef < double> ItemEndProjection
)
}