Navigation
API > API/Runtime > API/Runtime/Core
TStridedView is similar to TArrayView, but allows flexible byte stride between elements. Stride must be positive and a multiple of the element alignment. Stride can be zero to duplicate the same element over the whole range.
Example usage:
struct FMyStruct { uint32 SomeData; FVector Position; };
FVector ComputeMean(TStridedView
FVector ComputeMeanPosition(TArrayView
See StridedViewTest.cpp for more examples. Pointer with extent and a stride, similar to TArrayView. Designed to allow functions to take pointers to arbitrarily structured data.
| Name | TStridedView |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/StridedView.h |
| Include Path | #include "Containers/StridedView.h" |
Syntax
template<typename InElementType, typename InSizeType>
class TStridedView
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TStridedView () |
Containers/StridedView.h | ||
TStridedView
(
const TStridedView< OtherElementType, SizeType >& Other |
Containers/StridedView.h | ||
TStridedView
(
SizeType InBytesBetweenElements, |
Containers/StridedView.h |
Structs
| Name | Remarks |
|---|---|
| FIterator |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | InElementType | Containers/StridedView.h | |
| SizeType | InSizeType | Containers/StridedView.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BytesBetweenElements | SizeType | Containers/StridedView.h | ||
| FirstElementPtr | ElementType * | Containers/StridedView.h | ||
| NumElements | SizeType | Containers/StridedView.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIterator begin() |
Ranged iteration support. DO NOT USE DIRECTLY. | Containers/StridedView.h | |
FIterator end() |
Containers/StridedView.h | ||
SizeType GetStride() |
Containers/StridedView.h | ||
ElementType & GetUnsafe
(
SizeType Index |
Containers/StridedView.h | ||
bool IsEmpty() |
Containers/StridedView.h | ||
bool IsValidIndex
(
SizeType Index |
Containers/StridedView.h | ||
SizeType Num() |
Containers/StridedView.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ElementType & operator[]
(
SizeType Index |
Containers/StridedView.h |