Reference token stream class. 更多...
#include <GarbageCollection.h>
Public 类型 | |
| enum | EGCArrayInfoPlaceholder |
| Initialization value to ensure that we have the right skip index index | |
Public 成员函数 | |
| FORCEINLINE FGCReferenceInfo | AccessReferenceInfo (uint32 CurrentIndex) const |
| Access reference info at passed in index. 更多... | |
| int32 | EmitCount (uint32 Count) |
| Emit count 更多... | |
| int32 | EmitPointer (void const *Ptr) |
| Emit a pointer 更多... | |
| int32 | EmitReferenceInfo (FGCReferenceInfo ReferenceInfo, const FName &DebugName) |
| Emit reference info. 更多... | |
| uint32 | EmitReturn () |
| Increase return count on last token. 更多... | |
| uint32 | EmitSkipIndexPlaceholder () |
| Emit placeholder for aray skip index, updated in UpdateSkipIndexPlaceholder 更多... | |
| int32 | EmitStride (uint32 Stride) |
| Emit stride 更多... | |
| void | Empty () |
| Empties the token stream entirely | |
| FORCEINLINE bool | EndOfStream (uint32 CurrentIndex) |
| Queries the stream for an end of stream condition 更多... | |
| FGCReferenceTokenStream () | |
| Constructor | |
| void | Fixup (void(*AddReferencedObjectsPtr)(UObject *, class FReferenceCollector &), bool bKeepOuterToken, bool bKeepClassToken) |
| Helper function to perform post parent token stream prepend fixup | |
| FORCEINLINE uint32 | GetSkipReturnCount (FGCSkipInfo SkipInfo) |
| Read return count stored at the index before the skip index. 更多... | |
| bool | IsEmpty () const |
| return true if this is empty | |
| void | PrependStream (const FGCReferenceTokenStream &Other) |
| Prepends passed in stream to existing one. 更多... | |
| FORCEINLINE uint32 | ReadCount (uint32 &CurrentIndex) |
| Reads count and advances stream. 更多... | |
| FORCEINLINE void * | ReadPointer (uint32 &CurrentIndex) |
| Reads pointer and advance stream 更多... | |
| FORCEINLINE FGCReferenceInfo | ReadReferenceInfo (uint32 &CurrentIndex) |
| Reads in reference info and advances stream. 更多... | |
| FORCEINLINE FGCSkipInfo | ReadSkipInfo (uint32 &CurrentIndex) |
| Read in skip index and advances stream. 更多... | |
| FORCEINLINE uint32 | ReadStride (uint32 &CurrentIndex) |
| Reads stride and advances stream. 更多... | |
| void | Shrink () |
| Shrinks the token stream, removing array slack. | |
| int32 | Size () const |
| Returns the size ofthe reference token stream. 更多... | |
| void | UpdateSkipIndexPlaceholder (uint32 SkipIndexIndex, uint32 SkipIndex) |
| Updates skip index place holder stored and passed in skip index index with passed in skip index. 更多... | |
Reference token stream class.
Used for creating and parsing stream of object references.
|
inline |
Access reference info at passed in index.
Used as helper to eliminate LHS.
| int32 FGCReferenceTokenStream::EmitCount | ( | uint32 | Count | ) |
Emit count
| Count | count to emit |
| int32 FGCReferenceTokenStream::EmitPointer | ( | void const * | Ptr | ) |
Emit a pointer
| Ptr | pointer to emit |
| int32 FGCReferenceTokenStream::EmitReferenceInfo | ( | FGCReferenceInfo | ReferenceInfo, |
| const FName & | DebugName | ||
| ) |
Emit reference info.
| ReferenceInfo | reference info to emit. |
| uint32 FGCReferenceTokenStream::EmitReturn | ( | ) |
Increase return count on last token.
| uint32 FGCReferenceTokenStream::EmitSkipIndexPlaceholder | ( | ) |
Emit placeholder for aray skip index, updated in UpdateSkipIndexPlaceholder
| int32 FGCReferenceTokenStream::EmitStride | ( | uint32 | Stride | ) |
Emit stride
| Stride | stride to emit |
|
inline |
Queries the stream for an end of stream condition
|
inline |
Read return count stored at the index before the skip index.
This is required to correctly return the right amount of levels when skipping over an empty array.
| SkipIndex | index of first token after array |
| void FGCReferenceTokenStream::PrependStream | ( | const FGCReferenceTokenStream & | Other | ) |
Prepends passed in stream to existing one.
| Other | stream to concatenate |
|
inline |
Reads count and advances stream.
|
inline |
Reads pointer and advance stream
|
inline |
Reads in reference info and advances stream.
|
inline |
Read in skip index and advances stream.
|
inline |
Reads stride and advances stream.
|
inline |
Returns the size ofthe reference token stream.
| void FGCReferenceTokenStream::UpdateSkipIndexPlaceholder | ( | uint32 | SkipIndexIndex, |
| uint32 | SkipIndex | ||
| ) |
Updates skip index place holder stored and passed in skip index index with passed in skip index.
The skip index is used to skip over tokens in the case of an emtpy dynamic array.
| SkipIndexIndex | index where skip index is stored at. |
| SkipIndex | index to store at skip index index |