#include <C4ValueMap.h>
Public Member Functions | |
C4ValueMapData () | |
C4ValueMapData (const C4ValueMapData &DataToCopy) | |
virtual | ~C4ValueMapData () |
C4ValueMapData & | operator= (const C4ValueMapData &DataToCopy) |
bool | operator== (const C4ValueMapData &Data) const |
C4Value * | GetItem (const char *strName) |
C4Value * | GetItem (int32_t iNr) |
void | SetNameList (C4ValueMapNames *pnNames) |
C4ValueMapNames * | CreateTempNameList () |
void | Reset () |
void | ResetContent () |
int32_t | GetAnzItems () |
C4Value & | operator[] (int32_t iNr) |
C4Value & | operator[] (const char *strName) |
void | Denumerate (C4ValueNumbers *) |
void | CompileFunc (StdCompiler *pComp, C4ValueNumbers *) |
Public Attributes | |
C4Value * | pData {nullptr} |
C4ValueMapNames * | pNames {nullptr} |
bool | bTempNameList {false} |
Friends | |
class | C4ValueMapNames |
Definition at line 27 of file C4ValueMap.h.
|
default |
C4ValueMapData::C4ValueMapData | ( | const C4ValueMapData & | DataToCopy | ) |
Definition at line 26 of file C4ValueMap.cpp.
References C4ValueMapNames::iSize, pData, pNames, and SetNameList().
|
virtual |
Definition at line 51 of file C4ValueMap.cpp.
References Reset().
void C4ValueMapData::CompileFunc | ( | StdCompiler * | pComp, |
C4ValueNumbers * | numbers | ||
) |
Definition at line 261 of file C4ValueMap.cpp.
References CreateTempNameList(), StdStrBuf::GrabPointer(), StdCompiler::isDeserializer(), C4ValueMapNames::iSize, mkDefaultAdapt(), mkParAdapt(), pData, pNames, C4ValueMapNames::pNames, StdCompiler::RCT_Idtf, StdStrBuf::Ref(), Reset(), StdCompiler::SEP_SEP2, StdCompiler::SEP_SET, StdCompiler::Separator(), C4ValueMapNames::SetNameArray(), SetNameList(), and StdCompiler::Value().
C4ValueMapNames * C4ValueMapData::CreateTempNameList | ( | ) |
Definition at line 146 of file C4ValueMap.cpp.
References bTempNameList, C4ValueMapNames, and pNames.
Referenced by CompileFunc().
void C4ValueMapData::Denumerate | ( | C4ValueNumbers * | numbers | ) |
Definition at line 254 of file C4ValueMap.cpp.
References C4ValueMapNames::iSize, pData, and pNames.
Referenced by C4ObjectInfoCore::CompileFunc(), C4PlayerInfoCore::CompileFunc(), and C4AulScriptEngine::Denumerate().
int32_t C4ValueMapData::GetAnzItems | ( | ) |
Definition at line 248 of file C4ValueMap.cpp.
References C4ValueMapNames::iSize, and pNames.
C4Value * C4ValueMapData::GetItem | ( | const char * | strName | ) |
Definition at line 235 of file C4ValueMap.cpp.
References C4ValueMapNames::GetItemNr(), pData, and pNames.
Referenced by operator[]().
C4Value * C4ValueMapData::GetItem | ( | int32_t | iNr | ) |
Definition at line 222 of file C4ValueMap.cpp.
References iSize, C4ValueMapNames::iSize, pData, and pNames.
C4ValueMapData & C4ValueMapData::operator= | ( | const C4ValueMapData & | DataToCopy | ) |
Definition at line 33 of file C4ValueMap.cpp.
References C4ValueMapNames::iSize, pData, pNames, and SetNameList().
bool C4ValueMapData::operator== | ( | const C4ValueMapData & | Data | ) | const |
|
inline |
Definition at line 68 of file C4ValueMap.h.
References GetItem().
|
inline |
Definition at line 67 of file C4ValueMap.h.
References GetItem().
void C4ValueMapData::Reset | ( | ) |
Definition at line 56 of file C4ValueMap.cpp.
Referenced by C4AulScriptEngine::Clear(), CompileFunc(), C4ObjectInfoCore::Default(), C4PlayerInfoCore::Default(), and ~C4ValueMapData().
void C4ValueMapData::ResetContent | ( | ) |
void C4ValueMapData::SetNameList | ( | C4ValueMapNames * | pnNames | ) |
Definition at line 78 of file C4ValueMap.cpp.
References bTempNameList, C4ValueMapNames::iSize, pNames, and C4ValueMapNames::pNames.
Referenced by C4ValueMapData(), C4AulScriptEngine::Clear(), C4AulScriptEngine::CompileFunc(), CompileFunc(), C4AulScriptEngine::Link(), and operator=().
|
friend |
Definition at line 29 of file C4ValueMap.h.
Referenced by CreateTempNameList().
bool C4ValueMapData::bTempNameList {false} |
Definition at line 48 of file C4ValueMap.h.
Referenced by CreateTempNameList(), and SetNameList().
C4Value* C4ValueMapData::pData {nullptr} |
Definition at line 41 of file C4ValueMap.h.
Referenced by C4ValueMapData(), CompileFunc(), Denumerate(), GetItem(), operator=(), operator==(), Reset(), and ResetContent().
C4ValueMapNames* C4ValueMapData::pNames {nullptr} |
Definition at line 44 of file C4ValueMap.h.
Referenced by C4ValueMapData(), CompileFunc(), CreateTempNameList(), Denumerate(), GetAnzItems(), GetItem(), operator=(), operator==(), Reset(), ResetContent(), and SetNameList().