Navigation
API > API/Developer > API/Developer/TraceServices > API/Developer/TraceServices/Common
References
| Module | TraceServices |
| Header | /Engine/Source/Developer/TraceServices/Public/Common/PagedArray.h |
| Include | #include "Common/PagedArray.h" |
namespace TraceServices
{
template<typename ItemType, typename PageType>
FInt32Interval TraceServices&58;&58;GetElementRangeOverlappingGivenRange
&40;
const TPagedArray< ItemType, PageType > & PagedArray,
double StartTime,
double EndTime,
TFunctionRef< double(const ItemType &)> ItemStartProjection,
TFunctionRef< double(const ItemType &)> ItemEndProjection
&41;
}
Remarks
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.