Lines Matching full:vector
38 * This file contains vector definitions. Vector provides dynmically
39 * resizable array functionality. Objects in a Vector are not relocated
57 /****h* Component Library/Vector
59 * Vector
62 * The Vector is a self-sizing array. Like a traditonal array, a vector
64 * A vector grows transparently as the user adds elements to the array.
66 * As the vector grows in size, it does not relocate existing elements in
67 * memory. This allows using pointers to elements stored in a Vector.
69 * Users can supply an initializer functions that allow a vector to ensure
70 * that new items added to the vector are properly initialized. A vector
74 * The initializer function can fail, and returns a cl_status_t. The vector
76 * failed initialization. If an initializer fails, a vector does not call
105 /****d* Component Library: Vector/cl_pfn_vec_init_t
111 * used as initializer for elements being allocated by a vector.
120 * [in] Pointer to an element being added to a vector.
131 * In situations where the vector's size needs to grows in order to satisfy
141 * Vector, cl_vector_init
144 /****d* Component Library: Vector/cl_pfn_vec_dtor_t
150 * used as destructor for elements being deallocated from a vector.
159 * [in] Pointer to an element being deallocated from a vector.
173 * Vector, cl_vector_init
176 /****d* Component Library: Vector/cl_pfn_vec_apply_t
182 * used to iterate elements in a vector.
195 * [in] Pointer to an element at the specified index in the vector.
209 * Vector, cl_vector_apply_func
212 /****d* Component Library: Vector/cl_pfn_vec_find_t
218 * used to find elements in a vector.
231 * [in] Pointer to an element at the specified index in the vector.
238 * Return CL_SUCCESS if the element was found. This stops vector iteration.
240 * CL_NOT_FOUND to continue the vector iteration.
248 * Vector, cl_vector_find_from_start, cl_vector_find_from_end
251 /****i* Component Library: Vector/cl_pfn_vec_copy_t
257 * used to copy elements in a vector.
279 * Vector
282 /****s* Component Library: Vector/cl_vector_t
287 * Vector structure.
310 * Number of elements successfully initialized in the vector.
340 * State of the vector.
343 * Vector
346 /****f* Component Library: Vector/cl_vector_construct
351 * The cl_vector_construct function constructs a vector.
368 * vector function except cl_vector_init.
371 * Vector, cl_vector_init, cl_vector_destroy
374 /****f* Component Library: Vector/cl_vector_init
379 * The cl_vector_init function initializes a vector for use.
401 * the vector. A value of zero disables automatic growth.
420 * CL_SUCCESS if the vector was initialized successfully.
432 * Vector, cl_vector_construct, cl_vector_destroy, cl_vector_set,
436 /****f* Component Library: Vector/cl_vector_destroy
441 * The cl_vector_destroy function destroys a vector.
455 * cl_vector_destroy frees all memory allocated for the vector. The vector
462 * Vector, cl_vector_construct, cl_vector_init
465 /****f* Component Library: Vector/cl_vector_get_capacity
470 * The cl_vector_get_capacity function returns the capacity of a vector.
489 * Capacity, in elements, of the vector.
492 * The capacity is the number of elements that the vector can store, and
494 * elements stored in the vector, use cl_vector_get_size.
497 * Vector, cl_vector_set_capacity, cl_vector_get_size
500 /****f* Component Library: Vector/cl_vector_get_size
505 * The cl_vector_get_size function returns the size of a vector.
523 * Size, in elements, of the vector.
526 * Vector, cl_vector_set_size, cl_vector_get_capacity
529 /****f* Component Library: Vector/cl_vector_get_ptr
535 * stored in a vector at a specified index.
564 * responsible for providing an index that is within the range of the vector.
567 * Vector, cl_vector_get, cl_vector_at, cl_vector_set, cl_vector_get_size
570 /****f* Component Library: Vector/cl_vector_get
575 * The cl_vector_get function copies an element stored in a vector at a
614 * cl_vector_get does not perform boundary checking on the vector, and
616 * of the vector. To access elements after performing boundary checks,
623 * Vector, cl_vector_get_ptr, cl_vector_at
626 /****f* Component Library: Vector/cl_vector_at
631 * The cl_vector_at function copies an element stored in a vector at a
659 * performs boundary checking on the vector.
664 * Vector, cl_vector_get, cl_vector_get_ptr
667 /****f* Component Library: Vector/cl_vector_set
689 * [in] Pointer to an element to store in the vector.
694 * CL_INSUFFICIENT_MEMORY if the vector could not be resized to accommodate
698 * cl_vector_set grows the vector as needed to accommodate the new element,
703 * Vector, cl_vector_get
706 /****f* Component Library: Vector/cl_vector_set_capacity
711 * The cl_vector_set_capacity function reserves memory in a vector for a
725 * [in] Total number of elements for which the vector should
732 * operation. The vector is left unchanged.
735 * cl_vector_set_capacity increases the capacity of the vector. It does
736 * not change the size of the vector. If the requested capacity is less
737 * than the current capacity, the vector is left unchanged.
740 * Vector, cl_vector_get_capacity, cl_vector_set_size,
744 /****f* Component Library: Vector/cl_vector_set_size
749 * The cl_vector_set_size function resizes a vector, either increasing or
762 * [in] Number of elements desired in the vector.
765 * CL_SUCCESS if the size of the vector was set successfully.
768 * operation. The vector is left unchanged.
771 * cl_vector_set_size sets the vector to the specified size. If size is
772 * smaller than the current size of the vector, the size is reduced.
780 * Vector, cl_vector_get_size, cl_vector_set_min_size,
784 /****f* Component Library: Vector/cl_vector_set_min_size
789 * The cl_vector_set_min_size function resizes a vector to a specified size
790 * if the vector is smaller than the specified size.
803 * [in] Minimum number of elements that the vector should contain.
806 * CL_SUCCESS if the vector size is greater than or equal to min_size. This
807 * could indicate that the vector's capacity was increased to min_size or
808 * that the vector was already of sufficient size.
810 * CL_INSUFFICIENT_MEMORY if there was not enough memory to resize the vector.
811 * The vector is left unchanged.
814 * If min_size is smaller than the current size of the vector, the vector is
815 * unchanged. The vector is unchanged if the size could not be changed due
819 * Vector, cl_vector_get_size, cl_vector_set_size, cl_vector_set_capacity
822 /****f* Component Library: Vector/cl_vector_apply_func
828 * element in a vector.
854 * in the vector, starting from the beginning of the vector.
857 * Vector, cl_vector_find_from_start, cl_vector_find_from_end,
861 /****f* Component Library: Vector/cl_vector_find_from_start
867 * search for elements in a vector starting from the lowest index.
891 * Size of the vector if the element was not found.
895 * the vector. The index of the element is returned when the function
899 * Vector, cl_vector_find_from_end, cl_vector_apply_func, cl_pfn_vec_find_t
902 /****f* Component Library: Vector/cl_vector_find_from_end
908 * for elements in a vector starting from the highest index.
932 * Size of the vector if the element was not found.
936 * the vector. The index of the element is returned when the function
940 * Vector, cl_vector_find_from_start, cl_vector_apply_func,