Navigation
Unreal Engine C++ API Reference > 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](API\Runtime\Core\Math\FInt32Interval) TraceServices::GetElementRangeOverlappingGivenRange ( const [TPagedArray](API\Developer\TraceServices\Common\TPagedArray)< ItemType, PageType > & PagedArray, double StartTime, double EndTime, [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< double(const ItemType &)> ItemStartProjection, [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< double(const ItemType &)> ItemEndProjection ) }
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.