The TutPtrAry* are used to work with pointer arrays.
TutPtrAryAppend append an item to the pointer array
T_BOOL TutPtrAryAppend(ptr_array
,pointer
,index
) T_PTR_ARYptr_array
; T_PTRpointer
; T_INT4 *index
;
TutPtrAryChangeCbCreate create a callback that is called when a pointer array changes
T_CB TutPtrAryChangeCbCreate(ptr_ary
,change_func
,arg
) T_PTR_ARYptr_ary
; T_PTR_ARY_CHANGE_CB_FUNCchange_func
; T_CB_ARGarg
;
TutPtrAryChangeCbLookup look up a pointer array change callback
T_CB TutPtrAryChangeCbLookup(ptr_ary
,change_func
,arg
) T_PTR_ARYptr_ary
; T_PTR_ARY_CHANGE_CB_FUNCchange_func
; T_CB_ARGarg
;
TutPtrAryClear clear the pointer array
T_BOOL TutPtrAryClear(ptr_ary
,user_func
,user_arg
) T_PTR_ARYptr_ary
; T_PTR_ARY_USER_FUNCuser_func
; T_PTRuser_arg
;
TutPtrAryCreate create a pointer array
TutPtrAryDestroy destroy the pointer array
T_BOOL TutPtrAryDestroy(ptr_ary
,user_func
,user_arg
) T_PTR_ARYptr_ary
; T_PTR_ARY_USER_FUNCuser_func
; T_PTRuser_arg
;
TutPtrAryGetItemAtIndex retrieve the item stored at the given index in the array
T_BOOL TutPtrAryGetItemAtIndex(ptr_ary
,index
,element
) T_PTR_ARYptr_ary
; T_INT4index
; T_PTR *element
;
TutPtrAryGetItemCount determine the number of items in the pointer array
TutPtrAryGetItemIndex determine the array index of the specified item
TutPtrAryInsertAfter insert a new item in the array after the specified item
T_BOOL TutPtrAryInsertAfter(ptr_ary
,index_item
,new_item
) T_PTR_ARYptr_ary
; T_PTRindex_item
; T_PTRnew_item
;
TutPtrAryInsertBefore insert a new item in the array before the specified item
T_BOOL TutPtrAryInsertBefore(ptr_ary
,index_item
,new_item
) T_PTR_ARYptr_ary
; T_PTRindex_item
; T_PTRnew_item
;
TutPtrAryInsertItemAtIndex insert item in the array at the specified index
T_BOOL TutPtrAryInsertItemAtIndex(ptr_ary
,new_item
,index
) T_PTR_ARYptr_ary
; T_PTRnew_item
; T_INT4index
TutPtrAryItemExists verify that an item exists in the array
TutPtrAryRemove remove an item from a pointer array
TutPtrAryRemoveAll remove all instances of an item from an array
TutPtrAryReplaceItemAtIndex replace item at the specified index with a new one
T_BOOL TutPtrAryReplaceItemAtIndex(ptr_ary
,new_item
,index
,old_item
) T_PTR_ARYptr_ary
; T_PTRnew_item
; T_INt4index
; T_PTR *old_item
;
TutPtrArySort sort the pointer array
TutPtrArySwapItems exchange the two specified elements in the array
TIBCO SmartSockets™ API Quick Reference Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |