{"id":2272,"date":"2015-04-08T16:55:07","date_gmt":"2015-04-08T08:55:07","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2272"},"modified":"2015-04-10T12:45:31","modified_gmt":"2015-04-10T04:45:31","slug":"tqpagedlist-tlist-%e7%9a%84%e9%ab%98%e6%80%a7%e8%83%bd%e6%9b%bf%e4%bb%a3%e5%93%81","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2272","title":{"rendered":"TQPagedList &#8211; TList \u7684\u9ad8\u6027\u80fd\u66ff\u4ee3\u54c1"},"content":{"rendered":"<p>QDAC \u9879\u76ee\u7ec4\u5f88\u9ad8\u5174\u4e3a\u4f60\u53d1\u5e03\u4e00\u4e2a\u5168\u65b0\u7684\u7c7b\uff1aTQPagedList\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u505a\u4e3a\u7cfb\u7edf\u4e2d TList \u7c7b\u578b\u7684\u5f88\u597d\u7684\u66ff\u4ee3\u54c1\uff0c\u63a5\u53e3\u4fdd\u6301\u548c TList 99.9 \u517c\u5bb9\uff0c\u7edd\u5927\u90e8\u5206\u5e94\u7528\u53ea\u9700\u8981\u66ff\u6362\u7c7b\u540d\u5c31\u53ef\u4ee5\u5e26\u6765\u5f88\u597d\u7684\u6027\u80fd\u63d0\u5347\u3002<\/p>\n<p>\u5173\u4e8e TQPagedList \u548c TList \u7684\u6027\u80fd\u5dee\u5f02\uff0c\u53ef\u4ee5\u53c2\u8003\uff1a\u5747\u8861\u578b\u9009\u624b \u2013<a href=\"https:\/\/blog.qdac.cc\/?p=2259\" target=\"_blank\"> TQPagedList \u4e0e TList \u548c RBTree \u7684\u6027\u80fdPK<\/a>\u3002<\/p>\n<p>\u76f8\u6bd4 TList, TQPagedList \u989d\u5916\u5e26\u6765\u7684\u6539\u8fdb\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u5206\u9875\u5f0f\u5b58\u8d2e\uff0c\u5927\u5e45\u63d0\u9ad8\u63d2\u5165\uff08\u975e\u8ffd\u52a0\uff09\u3001\u5220\u9664\u7684\u6548\u7387\uff1b<\/li>\n<li>\u901a\u8fc7\u8bbe\u7f6e OnCompare \u6216 Sort \u65f6\u63d0\u4f9b\u533f\u540d\u6bd4\u8f83\u51fd\u6570\u6216\u5168\u5c40\u6bd4\u8f83\u51fd\u6570\uff0c\u5feb\u901f\u6784\u5efa\u6709\u5e8f\u6570\u5217\uff1b<\/li>\n<li>Remove \u652f\u6301\u6309\u7d22\u5f15\u79fb\u9664\u5143\u7d20\uff1b<\/li>\n<li>\u5185\u7f6e Find \u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728\u5df2\u7ecf\u6392\u5e8f\u7684\u5217\u8868\u4e2d\u4f7f\u7528\u4e8c\u5206\u6cd5\u5feb\u901f\u67e5\u627e\u5143\u7d20\uff1b<\/li>\n<\/ul>\n<p>TQPagedList \u652f\u6301 Delphi\/C++ Builder 2007 +\u3002\u53e6\u5916\uff0c\u6ce8\u610f\u968f\u673a\u8bbf\u95ee\u6027\u80fd\u8981\u660e\u663e\u5f31\u4e8eTList\uff08TList \u76f4\u63a5\u8bbf\u95ee\u6570\u7ec4\uff0c\u51e0\u4e4e\u6ca1\u6709\u4efb\u4f55\u5f00\u9500\uff0cTPagedList \u9700\u8981\u5148\u7528\u4e8c\u5206\u6cd5\u627e\u5230\u76f8\u5e94\u7684\u9875\uff0c\u7136\u540e\u76f4\u63a5\u8bbf\u95ee\u6570\u7ec4\uff0c\u4e2d\u95f4\u591a\u4e86\u4e00\u6b65\uff09\uff0c\u6d4b\u8bd5\u5b9e\u9645\u6027\u80fd 10 \u4e07\u6761\u968f\u673a\u8bbf\u95ee\u65f6\u95f4\u7ea6\u5728\u51e0\u6beb\u79d2\u7684\u7ea7\u522b\uff0c\u4f46\u4e0e0\u76f8\u6bd4\uff0c\u4e00\u5bf9\u6bd4\u5c31\u6210\u4e86\u65e0\u7a77\u5927\u4e86:)\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e9b\u6027\u80fd\u5bf9\u6bd4\u56fe\u8868\uff1a<\/p>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/insertsorted.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2289\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/insertsorted.png\" alt=\"insertsorted\" width=\"591\" height=\"387\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/insertsorted.png 591w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/insertsorted-300x196.png 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a> <a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/Insertrandom.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2288\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/Insertrandom.png\" alt=\"Insertrandom\" width=\"591\" height=\"387\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/Insertrandom.png 591w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/Insertrandom-300x196.png 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a> <a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/InsertFirst.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2287\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/InsertFirst.png\" alt=\"InsertFirst\" width=\"591\" height=\"392\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/InsertFirst.png 591w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/InsertFirst-300x199.png 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a> <a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/deleterandom.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2286\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/deleterandom.png\" alt=\"deleterandom\" width=\"591\" height=\"387\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/deleterandom.png 591w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/deleterandom-300x196.png 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a> <a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/deletefirst.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2285\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/deletefirst.png\" alt=\"deletefirst\" width=\"591\" height=\"387\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/deletefirst.png 591w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/04\/deletefirst-300x196.png 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>QDAC \u9879\u76ee\u7ec4\u5f88\u9ad8\u5174\u4e3a\u4f60\u53d1\u5e03\u4e00\u4e2a\u5168\u65b0\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,9,21],"tags":[380,382],"class_list":["post-2272","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","category-misc","tag-tlist","tag-382"],"views":3653,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2272"}],"version-history":[{"count":3,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2272\/revisions"}],"predecessor-version":[{"id":2291,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2272\/revisions\/2291"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}