engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | 所有成员列表
FGCReferenceTokenStream结构体 参考

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.

成员函数说明

◆ AccessReferenceInfo()

FORCEINLINE FGCReferenceInfo FGCReferenceTokenStream::AccessReferenceInfo ( uint32  CurrentIndex) const
inline

Access reference info at passed in index.

Used as helper to eliminate LHS.

返回
Reference info at passed in index

◆ EmitCount()

int32 FGCReferenceTokenStream::EmitCount ( uint32  Count)

Emit count

参数
Countcount to emit

◆ EmitPointer()

int32 FGCReferenceTokenStream::EmitPointer ( void const *  Ptr)

Emit a pointer

参数
Ptrpointer to emit

◆ EmitReferenceInfo()

int32 FGCReferenceTokenStream::EmitReferenceInfo ( FGCReferenceInfo  ReferenceInfo,
const FName &  DebugName 
)

Emit reference info.

参数
ReferenceInforeference info to emit.
返回
Index of the reference info in the token stream.

◆ EmitReturn()

uint32 FGCReferenceTokenStream::EmitReturn ( )

Increase return count on last token.

返回
index of next token

◆ EmitSkipIndexPlaceholder()

uint32 FGCReferenceTokenStream::EmitSkipIndexPlaceholder ( )

Emit placeholder for aray skip index, updated in UpdateSkipIndexPlaceholder

返回
the index of the skip index, used later in UpdateSkipIndexPlaceholder

◆ EmitStride()

int32 FGCReferenceTokenStream::EmitStride ( uint32  Stride)

Emit stride

参数
Stridestride to emit

◆ EndOfStream()

FORCEINLINE bool FGCReferenceTokenStream::EndOfStream ( uint32  CurrentIndex)
inline

Queries the stream for an end of stream condition

返回
true if the end of the stream has been reached, false otherwise

◆ GetSkipReturnCount()

FORCEINLINE uint32 FGCReferenceTokenStream::GetSkipReturnCount ( FGCSkipInfo  SkipInfo)
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.

参数
SkipIndexindex of first token after array

◆ PrependStream()

void FGCReferenceTokenStream::PrependStream ( const FGCReferenceTokenStream &  Other)

Prepends passed in stream to existing one.

参数
Otherstream to concatenate

◆ ReadCount()

FORCEINLINE uint32 FGCReferenceTokenStream::ReadCount ( uint32 &  CurrentIndex)
inline

Reads count and advances stream.

返回
read in count

◆ ReadPointer()

FORCEINLINE void * FGCReferenceTokenStream::ReadPointer ( uint32 &  CurrentIndex)
inline

Reads pointer and advance stream

返回
read in pointer

◆ ReadReferenceInfo()

FORCEINLINE FGCReferenceInfo FGCReferenceTokenStream::ReadReferenceInfo ( uint32 &  CurrentIndex)
inline

Reads in reference info and advances stream.

返回
read in reference info

◆ ReadSkipInfo()

FORCEINLINE FGCSkipInfo FGCReferenceTokenStream::ReadSkipInfo ( uint32 &  CurrentIndex)
inline

Read in skip index and advances stream.

返回
read in skip index

◆ ReadStride()

FORCEINLINE uint32 FGCReferenceTokenStream::ReadStride ( uint32 &  CurrentIndex)
inline

Reads stride and advances stream.

返回
read in stride

◆ Size()

int32 FGCReferenceTokenStream::Size ( ) const
inline

Returns the size ofthe reference token stream.

返回
Size of the stream.

◆ UpdateSkipIndexPlaceholder()

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.

参数
SkipIndexIndexindex where skip index is stored at.
SkipIndexindex to store at skip index index

该结构体的文档由以下文件生成: