This class represents an array of FSGraphicsObject objects.
◆ add:
Add an element at the tail. Potentially growing the array.
- Parameters
-
[in] | newElement | The input element.
|
- Returns
- YES means success, while NO means failure (such as memory error).
◆ dealloc
◆ find:
Find an element from specified position to last.
- Parameters
-
[in] | data | The input element.
|
- Returns
- An index of the found element. -1 means found none.
◆ find:iStart:
Find an element from specified position to last.
- Parameters
-
[in] | data | The input element.
|
[in] | iStart | Specifies the zero-based index of start element to find.
|
- Returns
- An index of the found element. -1 means found none.
◆ getAt:
This method retrieves an element specified by an index number.
- Parameters
-
[in] | nIndex | Specifies the zero-based index of the element.
|
- Returns
- An element.
◆ getCptr
◆ getSize
Get the number of elements in the array.
- Returns
- The number of elements in the array.
◆ getUpperBound
Get the upper bound in the array, actually the maximum valid index.
- Returns
- The upper bound.
◆ init
◆ initWithCptr:swigOwnCObject:
- (id) initWithCptr: |
|
(void *) |
cptr |
swigOwnCObject: |
|
(BOOL) |
ownCObject |
|
|
| |
◆ initWithOther:
◆ insertAt:newElement:
◆ insertAt:newElement:nCount:
- (BOOL) insertAt: |
|
(int) |
nIndex |
newElement: |
|
(FSGraphicsObject *) |
newElement |
nCount: |
|
(int) |
nCount |
|
|
| |
◆ insertAt:pNewArray:
- (BOOL) insertAt: |
|
(int) |
nStartIndex |
pNewArray: |
|
(FSBasicArray *) |
pNewArray |
|
|
| |
◆ removeAll
Clean up the array.
- Returns
- None.
◆ removeAt:
- (BOOL) removeAt: |
|
(int) |
nIndex |
|
Remove a number of elements at specified position.
- Parameters
-
[in] | nIndex | Specifies the zero-based index in the array.
|
- Returns
- YES means success, while NO means failure (such as parameter or memory error).
◆ removeAt:nCount:
- (BOOL) removeAt: |
|
(int) |
nIndex |
nCount: |
|
(int) |
nCount |
|
|
| |
Remove a number of elements at specified position.
- Parameters
-
[in] | nIndex | Specifies the zero-based index in the array.
|
[in] | nCount | Specifies the count of element to remove.
|
- Returns
- YES means success, while NO means failure (such as parameter or memory error).
◆ setAt:newElement:
This method overwrites an element specified by an index number.
- Parameters
-
[in] | nIndex | Specifies the zero-based index of the element.
|
[in] | newElement | An element.
|
- Returns
- YES means success, while NO means failure.
◆ setAtGrow:newElement:
Set an element value at specified position. Potentially growing the array.
- Parameters
-
[in] | nIndex | Specifies the zero-based index of element in the array.
|
[in] | newElement | The input element.
|
- Returns
- YES means success, while NO means failure.
◆ setSize:
- (BOOL) setSize: |
|
(int) |
nNewSize |
|
Change the allocated size and the grow amount.
- Parameters
-
[in] | nNewSize | The new size in elements expected.
|
- Returns
- YES means success, while NO means failure (such as parameter or memory error).
◆ setSize:nGrowBy:
- (BOOL) setSize: |
|
(int) |
nNewSize |
nGrowBy: |
|
(int) |
nGrowBy |
|
|
| |
Change the allocated size and the grow amount.
- Parameters
-
[in] | nNewSize | The new size in elements expected.
|
[in] | nGrowBy | The grow amount in elements expected. This can be -1 for the grow amount unchanged.
|
- Returns
- YES means success, while NO means failure (such as parameter or memory error).