#include <C4ValueMap.h>
Public Member Functions | |
C4ValueMapNames () | |
C4ValueMapNames (const C4ValueMapNames &NamesToCopy) | |
C4ValueMapNames & | operator= (const C4ValueMapNames &NamesToCopy) |
virtual | ~C4ValueMapNames () |
void | SetNameArray (const char **pnNames, int32_t nSize) |
int32_t | AddName (const char *pnName) |
int32_t | GetItemNr (const char *strName) const |
const char * | GetItemUnsafe (int32_t idx) const |
void | Reset () |
Public Attributes | |
char ** | pNames {nullptr} |
int32_t | iSize {0} |
Friends | |
class | C4ValueMapData |
Definition at line 93 of file C4ValueMap.h.
|
default |
C4ValueMapNames::C4ValueMapNames | ( | const C4ValueMapNames & | NamesToCopy | ) |
Definition at line 325 of file C4ValueMap.cpp.
|
virtual |
Definition at line 336 of file C4ValueMap.cpp.
References Reset().
int32_t C4ValueMapNames::AddName | ( | const char * | pnName | ) |
Definition at line 429 of file C4ValueMap.cpp.
References GetItemNr(), iSize, and pNames.
Referenced by C4AulScriptFunc::AddPar(), C4AulScriptEngine::RegisterGlobalConstant(), and C4AulCompiler::PreparseAstVisitor::visit().
int32_t C4ValueMapNames::GetItemNr | ( | const char * | strName | ) | const |
Definition at line 459 of file C4ValueMap.cpp.
References iSize, pNames, and SEqual().
Referenced by AddName(), C4AulScriptEngine::GetGlobalConstant(), C4ValueMapData::GetItem(), and C4AulCompiler::PreparseAstVisitor::visit().
|
inline |
C4ValueMapNames & C4ValueMapNames::operator= | ( | const C4ValueMapNames & | NamesToCopy | ) |
void C4ValueMapNames::Reset | ( | ) |
Definition at line 341 of file C4ValueMap.cpp.
Referenced by C4AulScriptEngine::Clear(), and ~C4ValueMapNames().
void C4ValueMapNames::SetNameArray | ( | const char ** | pnNames, |
int32_t | nSize | ||
) |
Definition at line 423 of file C4ValueMap.cpp.
Referenced by C4ValueMapData::CompileFunc().
|
friend |
Definition at line 95 of file C4ValueMap.h.
int32_t C4ValueMapNames::iSize {0} |
Definition at line 109 of file C4ValueMap.h.
Referenced by AddName(), C4AulScriptFunc::AddPar(), C4ValueMapData::C4ValueMapData(), C4ValueMapNames(), C4ValueMapData::CompileFunc(), C4ValueMapData::Denumerate(), C4ValueMapData::GetAnzItems(), C4ValueMapData::GetItem(), GetItemNr(), C4ValueMapData::operator=(), operator=(), C4ValueMapData::operator==(), Reset(), and C4ValueMapData::SetNameList().
char** C4ValueMapNames::pNames {nullptr} |
Definition at line 106 of file C4ValueMap.h.
Referenced by AddName(), C4ValueMapNames(), C4ValueMapData::CompileFunc(), GetItemNr(), GetItemUnsafe(), operator=(), Reset(), and C4ValueMapData::SetNameList().