Back to the Vavoom Forum Archives


Forum

VC arrays

Fri, 14 Sep 2007 11:31:06

Crimson Wizard

What are available members of array<> class? (or where I may read about this?) At this time I found: operator [], Num and Remove(index).
Fri, 14 Sep 2007 15:45:08

spiderman

If I had to guess, I'd say: void Clear() // clear array data int Num() // return total number of elements in array int NumAllocated() // return number of "in-use" elements in array T* Ptr() // return pointer to the array's data void Resize(int NewSize) // resize the array void SetNum(int NewNum, bool bResize = true) // set number of elements in array void Condense() // condense array int Append(const T& Item) // append a new item to array, and return its index T& Alloc() // expand array and return address of new array item bool RemoveIndex(int Index) // remove element from array by index void Remove(const T& Item) // remove element from array by item Looks like the operators [] and = are valid. ... have a look at array.h <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
Fri, 14 Sep 2007 15:58:05

Crimson Wizard

It's internal Vavoom engine's class Array. Is progs class array actually the same?
Fri, 14 Sep 2007 16:06:04

spiderman

Good question <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> let me know when you find out =)
Fri, 14 Sep 2007 17:48:32

Firebrand

AFAIK, it's the same class as the one derived from the engine <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.
Fri, 14 Sep 2007 17:51:43

Crimson Wizard

Err.. derived from the engine? <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> ...should we call it motor-array then... heh
Sat, 15 Sep 2007 03:24:21

Firebrand

I meant motorized arrays, hahaha! <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
Sat, 15 Sep 2007 06:33:49

Janis Legzdinsh

In progs you have: [list:2oq5ugs0] operator [] Num Insert(Position [, Count]) Remove(Positon [, Count]) [/list:u:2oq5ugs0] Default count is 1.

Back to the Vavoom Forum Archives