UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IdxRange.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7namespace uLang
8{
9
16{
17public:
18
19 // Public Data Members
20
23
24 // Construction
25
27 ULANG_FORCEINLINE SIdxRange(ENoInit) {} // Do nothing - use with care!
32
33 // Accessors
34
36 ULANG_FORCEINLINE bool IsEmpty() const { return _Begin == _End; }
37 ULANG_FORCEINLINE bool IsOrdered() const { return _Begin <= _End; }
40
41 // Comparisons
42
43 ULANG_FORCEINLINE bool operator==(const SIdxRange & Other) const { return ((_Begin == Other._Begin) && (_End == Other._End)); }
44 ULANG_FORCEINLINE bool operator!=(const SIdxRange & Other) const { return ((_Begin != Other._Begin) || (_End != Other._End)); }
45
46}; // SIdxRange
47
48}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ULANG_FORCEINLINE
Definition Common.h:188
Definition VVMEngineEnvironment.h:23
ENoInit
Enum used in constructors to indicate they should not initialize anything.
Definition Common.h:375
Definition IdxRange.h:16
ULANG_FORCEINLINE SIdxRange(ENoInit)
Definition IdxRange.h:27
uint32_t _End
End of index range.
Definition IdxRange.h:22
ULANG_FORCEINLINE uint32_t GetLength() const
Definition IdxRange.h:35
ULANG_FORCEINLINE void Set(uint32_t Begin, uint32_t End)
Definition IdxRange.h:38
uint32_t _Begin
Beginning of index range.
Definition IdxRange.h:21
ULANG_FORCEINLINE SIdxRange(uint32_t Begin, uint32_t End)
Definition IdxRange.h:29
ULANG_FORCEINLINE bool operator!=(const SIdxRange &Other) const
Definition IdxRange.h:44
ULANG_FORCEINLINE bool operator==(const SIdxRange &Other) const
Definition IdxRange.h:43
static ULANG_FORCEINLINE SIdxRange MakeSpan(uint32_t Begin, uint32_t Length)
Definition IdxRange.h:30
ULANG_FORCEINLINE void AdvanceToEnd()
Definition IdxRange.h:39
ULANG_FORCEINLINE SIdxRange()
Definition IdxRange.h:26
ULANG_FORCEINLINE void Reset()
Definition IdxRange.h:31
ULANG_FORCEINLINE bool IsEmpty() const
Definition IdxRange.h:36
ULANG_FORCEINLINE bool IsOrdered() const
Definition IdxRange.h:37
ULANG_FORCEINLINE SIdxRange(uint32_t Length)
Definition IdxRange.h:28