![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CompactBinary.h>
Inheritance diagram for TCbFieldIterator< FieldType >:Protected Member Functions | |
| constexpr | TCbFieldIterator (FieldType InField) |
| constexpr | TCbFieldIterator (FieldType &&InField, const void *InFieldsEnd) |
Static Protected Member Functions | |
| template<typename OtherFieldType > | |
| static const void * | GetFieldsEnd (const TCbFieldIterator< OtherFieldType > &It) |
Friends | |
| template<typename OtherType > | |
| class | TCbFieldIterator |
Iterator for FCbField[View] that can operate on any contiguous range of fields.
The iterator is the current field that the iterator points to and exposes the full interface of FCbField[View]. An iterator that is at the end is equivalent to a field with no value.
The iterator represents a range of fields from the current field to the last field.
|
constexprdefault |
Construct an empty field range.
|
inlineexplicitconstexprprotected |
Construct a field range that contains exactly one field.
|
inlineconstexprprotected |
Construct a field range from the first field and a pointer to the end of the last field.
| InField | The first field, or the default field if there are no fields. |
| InFieldsEnd | A pointer to the end of the value of the last field, or null. |
| void TCbFieldIterator< FieldType >::AppendRangeHash | ( | FIoHashBuilder & | Builder | ) | const |
Append the hash of every field in the range.
|
inlineconstexpr |
DO NOT USE DIRECTLY. These functions enable range-based for loop support.
| void TCbFieldIterator< FieldType >::CopyRangeTo | ( | FArchive & | Ar | ) | const |
Copy the field range into an archive, as if calling CopyTo on every field.
| void TCbFieldIterator< FieldType >::CopyRangeTo | ( | FMutableMemoryView | Buffer | ) | const |
Copy the field range into a buffer of exactly GetRangeSize() bytes.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticprotected |
Returns the end of the last field, or null for an iterator at the end.
| FIoHash TCbFieldIterator< FieldType >::GetRangeHash | ( | ) | const |
Calculate the hash of every field in the range.
| uint64 TCbFieldIterator< FieldType >::GetRangeSize | ( | ) | const |
Returns the size of the fields in the range in bytes.
| void TCbFieldIterator< FieldType >::IterateRangeAttachments | ( | FCbFieldVisitor | Visitor | ) | const |
Invoke the visitor for every attachment in the field range.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
| TCbFieldIterator< FieldType > & TCbFieldIterator< FieldType >::operator++ | ( | ) |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
Reset this to an empty field range.
|
inline |
Try to get a view of every field in the range as they would be serialized.
A view is available if each field contains its type. Access the equivalent for other field ranges through FCbFieldIterator::CloneRange or CopyRangeTo.