Accessor declarations for dynamic array. More...
Macros | |
#define | kzcDynamicArrayIteratorPointerGetValue(iterator_param) |
Returns the value of the pointer dynamic array element pointed by the iterator. More... | |
#define | kzcDynamicArrayIteratorIntGetValue(iterator_param) |
Returns the value of the integer dynamic array element pointed by the iterator. More... | |
#define | kzcDynamicArrayIteratorUintGetValue(iterator_param) |
Returns the value of the unsigned integer dynamic array element pointed by the iterator. More... | |
#define | kzcDynamicArrayIteratorFloatGetValue(iterator_param) |
Returns the value of the float dynamic array element pointed by the iterator. More... | |
#define | kzcDynamicArrayIteratorStringGetValue(iterator_param) |
Returns the value of the string dynamic array element pointed by the iterator. More... | |
#define | kzcDynamicArrayMutableIteratorPointerGetValue(iterator_param) |
Returns the value of the pointer dynamic array element pointed by the mutable iterator. More... | |
#define | kzcDynamicArrayMutableIteratorIntGetValue(iterator_param) |
Returns the value of the integer dynamic array element pointed by the mutable iterator. More... | |
#define | kzcDynamicArrayMutableIteratorUintGetValue(iterator_param) |
Returns the value of the unsigned integer dynamic array element pointed by the mutable iterator. More... | |
#define | kzcDynamicArrayMutableIteratorFloatGetValue(iterator_param) |
Returns the value of the float dynamic array element pointed by the mutable iterator. More... | |
#define | kzcDynamicArrayMutableIteratorStringGetValue(iterator_param) |
Returns the value of the string dynamic array element pointed by the mutable iterator. More... | |
Functions | |
kzsError | kzcDynamicArrayPointerAdd (struct KzcDynamicArray *dynamicArray, const void *value) |
Adds the given pointer element to the pointer dynamic array. More... | |
kzsError | kzcDynamicArrayIntAdd (struct KzcDynamicArray *dynamicArray, kzInt value) |
Adds the given integer element to the integer dynamic array. More... | |
kzsError | kzcDynamicArrayUintAdd (struct KzcDynamicArray *dynamicArray, kzUint value) |
Adds the given unsigned integer element to the unsigned integer dynamic array. More... | |
kzsError | kzcDynamicArrayFloatAdd (struct KzcDynamicArray *dynamicArray, kzFloat value) |
Adds the given float element to the float dynamic array. More... | |
KANZI_API kzsError | kzcDynamicArrayStringAdd (struct KzcDynamicArray *dynamicArray, kzString value) |
Adds the given string element to the string dynamic array. More... | |
void * | kzcDynamicArrayPointerGet (const struct KzcDynamicArray *dynamicArray, kzUint index) |
Retrieves an element from the pointer dynamic array from the given index. More... | |
kzInt | kzcDynamicArrayIntGet (const struct KzcDynamicArray *dynamicArray, kzUint index) |
Retrieves an element from the integer dynamic array from the given index. More... | |
kzUint | kzcDynamicArrayUintGet (const struct KzcDynamicArray *dynamicArray, kzUint index) |
Retrieves an element from the unsigned integer dynamic array from the given index. More... | |
kzFloat | kzcDynamicArrayFloatGet (const struct KzcDynamicArray *dynamicArray, kzUint index) |
Retrieves an element from the float dynamic array from the given index. More... | |
KANZI_API kzString | kzcDynamicArrayStringGet (const struct KzcDynamicArray *dynamicArray, kzUint index) |
Retrieves an element from the string dynamic array from the given index. More... | |
void | kzcDynamicArrayPointerReplace (struct KzcDynamicArray *dynamicArray, kzUint index, const void *element) |
Replaces the pointer element at the specified index in the pointer dynamic array with the given pointer element. More... | |
void | kzcDynamicArrayIntReplace (struct KzcDynamicArray *dynamicArray, kzUint index, kzInt element) |
Replaces the integer element at the specified index in the integer dynamic array with the given integer element. More... | |
void | kzcDynamicArrayUintReplace (struct KzcDynamicArray *dynamicArray, kzUint index, kzUint element) |
Replaces the unsigned integer element at the specified index in the unsigned integer dynamic array with the given unsigned integer element. More... | |
void | kzcDynamicArrayFloatReplace (struct KzcDynamicArray *dynamicArray, kzUint index, kzFloat element) |
Replaces the float element at the specified index in the float dynamic array with the given float element. More... | |
void | kzcDynamicArrayStringReplace (struct KzcDynamicArray *dynamicArray, kzUint index, kzString element) |
Replaces the string element at the specified index in the string dynamic array with the given string element. More... | |
kzsError | kzcDynamicArrayPointerSet (struct KzcDynamicArray *dynamicArray, kzUint index, const void *element) |
Sets the element at the given index of the pointer dynamic array. More... | |
kzsError | kzcDynamicArrayIntSet (struct KzcDynamicArray *dynamicArray, kzUint index, kzInt element) |
Sets the element at the given index of the integer dynamic array. More... | |
kzsError | kzcDynamicArrayUintSet (struct KzcDynamicArray *dynamicArray, kzUint index, kzUint element) |
Sets the element at the given index of the unsigned integer dynamic array. More... | |
kzsError | kzcDynamicArrayFloatSet (struct KzcDynamicArray *dynamicArray, kzUint index, kzFloat element) |
Sets the element at the given index of the float dynamic array. More... | |
kzsError | kzcDynamicArrayStringSet (struct KzcDynamicArray *dynamicArray, kzUint index, kzString element) |
Sets the element at the given index of the string dynamic array. More... | |
kzsError | kzcDynamicArrayPointerRemove (struct KzcDynamicArray *dynamicArray, const void *element) |
Removes the specified pointer element from the pointer dynamic array. More... | |
kzsError | kzcDynamicArrayIntRemove (struct KzcDynamicArray *dynamicArray, kzInt element) |
Removes the specified integer element from the integer dynamic array. More... | |
kzsError | kzcDynamicArrayUintRemove (struct KzcDynamicArray *dynamicArray, kzUint element) |
Removes the specified unsigned integer element from the unsigned integer dynamic array. More... | |
kzsError | kzcDynamicArrayFloatRemove (struct KzcDynamicArray *dynamicArray, kzFloat element) |
Removes the specified float element from the float dynamic array. More... | |
kzsError | kzcDynamicArrayStringRemove (struct KzcDynamicArray *dynamicArray, kzString element) |
Removes the specified string element from the string dynamic array. More... | |
kzsError | kzcDynamicArrayPointerRemoveIfEqual (struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, const void *element, kzUint *out_removedCount) |
Removes from the dynamic array all elements that are found equal to the given pointer element using the given comparator. More... | |
kzsError | kzcDynamicArrayIntRemoveIfEqual (struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzInt element, kzUint *out_removedCount) |
Removes from the dynamic array all elements that are found equal to the given integer element using the given comparator. More... | |
kzsError | kzcDynamicArrayUintRemoveIfEqual (struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzUint element, kzUint *out_removedCount) |
Removes from the dynamic array all elements that are found equal to the given unsigned integer element using the given comparator. More... | |
kzsError | kzcDynamicArrayFloatRemoveIfEqual (struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzFloat element, kzUint *out_removedCount) |
Removes from the dynamic array all elements that are found equal to the given float element using the given comparator. More... | |
kzsError | kzcDynamicArrayStringRemoveIfEqual (struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzString element, kzUint *out_removedCount) |
Removes from the dynamic array all elements that are found equal to the given string element using the given comparator. More... | |
kzBool | kzcDynamicArrayPointerContains (const struct KzcDynamicArray *dynamicArray, const void *element) |
Checks if pointer dynamic array contains the specific pointer element. More... | |
kzBool | kzcDynamicArrayIntContains (const struct KzcDynamicArray *dynamicArray, kzInt element) |
Checks if integer dynamic array contains the specific integer element. More... | |
kzBool | kzcDynamicArrayUintContains (const struct KzcDynamicArray *dynamicArray, kzUint element) |
Checks if unsigned integer dynamic array contains the specific unsigned integer element. More... | |
kzBool | kzcDynamicArrayFloatContains (const struct KzcDynamicArray *dynamicArray, kzFloat element) |
Checks if float dynamic array contains the specific float element. More... | |
kzBool | kzcDynamicArrayStringContains (const struct KzcDynamicArray *dynamicArray, kzString element) |
Checks if string dynamic array contains the specific string element. More... | |
kzBool | kzcDynamicArrayPointerFindIndex (const struct KzcDynamicArray *dynamicArray, const void *element, kzUint *out_index) |
Finds the first index of the pointer dynamic array whose value is the given pointer element. More... | |
kzBool | kzcDynamicArrayIntFindIndex (const struct KzcDynamicArray *dynamicArray, kzInt element, kzUint *out_index) |
Finds the first index of the integer dynamic array whose value is the given integer element. More... | |
kzBool | kzcDynamicArrayUintFindIndex (const struct KzcDynamicArray *dynamicArray, kzUint element, kzUint *out_index) |
Finds the first index of the unsigned integer dynamic array whose value is the given unsigned integer element. More... | |
kzBool | kzcDynamicArrayFloatFindIndex (const struct KzcDynamicArray *dynamicArray, kzFloat element, kzUint *out_index) |
Finds the first index of the float dynamic array whose value is the given float element. More... | |
kzBool | kzcDynamicArrayStringFindIndex (const struct KzcDynamicArray *dynamicArray, kzString element, kzUint *out_index) |
Finds the first index of the string dynamic array whose value is the given string element. More... | |
kzBool | kzcDynamicArrayPointerFindIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, const void *elementToCompare, void **out_element) |
Finds the first element of the pointer dynamic array that is found equal to the given pointer element by using the given comparator. More... | |
kzBool | kzcDynamicArrayIntFindIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzInt elementToCompare, kzInt *out_element) |
Finds the first element of the integer dynamic array that is found equal to the given integer element by using the given comparator. More... | |
kzBool | kzcDynamicArrayUintFindIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzUint elementToCompare, kzUint *out_element) |
Finds the first element of the unsigned integer dynamic array that is found equal to the given unsigned integer element by using the given comparator. More... | |
kzBool | kzcDynamicArrayFloatFindIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzFloat elementToCompare, kzFloat *out_element) |
Finds the first element of the float dynamic array that is found equal to the given float element by using the given comparator. More... | |
kzBool | kzcDynamicArrayStringFindIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzString elementToCompare, kzString *out_element) |
Finds the first element of the string dynamic array that is found equal to the given string element by using the given comparator. More... | |
kzBool | kzcDynamicArrayPointerFindIndexIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, const void *elementToCompare, kzUint *out_index) |
Finds the index of the first element of the pointer dynamic array that is found equal to the given pointer element by using the given comparator. More... | |
kzBool | kzcDynamicArrayIntFindIndexIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzInt elementToCompare, kzUint *out_index) |
Finds the index of the first element of the integer dynamic array that is found equal to the given integer element by using the given comparator. More... | |
kzBool | kzcDynamicArrayUintFindIndexIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzUint elementToCompare, kzUint *out_index) |
Finds the index of the first element of the unsigned integer dynamic array that is found equal to the given unsigned integer element by using the given comparator. More... | |
kzBool | kzcDynamicArrayFloatFindIndexIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzFloat elementToCompare, kzUint *out_index) |
Finds the index of the first element of the float dynamic array that is found equal to the given float element by using the given comparator. More... | |
kzBool | kzcDynamicArrayStringFindIndexIfEqual (const struct KzcDynamicArray *dynamicArray, KzcComparatorFunction comparator, kzString elementToCompare, kzUint *out_index) |
Finds the index of the first element of the string dynamic array that is found equal to the given string element by using the given comparator. More... | |
kzsError | kzcDynamicArrayPointerInsert (struct KzcDynamicArray *dynamicArray, kzUint index, const void *element) |
Inserts the given pointer element before the element at the given index. More... | |
kzsError | kzcDynamicArrayIntInsert (struct KzcDynamicArray *dynamicArray, kzUint index, kzInt element) |
Inserts the given integer element before the element at the given index. More... | |
kzsError | kzcDynamicArrayUintInsert (struct KzcDynamicArray *dynamicArray, kzUint index, kzUint element) |
Inserts the given unsigned integer element before the element at the given index. More... | |
kzsError | kzcDynamicArrayFloatInsert (struct KzcDynamicArray *dynamicArray, kzUint index, kzFloat element) |
Inserts the given float element before the element at the given index. More... | |
kzsError | kzcDynamicArrayStringInsert (struct KzcDynamicArray *dynamicArray, kzUint index, kzString element) |
Inserts the given string element before the element at the given index. More... | |
kzsError | kzcDynamicArrayPointerToArray (const struct KzcMemoryManager *memoryManager, const struct KzcDynamicArray *dynamicArray, void ***out_array) |
Creates a new pointer array from the content of the given pointer dynamic array. More... | |
kzsError | kzcDynamicArrayIntToArray (const struct KzcMemoryManager *memoryManager, const struct KzcDynamicArray *dynamicArray, kzInt **out_array) |
Creates a new integer array from the content of the given integer dynamic array. More... | |
kzsError | kzcDynamicArrayUintToArray (const struct KzcMemoryManager *memoryManager, const struct KzcDynamicArray *dynamicArray, kzUint **out_array) |
Creates a new unsigned integer array from the content of the given unsigned integer dynamic array. More... | |
kzsError | kzcDynamicArrayFloatToArray (const struct KzcMemoryManager *memoryManager, const struct KzcDynamicArray *dynamicArray, kzFloat **out_array) |
Creates a new float array from the content of the given float dynamic array. More... | |
kzsError | kzcDynamicArrayStringToArray (const struct KzcMemoryManager *memoryManager, const struct KzcDynamicArray *dynamicArray, kzString **out_array) |
Creates a new string array from the content of the given string dynamic array. More... | |
KZ_INLINE void * | kzcDynamicArrayIteratorPointerGetValue_private (const struct KzcDynamicArrayIterator *iterator) |
KZ_INLINE kzInt | kzcDynamicArrayIteratorIntGetValue_private (const struct KzcDynamicArrayIterator *iterator) |
KZ_INLINE kzUint | kzcDynamicArrayIteratorUintGetValue_private (const struct KzcDynamicArrayIterator *iterator) |
KZ_INLINE kzFloat | kzcDynamicArrayIteratorFloatGetValue_private (const struct KzcDynamicArrayIterator *iterator) |
KZ_INLINE kzString | kzcDynamicArrayIteratorStringGetValue_private (const struct KzcDynamicArrayIterator *iterator) |
KZ_INLINE void * | kzcDynamicArrayMutableIteratorPointerGetValue_private (const struct KzcDynamicArrayMutableIterator *iterator) |
KZ_INLINE kzInt | kzcDynamicArrayMutableIteratorIntGetValue_private (const struct KzcDynamicArrayMutableIterator *iterator) |
KZ_INLINE kzUint | kzcDynamicArrayMutableIteratorUintGetValue_private (const struct KzcDynamicArrayMutableIterator *iterator) |
KZ_INLINE kzFloat | kzcDynamicArrayMutableIteratorFloatGetValue_private (const struct KzcDynamicArrayMutableIterator *iterator) |
KZ_INLINE kzString | kzcDynamicArrayMutableIteratorStringGetValue_private (const struct KzcDynamicArrayMutableIterator *iterator) |
Accessor declarations for dynamic array.
To be included in kzc_dynamic_array.h Do not change this file, as the file is generated automatically.
Copyright 2008-2017 by Rightware. All rights reserved.
#define kzcDynamicArrayIteratorPointerGetValue | ( | iterator_param | ) |
Returns the value of the pointer dynamic array element pointed by the iterator.
#define kzcDynamicArrayIteratorIntGetValue | ( | iterator_param | ) |
Returns the value of the integer dynamic array element pointed by the iterator.
#define kzcDynamicArrayIteratorUintGetValue | ( | iterator_param | ) |
Returns the value of the unsigned integer dynamic array element pointed by the iterator.
#define kzcDynamicArrayIteratorFloatGetValue | ( | iterator_param | ) |
Returns the value of the float dynamic array element pointed by the iterator.
#define kzcDynamicArrayIteratorStringGetValue | ( | iterator_param | ) |
Returns the value of the string dynamic array element pointed by the iterator.
#define kzcDynamicArrayMutableIteratorPointerGetValue | ( | iterator_param | ) |
Returns the value of the pointer dynamic array element pointed by the mutable iterator.
#define kzcDynamicArrayMutableIteratorIntGetValue | ( | iterator_param | ) |
Returns the value of the integer dynamic array element pointed by the mutable iterator.
#define kzcDynamicArrayMutableIteratorUintGetValue | ( | iterator_param | ) |
Returns the value of the unsigned integer dynamic array element pointed by the mutable iterator.
#define kzcDynamicArrayMutableIteratorFloatGetValue | ( | iterator_param | ) |
Returns the value of the float dynamic array element pointed by the mutable iterator.
#define kzcDynamicArrayMutableIteratorStringGetValue | ( | iterator_param | ) |
Returns the value of the string dynamic array element pointed by the mutable iterator.
kzsError kzcDynamicArrayPointerAdd | ( | struct KzcDynamicArray * | dynamicArray, |
const void * | value | ||
) |
Adds the given pointer element to the pointer dynamic array.
kzsError kzcDynamicArrayIntAdd | ( | struct KzcDynamicArray * | dynamicArray, |
kzInt | value | ||
) |
Adds the given integer element to the integer dynamic array.
kzsError kzcDynamicArrayUintAdd | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | value | ||
) |
Adds the given unsigned integer element to the unsigned integer dynamic array.
kzsError kzcDynamicArrayFloatAdd | ( | struct KzcDynamicArray * | dynamicArray, |
kzFloat | value | ||
) |
Adds the given float element to the float dynamic array.
KANZI_API kzsError kzcDynamicArrayStringAdd | ( | struct KzcDynamicArray * | dynamicArray, |
kzString | value | ||
) |
Adds the given string element to the string dynamic array.
|
inline |
Retrieves an element from the pointer dynamic array from the given index.
The index must not be out of bounds.
kzInt kzcDynamicArrayIntGet | ( | const struct KzcDynamicArray * | dynamicArray, |
kzUint | index | ||
) |
Retrieves an element from the integer dynamic array from the given index.
The index must not be out of bounds.
kzUint kzcDynamicArrayUintGet | ( | const struct KzcDynamicArray * | dynamicArray, |
kzUint | index | ||
) |
Retrieves an element from the unsigned integer dynamic array from the given index.
The index must not be out of bounds.
kzFloat kzcDynamicArrayFloatGet | ( | const struct KzcDynamicArray * | dynamicArray, |
kzUint | index | ||
) |
Retrieves an element from the float dynamic array from the given index.
The index must not be out of bounds.
KANZI_API kzString kzcDynamicArrayStringGet | ( | const struct KzcDynamicArray * | dynamicArray, |
kzUint | index | ||
) |
Retrieves an element from the string dynamic array from the given index.
The index must not be out of bounds.
void kzcDynamicArrayPointerReplace | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
const void * | element | ||
) |
Replaces the pointer element at the specified index in the pointer dynamic array with the given pointer element.
void kzcDynamicArrayIntReplace | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzInt | element | ||
) |
Replaces the integer element at the specified index in the integer dynamic array with the given integer element.
void kzcDynamicArrayUintReplace | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzUint | element | ||
) |
Replaces the unsigned integer element at the specified index in the unsigned integer dynamic array with the given unsigned integer element.
void kzcDynamicArrayFloatReplace | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzFloat | element | ||
) |
Replaces the float element at the specified index in the float dynamic array with the given float element.
void kzcDynamicArrayStringReplace | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzString | element | ||
) |
Replaces the string element at the specified index in the string dynamic array with the given string element.
kzsError kzcDynamicArrayPointerSet | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
const void * | element | ||
) |
Sets the element at the given index of the pointer dynamic array.
If the index is out of bounds, the array is resized to support the given index and new slots filled with default values. Otherwise replaces the existing pointer element.
kzsError kzcDynamicArrayIntSet | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzInt | element | ||
) |
Sets the element at the given index of the integer dynamic array.
If the index is out of bounds, the array is resized to support the given index and new slots filled with default values. Otherwise replaces the existing integer element.
kzsError kzcDynamicArrayUintSet | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzUint | element | ||
) |
Sets the element at the given index of the unsigned integer dynamic array.
If the index is out of bounds, the array is resized to support the given index and new slots filled with default values. Otherwise replaces the existing unsigned integer element.
kzsError kzcDynamicArrayFloatSet | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzFloat | element | ||
) |
Sets the element at the given index of the float dynamic array.
If the index is out of bounds, the array is resized to support the given index and new slots filled with default values. Otherwise replaces the existing float element.
kzsError kzcDynamicArrayStringSet | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzString | element | ||
) |
Sets the element at the given index of the string dynamic array.
If the index is out of bounds, the array is resized to support the given index and new slots filled with default values. Otherwise replaces the existing string element.
kzsError kzcDynamicArrayPointerRemove | ( | struct KzcDynamicArray * | dynamicArray, |
const void * | element | ||
) |
Removes the specified pointer element from the pointer dynamic array.
Decides equality by simple comparison. Returns an error if the element is not found.
kzsError kzcDynamicArrayIntRemove | ( | struct KzcDynamicArray * | dynamicArray, |
kzInt | element | ||
) |
Removes the specified integer element from the integer dynamic array.
Decides equality by simple comparison. Returns an error if the element is not found.
kzsError kzcDynamicArrayUintRemove | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | element | ||
) |
Removes the specified unsigned integer element from the unsigned integer dynamic array.
Decides equality by simple comparison. Returns an error if the element is not found.
kzsError kzcDynamicArrayFloatRemove | ( | struct KzcDynamicArray * | dynamicArray, |
kzFloat | element | ||
) |
Removes the specified float element from the float dynamic array.
Decides equality by simple comparison. Returns an error if the element is not found.
kzsError kzcDynamicArrayStringRemove | ( | struct KzcDynamicArray * | dynamicArray, |
kzString | element | ||
) |
Removes the specified string element from the string dynamic array.
Decides equality by simple comparison. Returns an error if the element is not found.
kzsError kzcDynamicArrayPointerRemoveIfEqual | ( | struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
const void * | element, | ||
kzUint * | out_removedCount | ||
) |
Removes from the dynamic array all elements that are found equal to the given pointer element using the given comparator.
Returns the number of elements removed.
kzsError kzcDynamicArrayIntRemoveIfEqual | ( | struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzInt | element, | ||
kzUint * | out_removedCount | ||
) |
Removes from the dynamic array all elements that are found equal to the given integer element using the given comparator.
Returns the number of elements removed.
kzsError kzcDynamicArrayUintRemoveIfEqual | ( | struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzUint | element, | ||
kzUint * | out_removedCount | ||
) |
Removes from the dynamic array all elements that are found equal to the given unsigned integer element using the given comparator.
Returns the number of elements removed.
kzsError kzcDynamicArrayFloatRemoveIfEqual | ( | struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzFloat | element, | ||
kzUint * | out_removedCount | ||
) |
Removes from the dynamic array all elements that are found equal to the given float element using the given comparator.
Returns the number of elements removed.
kzsError kzcDynamicArrayStringRemoveIfEqual | ( | struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzString | element, | ||
kzUint * | out_removedCount | ||
) |
Removes from the dynamic array all elements that are found equal to the given string element using the given comparator.
Returns the number of elements removed.
kzBool kzcDynamicArrayPointerContains | ( | const struct KzcDynamicArray * | dynamicArray, |
const void * | element | ||
) |
Checks if pointer dynamic array contains the specific pointer element.
kzBool kzcDynamicArrayIntContains | ( | const struct KzcDynamicArray * | dynamicArray, |
kzInt | element | ||
) |
Checks if integer dynamic array contains the specific integer element.
kzBool kzcDynamicArrayUintContains | ( | const struct KzcDynamicArray * | dynamicArray, |
kzUint | element | ||
) |
Checks if unsigned integer dynamic array contains the specific unsigned integer element.
kzBool kzcDynamicArrayFloatContains | ( | const struct KzcDynamicArray * | dynamicArray, |
kzFloat | element | ||
) |
Checks if float dynamic array contains the specific float element.
kzBool kzcDynamicArrayStringContains | ( | const struct KzcDynamicArray * | dynamicArray, |
kzString | element | ||
) |
Checks if string dynamic array contains the specific string element.
kzBool kzcDynamicArrayPointerFindIndex | ( | const struct KzcDynamicArray * | dynamicArray, |
const void * | element, | ||
kzUint * | out_index | ||
) |
Finds the first index of the pointer dynamic array whose value is the given pointer element.
Returns KZ_TRUE if the element was found.
kzBool kzcDynamicArrayIntFindIndex | ( | const struct KzcDynamicArray * | dynamicArray, |
kzInt | element, | ||
kzUint * | out_index | ||
) |
Finds the first index of the integer dynamic array whose value is the given integer element.
Returns KZ_TRUE if the element was found.
kzBool kzcDynamicArrayUintFindIndex | ( | const struct KzcDynamicArray * | dynamicArray, |
kzUint | element, | ||
kzUint * | out_index | ||
) |
Finds the first index of the unsigned integer dynamic array whose value is the given unsigned integer element.
Returns KZ_TRUE if the element was found.
kzBool kzcDynamicArrayFloatFindIndex | ( | const struct KzcDynamicArray * | dynamicArray, |
kzFloat | element, | ||
kzUint * | out_index | ||
) |
Finds the first index of the float dynamic array whose value is the given float element.
Returns KZ_TRUE if the element was found.
kzBool kzcDynamicArrayStringFindIndex | ( | const struct KzcDynamicArray * | dynamicArray, |
kzString | element, | ||
kzUint * | out_index | ||
) |
Finds the first index of the string dynamic array whose value is the given string element.
Returns KZ_TRUE if the element was found.
kzBool kzcDynamicArrayPointerFindIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
const void * | elementToCompare, | ||
void ** | out_element | ||
) |
Finds the first element of the pointer dynamic array that is found equal to the given pointer element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzBool kzcDynamicArrayIntFindIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzInt | elementToCompare, | ||
kzInt * | out_element | ||
) |
Finds the first element of the integer dynamic array that is found equal to the given integer element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzBool kzcDynamicArrayUintFindIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzUint | elementToCompare, | ||
kzUint * | out_element | ||
) |
Finds the first element of the unsigned integer dynamic array that is found equal to the given unsigned integer element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzBool kzcDynamicArrayFloatFindIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzFloat | elementToCompare, | ||
kzFloat * | out_element | ||
) |
Finds the first element of the float dynamic array that is found equal to the given float element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzBool kzcDynamicArrayStringFindIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzString | elementToCompare, | ||
kzString * | out_element | ||
) |
Finds the first element of the string dynamic array that is found equal to the given string element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzBool kzcDynamicArrayPointerFindIndexIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
const void * | elementToCompare, | ||
kzUint * | out_index | ||
) |
Finds the index of the first element of the pointer dynamic array that is found equal to the given pointer element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzBool kzcDynamicArrayIntFindIndexIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzInt | elementToCompare, | ||
kzUint * | out_index | ||
) |
Finds the index of the first element of the integer dynamic array that is found equal to the given integer element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzBool kzcDynamicArrayUintFindIndexIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzUint | elementToCompare, | ||
kzUint * | out_index | ||
) |
Finds the index of the first element of the unsigned integer dynamic array that is found equal to the given unsigned integer element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzBool kzcDynamicArrayFloatFindIndexIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzFloat | elementToCompare, | ||
kzUint * | out_index | ||
) |
Finds the index of the first element of the float dynamic array that is found equal to the given float element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzBool kzcDynamicArrayStringFindIndexIfEqual | ( | const struct KzcDynamicArray * | dynamicArray, |
KzcComparatorFunction | comparator, | ||
kzString | elementToCompare, | ||
kzUint * | out_index | ||
) |
Finds the index of the first element of the string dynamic array that is found equal to the given string element by using the given comparator.
Returns KZ_TRUE if a matching element is found.
kzsError kzcDynamicArrayPointerInsert | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
const void * | element | ||
) |
Inserts the given pointer element before the element at the given index.
If the index is out of bounds adds the given element at the end of the array.
kzsError kzcDynamicArrayIntInsert | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzInt | element | ||
) |
Inserts the given integer element before the element at the given index.
If the index is out of bounds adds the given element at the end of the array.
kzsError kzcDynamicArrayUintInsert | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzUint | element | ||
) |
Inserts the given unsigned integer element before the element at the given index.
If the index is out of bounds adds the given element at the end of the array.
kzsError kzcDynamicArrayFloatInsert | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzFloat | element | ||
) |
Inserts the given float element before the element at the given index.
If the index is out of bounds adds the given element at the end of the array.
kzsError kzcDynamicArrayStringInsert | ( | struct KzcDynamicArray * | dynamicArray, |
kzUint | index, | ||
kzString | element | ||
) |
Inserts the given string element before the element at the given index.
If the index is out of bounds adds the given element at the end of the array.
kzsError kzcDynamicArrayPointerToArray | ( | const struct KzcMemoryManager * | memoryManager, |
const struct KzcDynamicArray * | dynamicArray, | ||
void *** | out_array | ||
) |
Creates a new pointer array from the content of the given pointer dynamic array.
Returns an array of pointers.
kzsError kzcDynamicArrayIntToArray | ( | const struct KzcMemoryManager * | memoryManager, |
const struct KzcDynamicArray * | dynamicArray, | ||
kzInt ** | out_array | ||
) |
Creates a new integer array from the content of the given integer dynamic array.
Returns an array of integers.
kzsError kzcDynamicArrayUintToArray | ( | const struct KzcMemoryManager * | memoryManager, |
const struct KzcDynamicArray * | dynamicArray, | ||
kzUint ** | out_array | ||
) |
Creates a new unsigned integer array from the content of the given unsigned integer dynamic array.
Returns an array of unsigned integers.
kzsError kzcDynamicArrayFloatToArray | ( | const struct KzcMemoryManager * | memoryManager, |
const struct KzcDynamicArray * | dynamicArray, | ||
kzFloat ** | out_array | ||
) |
Creates a new float array from the content of the given float dynamic array.
Returns an array of floats.
kzsError kzcDynamicArrayStringToArray | ( | const struct KzcMemoryManager * | memoryManager, |
const struct KzcDynamicArray * | dynamicArray, | ||
kzString ** | out_array | ||
) |
Creates a new string array from the content of the given string dynamic array.
Returns an array of strings.
KZ_INLINE void* kzcDynamicArrayIteratorPointerGetValue_private | ( | const struct KzcDynamicArrayIterator * | iterator | ) |
KZ_INLINE kzInt kzcDynamicArrayIteratorIntGetValue_private | ( | const struct KzcDynamicArrayIterator * | iterator | ) |
KZ_INLINE kzUint kzcDynamicArrayIteratorUintGetValue_private | ( | const struct KzcDynamicArrayIterator * | iterator | ) |
KZ_INLINE kzFloat kzcDynamicArrayIteratorFloatGetValue_private | ( | const struct KzcDynamicArrayIterator * | iterator | ) |
KZ_INLINE kzString kzcDynamicArrayIteratorStringGetValue_private | ( | const struct KzcDynamicArrayIterator * | iterator | ) |
KZ_INLINE void* kzcDynamicArrayMutableIteratorPointerGetValue_private | ( | const struct KzcDynamicArrayMutableIterator * | iterator | ) |
KZ_INLINE kzInt kzcDynamicArrayMutableIteratorIntGetValue_private | ( | const struct KzcDynamicArrayMutableIterator * | iterator | ) |
KZ_INLINE kzUint kzcDynamicArrayMutableIteratorUintGetValue_private | ( | const struct KzcDynamicArrayMutableIterator * | iterator | ) |
KZ_INLINE kzFloat kzcDynamicArrayMutableIteratorFloatGetValue_private | ( | const struct KzcDynamicArrayMutableIterator * | iterator | ) |
KZ_INLINE kzString kzcDynamicArrayMutableIteratorStringGetValue_private | ( | const struct KzcDynamicArrayMutableIterator * | iterator | ) |