Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/StridedView.h |
| Include | #include "Containers/StridedView.h" |
Syntax
template<typename InElementType, typename InSizeType>
class TStridedView
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TStridedView () |
|||
TStridedView
(
const TStridedView< OtherElementType, SizeType >& Other |
|||
TStridedView
(
SizeType InBytesBetweenElements, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FIterator | begin () |
Ranged iteration support. DO NOT USE DIRECTLY. | |
| FIterator | end () |
||
| SizeType | GetStride () |
||
| ElementType & | |||
| bool | IsEmpty () |
||
| bool | IsValidIndex
(
SizeType Index |
||
| SizeType | Num () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| ElementType & | operator[]
(
SizeType Index |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FIterator |
Typedefs
| Name | Description |
|---|---|
| ElementType | |
| SizeType |