亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? heap.mdoc

?? bind 9.3結合mysql數據庫
?? MDOC
字號:
.\" $Id: heap.mdoc,v 1.1.2.1.10.1 2004/03/09 08:33:43 marka Exp $.\".\" Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC").\" Copyright (c) 1997,1999 by Internet Software Consortium..\".\" Permission to use, copy, modify, and distribute this software for any.\" purpose with or without fee is hereby granted, provided that the above.\" copyright notice and this permission notice appear in all copies..\".\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF.\" MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT.\" OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE..\".Dd January 1, 1997.\"Os OPERATING_SYSTEM [version/release].Os BSD 4.Dt HEAP @SYSCALL_EXT@.Sh NAME.Nm heap_new ,.Nm heap_free ,.Nm heap_insert ,.Nm heap_delete ,.Nm heap_increased ,.Nm heap_decreased ,.Nm heap_element ,.Nm heap_for_each .Nd heap implementation of priority queues.Sh SYNOPSIS.Fd #include \&"heap.h\&".Ft heap_context    .Fn heap_new "heap_higher_priority_func higher_priority" \"heap_index_func index" "int array_size_increment".Ft int.Fn heap_free "heap_context ctx".Ft int.Fn heap_insert "heap_context ctx" "void *elt".Ft int.Fn heap_delete "heap_context ctx" "int i".Ft int.Fn heap_increased "heap_context ctx" "int i".Ft int.Fn heap_decreased "heap_context ctx" "int i".Ft void *.Fn heap_element "heap_context ctx" "int i".Ft int .Fn heap_for_each "heap_context ctx" "heap_for_each_func action" "void *uap".Sh DESCRIPTIONThese functions implement heap\-based priority queues.  The user defines apriority scheme, and provides a function for comparison of the priorityof heap elements(see the description of the.Ft heap_higher_priority_funcfunction pointer, below)..PpEach of the functions depends upon the.Ft heap_contexttype, which is a pointer to a.Ft struct heap_context .Pq see Pa heap.h No for more information ..PpThe.Pa heap.hheader file also defines the following set of functionfunction pointers:.Bd -literal -offset indenttypedef int (*heap_higher_priority_func)(void *, void *);typedef void (*heap_index_func)(void *, int);typedef void (*heap_for_each_func)(void *, void *);.Ed.PpThese are pointers to user-defined functions.The .Ft heap_higher_priority_functype is a pointer to a function which compares twodifferent heap (queue) elements and returns an.Ft intwhich answers the question, "Does the first queue element have a higher priority than the second?"  In other words, a function pointer of this type .Em must return a number greater than zeroif the element indicated by the first argument is of a higher priority than that indicated by the second element, and zero otherwise.  .PpThe other two function pointers are documented in the descriptionsof .Fn heap_new.Pq Va heap_index_funcand.Fn heap_for_each.Pq Va heap_for_each_func ,below..PpThe function.Fn heap_newinitializes a .Ft struct heap_contextand returns a pointer to it.  The.Fa higher_priorityfunction pointer .Em must be .No non\- Ns Dv NULL .As explained above, this refers to a function supplied by the user which compares the priority of two differentqueue or heap elements; see above for more information. The second argument, .Fa index ,is a pointer to a user-defined function whose arguments area heap element and its index in the heap..Fa Index is intended to provide the user a means of knowing the internal indexof an element in the heap while maintaining the opacity of the implementation;since the user has to know the actual indexes of heap elements in order to use,e.g., .Fn heap_deleteor.Fn heap_element ,the user .Fa indexfunction could store the index in the heap element, itself.  If .Fa indexis .No non\- Ns Dv NULL ,then it is called .Em whenever the index of an element changes, allowing the user to stay up\-to\-datewith index changes.The last argument, .Fa array_size_incrementwill be used, as its name suggests, by.Xr malloc 3or.Xr realloc 3to increment the array which implements the heap; if zero, a default value will be used..PpThe.Fn heap_freefunction frees the given.Ft heap_contextargument .Pq Fa ctx ,which also frees the entire.Nm heap ,if it is.No non\- Ns Dv NULL .The argument.Fa ctxshould be.No non\- Ns Dv NULL ..PpThe .Fn heap_insertfunction is used to insert the new heap element.Fa eltinto the appropriate place (priority\-wise) in the.Ft heapindicated by .Fa ctx(a pointer to a.Ft heap_context ) .If .No non\- Ns Dv NULL ,the user-defined.Ft higher_priorityfunction pointer associated with the indicated .Nm heapis used to determine that.Dq appropriate place ;the highest\-priority elements are at the front of the queue (top ofthe heap).(See the description of .Fn heap_new , above, for more information.).PpThe function.Fn heap_deleteis used to delete the .Fa i\- Ns thelement of the queue (heap), and fixing up the queue (heap) from thatelement onward via the priority as determined by the user functionpointed to by.Ft higher_priority function pointer(see description of.Fn heap_new ,above)..Pp.Fn heap_increased.Pp.Fn heap_decreased.PpThe .Fn heap_elementfunction returns the.Fa i\- Ns thelement of the queue/heap indicated by.Fa ctx ,if possible..PpThe.Fn heap_for_eachfunction provides a mechanism for the user to increment through the entirequeue (heap) and perform some.Fa action upon each of the queue elements.  This.Fa action is pointer to a user\-defined function with two arguments, the first ofwhich should be interpreted by the user's function as a heap element.  The second value passed to the user function is just the.Fa uapargument to .Fn heap_for_each ;this allows the user to specify additional arguments, if necessary, tothe function pointed to by .Fa action ..\" The following requests should be uncommented and.\" used where appropriate.  This next request is.\" for sections 2 and 3 function return values only..Sh RETURN VALUES.Bl -tag -width "heap_decreased()".It Fn heap_new.Dv NULLif unable to .Xr malloc 3a .Ft struct heap_contextor if the.Fa higher_priorityfunction pointer is .Dv NULL ;otherwise, a valid.Ft heap_context .Ns ..It Fn heap_free-1 if .Fa ctxis .Dv NULL (with .Va errnoset to.Dv EINVAL ) ;otherwise, 0..It Fn heap_insert-1 if either.Fa ctxor .Fa eltis .Dv NULL ,or if an attempt to .Xr malloc 3or .Xr realloc 3the heap array fails (with.Va errnoset to .Dv EINVALor .Dv ENOMEM ,respectively).Otherwise, 0..It Fn heap_delete-1 if .Fa ctxis .Dv NULLor .Fa i is out\-of\-range (with.Va errnoset to.Dv EINVAL ) ;0 otherwise..It Fn heap_increasedAs for.Fn heap_delete ..It Fn heap_decreasedAs for.Fn heap_delete ..It Fn heap_elementNULL if .Fa ctx is .Dv NULLor.Fa iout\-of-bounds (with.Va errnoset to.Dv EINVAL ) ;otherwise, a pointer to the.Fa i\- Ns thqueue element..It Fn heap_for_each-1 if either.Fa ctxor .Fa actionis .Dv NULL(with .Va errnoset to.Dv EINVAL ) ;0 otherwise..El.\" This next request is for sections 1, 6, 7 & 8 only.\" .Sh ENVIRONMENT.Sh FILES.Bl -tag -width "heap.h000".It Pa heap.h heap library header file.El.\" .Sh EXAMPLES.\" This next request is for sections 1, 6, 7 & 8 only.\"     (command return values (to shell) and.\"    fprintf/stderr type diagnostics).Sh DIAGNOSTICSPlease refer to.Sx RETURN VALUES ..\" The next request is for sections 2 and 3 error.\" and signal handling only..Sh ERRORSThe variable.Va errnois set by.Fn heap_free , .Fn heap_insert , .Fn heap_delete , .Fn heap_increased , and.Fn heap_decreased under the conditions of invalid input.Pq Dv EINVALor lack of memory.Pq Dv ENOMEM ;please refer to.Sx RETURN VALUES ..Sh SEE ALSO.Xr malloc 3 ,.Xr realloc 3 ..Rs.%A Cormen.%A Leiserson.%A Rivest.%B Introduction to Algorithms.%Q "MIT Press / McGraw Hill".%D 1990.%O ISBN 0\-262\-03141\-8.%P chapter 7.Re.Rs.%A Sedgewick.%B Algorithms, 2nd ed'n.%Q Addison\-Wesley.%D 1988.%O ISBN 0\-201\-06673\-4.%P chapter 11.Re.\" .Sh STANDARDS.\" .Sh HISTORY.Sh AUTHORSThe.Nm heaplibrary was implemented by Bob Halley (halley@vix.com) of Vixie Enterprises, Inc., for the Internet Software consortium, and was adapted fromthe two books listed in the .Sx SEE ALSOsection, above..\" .Sh BUGS

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区不卡在线| 91国偷自产一区二区三区观看| www.欧美日韩国产在线| 在线观看国产精品网站| 日韩欧美国产三级电影视频| 亚洲视频 欧洲视频| 狠狠色综合日日| 欧美猛男男办公室激情| 亚洲欧洲日本在线| 国产一区二三区| 91超碰这里只有精品国产| 椎名由奈av一区二区三区| 精品综合免费视频观看| 欧美日韩精品福利| 亚洲嫩草精品久久| 国产91精品精华液一区二区三区| 91精品国产欧美一区二区成人 | voyeur盗摄精品| 欧美成人伊人久久综合网| 亚洲一区二区三区自拍| 91天堂素人约啪| 日本一区二区成人| 精品一区二区在线观看| 欧美一区二区三区思思人| 一级中文字幕一区二区| 91小视频免费看| 国产精品久久久久久久岛一牛影视 | 色婷婷狠狠综合| 亚洲欧洲日韩一区二区三区| 成人精品一区二区三区四区| 久久久久久久久久电影| 国产一区视频导航| 久久伊99综合婷婷久久伊| 美女爽到高潮91| 欧美一区二区福利在线| 免费高清成人在线| 精品国产麻豆免费人成网站| 六月丁香综合在线视频| 日韩欧美美女一区二区三区| 日韩电影网1区2区| 欧美一二区视频| 国产一区在线观看视频| 国产欧美日韩在线观看| 成人性色生活片| 亚洲人亚洲人成电影网站色| 91同城在线观看| 一级女性全黄久久生活片免费| 色一情一乱一乱一91av| 亚洲国产中文字幕| 欧美一级免费大片| 久久国产福利国产秒拍| 久久精品一二三| 99精品视频一区| 亚洲精品日产精品乱码不卡| 欧美视频第二页| 麻豆国产精品777777在线| 国产亚洲欧美一级| 99久久99久久综合| 亚洲国产美国国产综合一区二区| 日韩一区二区在线免费观看| 国产在线精品免费av| 亚洲欧洲日韩在线| 555夜色666亚洲国产免| 国产很黄免费观看久久| 日韩伦理av电影| 欧美一级电影网站| 成人免费毛片片v| 亚洲国产乱码最新视频| 日韩精品自拍偷拍| 色综合网站在线| 免费av网站大全久久| 欧美激情在线看| 3atv在线一区二区三区| 国产99一区视频免费| 亚洲成人午夜影院| 国产日韩欧美精品一区| 欧美日韩精品一区视频| 国产精品正在播放| 午夜日韩在线观看| 亚洲欧洲精品天堂一级| 日韩一区二区视频在线观看| av亚洲精华国产精华精华| 青青草伊人久久| 中文字幕一区二区三中文字幕| 欧美一区二区三区四区高清| 91麻豆6部合集magnet| 精品一区二区综合| 亚洲成av人片在www色猫咪| 国产天堂亚洲国产碰碰| 欧美一区二区三区日韩视频| 91在线看国产| 国产精品中文字幕日韩精品 | 久久超碰97中文字幕| 日韩一区有码在线| 久久伊人中文字幕| 欧美精品精品一区| 日本精品免费观看高清观看| 国产福利一区在线| 免费观看一级欧美片| 婷婷亚洲久悠悠色悠在线播放| 国产精品毛片久久久久久久| 精品国产一区二区三区不卡| 91麻豆精品国产91久久久更新时间 | 一本到不卡免费一区二区| 国产一本一道久久香蕉| 日韩精品视频网| 亚洲高清免费视频| 亚洲国产精品久久久久秋霞影院 | 成人av电影在线| 国产乱码精品一区二区三区忘忧草| 水蜜桃久久夜色精品一区的特点| 亚洲免费在线观看| 亚洲欧洲av色图| 最新日韩av在线| 国产精品拍天天在线| 日本一区二区视频在线观看| 久久综合av免费| 久久久久久久性| 国产欧美日韩综合| 国产精品久久久久久久久久久免费看| 久久一夜天堂av一区二区三区| 久久久精品蜜桃| 久久精品免视看| 国产亚洲精品aa午夜观看| 中文字幕免费不卡| 国产精品福利在线播放| 中文字幕不卡在线| 1024亚洲合集| 亚洲图片自拍偷拍| 免费看欧美女人艹b| 狠狠色丁香婷婷综合| 国产成人午夜片在线观看高清观看| 国产精品123区| av在线播放成人| 欧美日韩在线免费视频| 欧美高清你懂得| 精品久久国产老人久久综合| 国产日韩欧美麻豆| 亚洲免费观看在线观看| 亚洲第一福利视频在线| 精品一区二区三区免费毛片爱| 国产乱码精品一区二区三区忘忧草| 国产激情一区二区三区桃花岛亚洲| k8久久久一区二区三区| 欧美在线小视频| 日韩三级中文字幕| 国产精品视频看| 天堂影院一区二区| 国产精品亚洲午夜一区二区三区 | 精品一区二区在线播放| 成人国产精品免费观看| 欧美色网一区二区| 欧美精品一区二区三区久久久| 国产精品久久久久久久裸模| 亚洲国产精品欧美一二99| 国产一区视频网站| 在线视频综合导航| 久久综合色8888| 亚洲老妇xxxxxx| 美女视频一区二区| 色域天天综合网| 日韩精品一区在线观看| 亚洲另类一区二区| 国产福利精品一区| 欧美日韩在线观看一区二区| 久久久久久97三级| 午夜不卡av免费| 不卡在线观看av| 欧美成人精精品一区二区频| 亚洲一区二区三区激情| 成人午夜私人影院| 日韩美一区二区三区| 亚洲大片精品永久免费| 99热这里都是精品| 国产亚洲欧美在线| 免费黄网站欧美| 欧美日韩免费视频| 亚洲日本一区二区| 国产精品一二三四五| 日韩欧美精品三级| 五月天亚洲婷婷| 在线观看日韩高清av| 国产精品久久久久久久岛一牛影视| 久久国产日韩欧美精品| 91精品中文字幕一区二区三区| 有坂深雪av一区二区精品| 成人动漫精品一区二区| 久久免费国产精品| 毛片av一区二区| 在线播放一区二区三区| 一区二区欧美视频| eeuss鲁片一区二区三区| 久久亚洲私人国产精品va媚药| 日韩电影一区二区三区| 欧美日韩亚州综合| 亚洲地区一二三色| 欧美日韩视频在线一区二区| 亚洲五码中文字幕| 91免费观看国产| 国产乱子伦一区二区三区国色天香 |