Navigation
API > API/Developer > API/Developer/TraceServices
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
decltype(GetNum(PagedArray)) TraceServices::PagedArrayAlgo::BinarySearchClosestBy
(
const TPagedArray< ItemType, PageType >& PagedArray, |
Common/PagedArray.h | ||
decltype(GetNum(PagedArray)) TraceServices::PagedArrayAlgo::BinarySearchClosestBy
(
const TPagedArray< ItemType, PageType >& PagedArray, |
Performs binary search, resulting in position of the first element with projected value closest to Value. | Common/PagedArray.h |
TraceServices::PagedArrayAlgo::BinarySearchClosestBy(const TPagedArray< ItemType, PageType > &, const ValueType &, ProjectionType)
| Name | TraceServices::PagedArrayAlgo::BinarySearchClosestBy |
| Type | function |
| Header File | /Engine/Source/Developer/TraceServices/Public/Common/PagedArray.h |
| Include Path | #include "Common/PagedArray.h" |
namespace TraceServices
{
namespace PagedArrayAlgo
{
template<typename ItemType, typename PageType, typename ValueType, typename ProjectionType>
decltype(GetNum(PagedArray)) TraceServices::PagedArrayAlgo::BinarySearchClosestBy
(
const TPagedArray < ItemType, PageType > & PagedArray,
const ValueType & Value,
ProjectionType Projection
)
}
}
TraceServices::PagedArrayAlgo::BinarySearchClosestBy(const TPagedArray< ItemType, PageType > &, const ValueType &, ProjectionType, SortPredicateType)
Description
Performs binary search, resulting in position of the first element with projected value closest to Value.
| Name | TraceServices::PagedArrayAlgo::BinarySearchClosestBy |
| Type | function |
| Header File | /Engine/Source/Developer/TraceServices/Public/Common/PagedArray.h |
| Include Path | #include "Common/PagedArray.h" |
namespace TraceServices
{
namespace PagedArrayAlgo
{
template<typename ItemType, typename PageType, typename ValueType, typename ProjectionType, typename SortPredicateType>
decltype(GetNum(PagedArray)) TraceServices::PagedArrayAlgo::BinarySearchClosestBy
(
const TPagedArray < ItemType, PageType > & PagedArray,
const ValueType & Value,
ProjectionType Projection,
SortPredicateType SortPredicate
)
}
}
The position of the first element with projected value closest to Value; == 0 if Num == 0, otherwise is a value in range [0 .. Num-1].
Parameters
| Name | Remarks |
|---|---|
| PagedArray | The paged array to search through; must be already sorted by SortPredicate. |
| Value | The value to look for |
| Projection | The functor or data member pointer; called via Invoke to compare to Value. |
| SortPredicate | The predicate for sort comparison; defaults to <. |