chenjunfu2-nbt-cpp v2.1.0
一个基于CPP20的NBT(Named Binary Tag)库
载入中...
搜索中...
未找到
NBT_Visitor类 参考

Public 类型

enum class  ResultControl : uint8_t { Continue , Break , Stop }
enum class  NestingControl : uint8_t { Enter , Skip , Break , Stop }

Public 成员函数

template<typename T>
requires (NBT_Type::IsNumericType_V<T>)
ResultControl VisitNumericResult (T tNumericResult)
template<typename T>
requires (NBT_Type::IsArrayType_V<T>)
ResultControl VisitArrayResult (const T &tArrayResult)
ResultControl VisitStringResult (const NBT_Type::String &strResult)
ResultControl VisitEndResult (void)
NestingControl VisitListBegin (NBT_TAG_RAW_TYPE tagElementType, NBT_Type::ListLength i32Length)
NestingControl VisitListNextElement (NBT_TAG_RAW_TYPE tagElementType, NBT_Type::ListLength i32Index)
ResultControl VisitListEnd (void)
NestingControl VisitCompoundBegin (void)
NestingControl VisitCompoundNextEntryType (NBT_TAG_RAW_TYPE tagEntryType)
NestingControl VisitCompoundNextEntry (NBT_TAG_RAW_TYPE tagEntryType, const NBT_Type::String &strKey)
ResultControl VisitCompoundEnd (void)
void VisitBegin (void)
void VisitEnd (void)

成员枚举类型说明

◆ NestingControl

enum class NBT_Visitor::NestingControl : uint8_t
strong
枚举值
Enter 

进入当前值(递归进入嵌套结构或展开值)

Skip 

跳过当前值(跳过递归进入嵌套结构或展开值)

Break 

跳过剩余值(离开当前结构层级回到父层级)

Stop 

停止处理(终止解析)

◆ ResultControl

enum class NBT_Visitor::ResultControl : uint8_t
strong
枚举值
Continue 

继续处理(继续迭代)

Break 

跳过剩余值(离开当前结构层级回到父层级)

Stop 

停止处理(终止解析)


该类的文档由以下文件生成: