<StrArray> Data Interface

Provides script language access to C++ objects of this type.

Class HierarchyNo registered superclass.

Function Members

Function members are as follows:

Return Type Function Name Documentation
<StrArray>StrArrayThis constructor.
int32AddAdds a string to the array. Note that this does not add a <Str> object. See also AddObj.
int32AddAscendingIfUniqueThis option is undocumented at present.
int32AddBlankAdds a blank entry to the array.
int32AddDescendingIfUniqueThis option is undocumented at present.
int32AddIfUniqueAdds a string to the array if it is not already present. This is test by value, not by pointer. For example: adds 'myString' if it is not present.
int32AddObjAdds a <Str> object to the array.
<Str>AsStrFills a <Str> object with the contents of all the <Str> objects in the array.
int32BindIteratorsBinds iterators to this object.
int32ClearClears this array and deallocates any memory. Does not destroy the array object.
int32CopyCopies the source array into this array. The contents of this array are replaced.
int32DelDeletes the array element at the specified index. This causes the array to undergo the allocation/copy cycle.
int32ElementSizeReturns the size in bytes of <Str>
int32FillFills the the array with a string value. Note that this does not use a <Str> object.
int32FindReturns the index of the specified value, or -1 if it is not in the array.
int32FindAnyReturns true if any of the values in another <StrArray> are also in this array.
int32FindObjReturns the index of the specified value, or -1 if it is not in the array.
<StrArrayIterator>FirstReturns a pointer to an iterator to the start of the array.
stringGetReturns the string value at the specified index.
int32GetCountReturns the count of the array.
stringGetFirstReturns the first value in the array.
stringGetLastReturns the last value in the array.
<Str>GetObjReturns a pointer to the <Str> object at the specified inde.
<StrArrayView>GetViewReturns a pointer to a <StrArrayView> object that has iterators to the start and end of the collection.
int32InReturns true if the specified value is in the array.
int32InsertInserts the specified value at the specified index. This causes an allocation/copy cycle.
int32InsertAscendingInsertion sorts values added to this array.
int32InsertDescendingInsertion sorts values added to this array.
int32IsEmptyReturns true if the array has a count of zero.
<StrArrayIterator>LastReturns a pointer to an iterator to the end of the array.
int32MoveMoves this array into the destinary array. This array is left empty, with a count of zero, but the array object itself is not destroyed.
int32PopPops the first item off the top of the stack.
int32PushPushes an item onto the stack ( at the end ).
int32RelocateRelocates a chunk of the array to a new index.
int32RemoveFirstRemoves the first item from the array.
int32RemoveLastRemoves the last item from the array.
int32SetSets the value at the specified inde
int32SetCountSets the count of the array.
int32SetObjSets the value at the specified index.
int32SizeInBytesReturns the size in bytes of the array, which is the total number of bytes currently being used by the array, and does not include any allocated reserve.

Object Members

Object members are as follows:

Type Name Accessor Name Documentation
Str[]Objects[ index ]Gets or sets the value of an element in the array at the specified index. The syntax is array.Objects[ n ], where n is a valid index into the array.
<StrArray>ValueReturns the value of this object's underlying array. For example: to assign the value of this object to another array using array_a.Value = array_b.Value.
int32CountSets or gets the array count.
int32ReserveGets or sets the reserve allocation. Note: this does not change the array count, it merely changes the size of the underlying buffer.