#include <C4ValueArray.h>
Public Member Functions | |
C4ValueArray () | |
C4ValueArray (int32_t inSize) | |
C4ValueArray (const C4ValueArray &) | |
~C4ValueArray () override | |
C4ValueArray & | operator= (const C4ValueArray &) |
int32_t | GetSize () const |
const C4Value & | GetItem (int32_t iElem) const |
const C4Value & | _GetItem (int32_t iElem) const |
C4Value | operator[] (int32_t iElem) const |
C4Value & | operator[] (int32_t iElem) |
void | Reset () |
void | SetItem (int32_t iElemNr, const C4Value &Value) |
void | SetSize (int32_t inSize) |
void | Freeze () |
void | Thaw () |
bool | IsFrozen () const |
void | Denumerate (C4ValueNumbers *) |
bool | operator== (const C4ValueArray &) const |
void | CompileFunc (class StdCompiler *pComp, C4ValueNumbers *) |
C4ValueArray * | GetSlice (int32_t startIndex, int32_t endIndex) |
void | SetSlice (int32_t startIndex, int32_t endIndex, const C4Value &Val) |
void | Sort (class C4SortObject &rSort) |
void | SortStrings () |
void | Sort (bool descending=false) |
bool | SortByProperty (C4String *prop_name, bool descending=false) |
bool | SortByArrayElement (int32_t array_idx, bool descending=false) |
void | IncRef () |
void | DecRef () |
Static Public Attributes | |
static const int | MaxSize = 1000000 |
Protected Attributes | |
unsigned int | RefCnt {0} |
Definition at line 23 of file C4ValueArray.h.
|
default |
C4ValueArray::C4ValueArray | ( | int32_t | inSize | ) |
Definition at line 24 of file C4ValueArray.cpp.
References SetSize().
C4ValueArray::C4ValueArray | ( | const C4ValueArray & | ValueArray2 | ) |
Definition at line 29 of file C4ValueArray.cpp.
References GetItem(), GetSize(), and SetSize().
|
override |
Definition at line 36 of file C4ValueArray.cpp.
|
inline |
Definition at line 48 of file C4ValueArray.h.
Referenced by C4FindObjectInArray::Check().
void C4ValueArray::CompileFunc | ( | class StdCompiler * | pComp, |
C4ValueNumbers * | numbers | ||
) |
Definition at line 267 of file C4ValueArray.cpp.
References StdCompiler::isDeserializer(), mkArrayAdaptMap(), mkParAdaptMaker(), Reset(), StdCompiler::SEP_SEP2, StdCompiler::Separator(), SetSize(), and StdCompiler::Value().
|
inlineinherited |
Definition at line 28 of file C4StringTable.h.
References C4RefCnt::RefCnt.
Referenced by C4Command::Clear(), C4Command::CompileFunc(), C4Property::CompileFunc(), C4Def::GetActionByName(), C4Property::operator=(), C4Object::SetActionByName(), C4AulScriptFunc::SetOverloaded(), C4ScriptHost::UnlinkOwnedFunctions(), C4AulScriptFunc::~C4AulScriptFunc(), C4Property::~C4Property(), C4ScriptGuiWindow::~C4ScriptGuiWindow(), and C4ScriptGuiWindowAction::~C4ScriptGuiWindowAction().
void C4ValueArray::Denumerate | ( | C4ValueNumbers * | numbers | ) |
Definition at line 261 of file C4ValueArray.cpp.
Referenced by C4Value::Denumerate().
|
inline |
Definition at line 61 of file C4ValueArray.h.
|
inline |
Definition at line 38 of file C4ValueArray.h.
References C4VNull.
Referenced by C4MapScriptAlgoModifier::C4MapScriptAlgoModifier(), C4MapScriptAlgoPolygon::C4MapScriptAlgoPolygon(), C4ValueArray(), C4EditCursor::DoContextMenu(), C4Object::DrawLine(), FnParRect(), C4Object::GetParallaxity(), C4MapScriptAlgo::GetXYProps(), C4ScriptGuiWindowAction::Init(), C4MapScriptMatTexMask::Init(), C4Object::IsVisible(), C4ValueArraySortArrayElementcomp::operator()(), operator=(), operator==(), operator[](), C4Landscape::P::PostFreeShape(), C4SortObjectByValue::PrepareCache(), C4Value::ToJSON(), C4FoWLight::Update(), and C4AulCompiler::ConstexprEvaluator::visit().
|
inline |
Definition at line 36 of file C4ValueArray.h.
Referenced by C4MapScriptAlgoModifier::C4MapScriptAlgoModifier(), C4MapScriptAlgoPolygon::C4MapScriptAlgoPolygon(), C4ValueArray(), C4ValueToMatrix(), C4Game::CastObjects(), C4FindObjectInArray::Check(), C4FindObject::CreateByValue(), C4SortObject::CreateByValue(), CreateValueProviderFromArray(), C4EditCursor::DoContextMenu(), C4FindObject::FindMany(), FnParRect(), C4MapScriptAlgo::GetXYProps(), C4ScriptGuiWindowAction::Init(), C4MapScriptMatTexMask::Init(), C4FindObjectInArray::IsImpossible(), C4Object::IsVisible(), operator=(), operator==(), C4Landscape::P::PostFreeShape(), C4SortObjectByValue::PrepareCache(), C4ParticleValueProvider::Set(), C4ParticleProperties::SetCollisionFunc(), SetSlice(), SortByArrayElement(), C4ScriptGuiWindowAction::ToC4Value(), and C4Value::ToJSON().
C4ValueArray * C4ValueArray::GetSlice | ( | int32_t | startIndex, |
int32_t | endIndex | ||
) |
Definition at line 285 of file C4ValueArray.cpp.
References C4ValueArray().
Referenced by C4AulCompiler::ConstexprEvaluator::visit().
|
inlineinherited |
Definition at line 27 of file C4StringTable.h.
References C4RefCnt::RefCnt.
Referenced by C4Property::C4Property(), C4Command::CompileFunc(), C4Property::CompileFunc(), C4ScriptGuiWindow::CreateFromPropList(), C4Def::GetActionByName(), C4ScriptGuiWindowAction::Init(), C4Property::operator=(), C4ScriptGuiWindowProperty::Set(), C4Command::Set(), C4Object::SetActionByName(), and C4AulScriptFunc::SetOverloaded().
|
inline |
Definition at line 63 of file C4ValueArray.h.
C4ValueArray & C4ValueArray::operator= | ( | const C4ValueArray & | ValueArray2 | ) |
bool C4ValueArray::operator== | ( | const C4ValueArray & | IntList2 | ) | const |
C4Value & C4ValueArray::operator[] | ( | int32_t | iElem | ) |
Definition at line 186 of file C4ValueArray.cpp.
References MaxSize, and SetSize().
|
inline |
Definition at line 53 of file C4ValueArray.h.
References GetItem().
void C4ValueArray::Reset | ( | ) |
Definition at line 255 of file C4ValueArray.cpp.
Referenced by CompileFunc().
void C4ValueArray::SetItem | ( | int32_t | iElemNr, |
const C4Value & | Value | ||
) |
Definition at line 198 of file C4ValueArray.cpp.
References MaxSize, and SetSize().
Referenced by C4Object::AddObjectAndContentsToArray(), C4MapScriptAlgoModifier::C4MapScriptAlgoModifier(), and C4ScriptGuiWindowAction::ToC4Value().
void C4ValueArray::SetSize | ( | int32_t | inSize | ) |
Definition at line 214 of file C4ValueArray.cpp.
References iSize, and MaxSize.
Referenced by C4ValueArray(), C4Game::CastObjects(), CompileFunc(), C4FindObject::FindMany(), operator=(), operator[](), SetItem(), SetSlice(), and C4ScriptGuiWindowAction::ToC4Value().
void C4ValueArray::SetSlice | ( | int32_t | startIndex, |
int32_t | endIndex, | ||
const C4Value & | Val | ||
) |
Definition at line 303 of file C4ValueArray.cpp.
References C4Value::_getArray(), C4V_Array, GetSize(), C4Value::GetType(), iSize, MaxSize, and SetSize().
void C4ValueArray::Sort | ( | bool | descending = false | ) |
Definition at line 122 of file C4ValueArray.cpp.
void C4ValueArray::Sort | ( | class C4SortObject & | rSort | ) |
Definition at line 71 of file C4ValueArray.cpp.
References iSize, and C4SortObject::PrepareCache().
Referenced by C4SortObject::SortObjects().
bool C4ValueArray::SortByArrayElement | ( | int32_t | array_idx, |
bool | descending = false |
||
) |
Definition at line 167 of file C4ValueArray.cpp.
References GetSize(), and iSize.
bool C4ValueArray::SortByProperty | ( | C4String * | prop_name, |
bool | descending = false |
||
) |
void C4ValueArray::SortStrings | ( | ) |
Definition at line 105 of file C4ValueArray.cpp.
|
inline |
Definition at line 62 of file C4ValueArray.h.
|
static |
Definition at line 26 of file C4ValueArray.h.
Referenced by operator[](), SetItem(), SetSize(), and SetSlice().
|
protectedinherited |
Definition at line 31 of file C4StringTable.h.
Referenced by C4RefCnt::DecRef(), and C4RefCnt::IncRef().