日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

DualCircleList

發(fā)布時(shí)間:2025/4/5 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 DualCircleList 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

文章目錄

    • 1 Linux內(nèi)核鏈表介紹
      • 1.1 移植Linux內(nèi)核鏈表
        • 1.1.1 Linux內(nèi)核鏈表的位置及依賴
        • 1.1.2 移植時(shí)的注意事項(xiàng)
      • 1.2 Linux內(nèi)核鏈表剖析
        • 1.2.1 Linux內(nèi)核鏈表的實(shí)現(xiàn)
        • 1.2.2 Linux內(nèi)核鏈表的結(jié)點(diǎn)定義
        • 1.2.3 Linux內(nèi)核鏈表的創(chuàng)建及初始化
        • 1.2.4 Linux內(nèi)核鏈表的插入操作
        • 1.2.5 Linux內(nèi)核鏈表的刪除操作
        • 1.2.6 Linux內(nèi)核的遍歷
        • 1.2.7 Linux內(nèi)核鏈表的簡(jiǎn)單使用
        • 1.2.8 Linux內(nèi)核鏈表總結(jié)
        • 1.2.9 LinuxList源碼
    • 2 雙向循環(huán)鏈表的實(shí)現(xiàn)
      • 2.1 繼承層次圖
      • 2.2 雙向循環(huán)鏈表的設(shè)計(jì)思路
      • 2.3 代碼實(shí)現(xiàn)
      • 2.4 思考

1 Linux內(nèi)核鏈表介紹

1.1 移植Linux內(nèi)核鏈表

移植Linux內(nèi)核鏈表,使其使用于非GNU編譯器。

1.1.1 Linux內(nèi)核鏈表的位置及依賴

位置:

  • {linux-2.6.39}\\include\linux\list.h

依賴:

  • #include <linux/types.h>
  • #include <linux/stddef.h>
  • #include <linux/poison.h>
  • #include <linux/prefetch.h>

1.1.2 移植時(shí)的注意事項(xiàng)

清除文件間的依賴:

  • 剝離依賴文件中與鏈表實(shí)現(xiàn)相關(guān)的代碼。

清除平臺(tái)相關(guān)代碼(GNU C):

  • ({})
  • typeof
  • _builtin_prefetch
  • static inline

1.2 Linux內(nèi)核鏈表剖析

1.2.1 Linux內(nèi)核鏈表的實(shí)現(xiàn)

Linux內(nèi)核鏈表的實(shí)現(xiàn):

  • 帶頭結(jié)點(diǎn)的雙向循環(huán)鏈表,且頭結(jié)點(diǎn)為表中成員。
  • 頭結(jié)點(diǎn)的next指針指向首結(jié)點(diǎn)。
  • 頭結(jié)點(diǎn)的prev指針指向尾結(jié)點(diǎn)。

1.2.2 Linux內(nèi)核鏈表的結(jié)點(diǎn)定義


問(wèn)題:數(shù)據(jù)放在哪里?

使用struct list_head自定義鏈表結(jié)點(diǎn)。

1.2.3 Linux內(nèi)核鏈表的創(chuàng)建及初始化

1.2.4 Linux內(nèi)核鏈表的插入操作

  • 在鏈表頭部插入:list_add(new, head)。
  • 在鏈表尾部插入:list_add_tail(new, head)。

1.2.5 Linux內(nèi)核鏈表的刪除操作

1.2.6 Linux內(nèi)核的遍歷

  • 正向遍歷:list_for_each(pos, head)。
  • 逆向遍歷:list_for_each_prev(pos, head)。

1.2.7 Linux內(nèi)核鏈表的簡(jiǎn)單使用

#include <stdio.h> #include "LinuxList.h"void list_demo_1() {struct Node{struct list_head head;int value;};struct Node l = {0};struct list_head* list = (struct list_head*)&l;struct list_head* slider = NULL;int i = 0;INIT_LIST_HEAD(list);printf("Insert begin ...\n");for(i=0; i<5; i++){struct Node* n = (struct Node*)malloc(sizeof(struct Node));n->value = i;list_add_tail((struct list_head*)n, list);}list_for_each(slider, list){printf("%d\n", ((struct Node*)slider)->value);}printf("Insert end ...\n");printf("Delete begin ...\n");list_for_each(slider, list){if( ((struct Node*)slider)->value == 3 ){list_del(slider);free(slider);break;}}list_for_each(slider, list){printf("%d\n", ((struct Node*)slider)->value);}printf("Delete end ...\n"); }void list_demo_2() {struct Node{int value;struct list_head head;};struct Node l = {0};struct list_head* list = &l.head;struct list_head* slider = NULL;int i = 0;INIT_LIST_HEAD(list);printf("Insert begin ...\n");for(i=0; i<5; i++){struct Node* n = (struct Node*)malloc(sizeof(struct Node));n->value = i;list_add(&n->head, list);}list_for_each(slider, list){printf("%d\n", list_entry(slider, struct Node, head)->value);}printf("Insert end ...\n");printf("Delete begin ...\n");list_for_each(slider, list){struct Node* n = list_entry(slider, struct Node, head);if( n->value == 3 ){list_del(slider);free(n);break;}}list_for_each(slider, list){printf("%d\n", list_entry(slider, struct Node, head)->value);}printf("Delete end ...\n"); }int main() {// list_demo_1();// list_demo_2();return 0; }

1.2.8 Linux內(nèi)核鏈表總結(jié)

  • Linux內(nèi)核鏈表移植時(shí)需要剔除依賴及平臺(tái)相關(guān)代碼。
  • Linux內(nèi)核鏈表是帶頭結(jié)點(diǎn)的雙向循環(huán)鏈表。
  • 使用Linux內(nèi)核鏈表時(shí)需要自定義鏈表結(jié)點(diǎn)。
    • 將struct list_head作為結(jié)點(diǎn)結(jié)構(gòu)體的第一個(gè)成員或最后一個(gè)成員。
    • struct list_head不是第一個(gè)成員時(shí),需要使用list_entry宏。
    • list_entry的定義中使用了container_of宏。

1.2.9 LinuxList源碼

/* LinuxList.h */#ifndef _LINUX_LIST_H #define _LINUX_LIST_H// #include <linux/types.h> // #include <linux/stddef.h> // #include <linux/poison.h> // #include <linux/prefetch.h>#ifndef offsetof #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #endif#ifndef container_of #define container_of(ptr, type, member) ((type *)((char *)ptr - offsetof(type,member))) #endif#define prefetch(x) ((void)x)#define LIST_POISON1 (NULL) #define LIST_POISON2 (NULL)struct list_head {struct list_head *next, *prev; };struct hlist_head {struct hlist_node *first; };struct hlist_node {struct hlist_node *next, **pprev; };/** Simple doubly linked list implementation.** Some of the internal functions ("__xxx") are useful when* manipulating whole lists rather than single entries, as* sometimes we already know the next/prev entries and we can* generate better code by using them directly rather than* using the generic single-entry routines.*/#define LIST_HEAD_INIT(name) { &(name), &(name) }#define LIST_HEAD(name) \struct list_head name = LIST_HEAD_INIT(name)static void INIT_LIST_HEAD(struct list_head *list) {list->next = list;list->prev = list; }/** Insert a new entry between two known consecutive entries.** This is only for internal list manipulation where we know* the prev/next entries already!*/ #ifndef CONFIG_DEBUG_LIST static void __list_add(struct list_head *new,struct list_head *prev,struct list_head *next) {next->prev = new;new->next = next;new->prev = prev;prev->next = new; } #else extern void __list_add(struct list_head *new,struct list_head *prev,struct list_head *next); #endif/*** list_add - add a new entry* @new: new entry to be added* @head: list head to add it after** Insert a new entry after the specified head.* This is good for implementing stacks.*/ static void list_add(struct list_head *new, struct list_head *head) {__list_add(new, head, head->next); }/*** list_add_tail - add a new entry* @new: new entry to be added* @head: list head to add it before** Insert a new entry before the specified head.* This is useful for implementing queues.*/ static void list_add_tail(struct list_head *new, struct list_head *head) {__list_add(new, head->prev, head); }/** Delete a list entry by making the prev/next entries* point to each other.** This is only for internal list manipulation where we know* the prev/next entries already!*/ static void __list_del(struct list_head * prev, struct list_head * next) {next->prev = prev;prev->next = next; }/*** list_del - deletes entry from list.* @entry: the element to delete from the list.* Note: list_empty() on entry does not return true after this, the entry is* in an undefined state.*/ #ifndef CONFIG_DEBUG_LIST static void __list_del_entry(struct list_head *entry) {__list_del(entry->prev, entry->next); }static void list_del(struct list_head *entry) {__list_del(entry->prev, entry->next);entry->next = LIST_POISON1;entry->prev = LIST_POISON2; } #else extern void __list_del_entry(struct list_head *entry); extern void list_del(struct list_head *entry); #endif/*** list_replace - replace old entry by new one* @old : the element to be replaced* @new : the new element to insert** If @old was empty, it will be overwritten.*/ static void list_replace(struct list_head *old,struct list_head *new) {new->next = old->next;new->next->prev = new;new->prev = old->prev;new->prev->next = new; }static void list_replace_init(struct list_head *old,struct list_head *new) {list_replace(old, new);INIT_LIST_HEAD(old); }/*** list_del_init - deletes entry from list and reinitialize it.* @entry: the element to delete from the list.*/ static void list_del_init(struct list_head *entry) {__list_del_entry(entry);INIT_LIST_HEAD(entry); }/*** list_move - delete from one list and add as another's head* @list: the entry to move* @head: the head that will precede our entry*/ static void list_move(struct list_head *list, struct list_head *head) {__list_del_entry(list);list_add(list, head); }/*** list_move_tail - delete from one list and add as another's tail* @list: the entry to move* @head: the head that will follow our entry*/ static void list_move_tail(struct list_head *list,struct list_head *head) {__list_del_entry(list);list_add_tail(list, head); }/*** list_is_last - tests whether @list is the last entry in list @head* @list: the entry to test* @head: the head of the list*/ static int list_is_last(const struct list_head *list,const struct list_head *head) {return list->next == head; }/*** list_empty - tests whether a list is empty* @head: the list to test.*/ static int list_empty(const struct list_head *head) {return head->next == head; }/*** list_empty_careful - tests whether a list is empty and not being modified* @head: the list to test** Description:* tests whether a list is empty _and_ checks that no other CPU might be* in the process of modifying either member (next or prev)** NOTE: using list_empty_careful() without synchronization* can only be safe if the only activity that can happen* to the list entry is list_del_init(). Eg. it cannot be used* if another CPU could re-list_add() it.*/ static int list_empty_careful(const struct list_head *head) {struct list_head *next = head->next;return (next == head) && (next == head->prev); }/*** list_rotate_left - rotate the list to the left* @head: the head of the list*/ static void list_rotate_left(struct list_head *head) {struct list_head *first;if (!list_empty(head)) {first = head->next;list_move_tail(first, head);} }/*** list_is_singular - tests whether a list has just one entry.* @head: the list to test.*/ static int list_is_singular(const struct list_head *head) {return !list_empty(head) && (head->next == head->prev); }static void __list_cut_position(struct list_head *list,struct list_head *head, struct list_head *entry) {struct list_head *new_first = entry->next;list->next = head->next;list->next->prev = list;list->prev = entry;entry->next = list;head->next = new_first;new_first->prev = head; }/*** list_cut_position - cut a list into two* @list: a new list to add all removed entries* @head: a list with entries* @entry: an entry within head, could be the head itself* and if so we won't cut the list** This helper moves the initial part of @head, up to and* including @entry, from @head to @list. You should* pass on @entry an element you know is on @head. @list* should be an empty list or a list you do not care about* losing its data.**/ static void list_cut_position(struct list_head *list,struct list_head *head, struct list_head *entry) {if (list_empty(head))return;if (list_is_singular(head) &&(head->next != entry && head != entry))return;if (entry == head)INIT_LIST_HEAD(list);else__list_cut_position(list, head, entry); }static void __list_splice(const struct list_head *list,struct list_head *prev,struct list_head *next) {struct list_head *first = list->next;struct list_head *last = list->prev;first->prev = prev;prev->next = first;last->next = next;next->prev = last; }/*** list_splice - join two lists, this is designed for stacks* @list: the new list to add.* @head: the place to add it in the first list.*/ static void list_splice(const struct list_head *list,struct list_head *head) {if (!list_empty(list))__list_splice(list, head, head->next); }/*** list_splice_tail - join two lists, each list being a queue* @list: the new list to add.* @head: the place to add it in the first list.*/ static void list_splice_tail(struct list_head *list,struct list_head *head) {if (!list_empty(list))__list_splice(list, head->prev, head); }/*** list_splice_init - join two lists and reinitialise the emptied list.* @list: the new list to add.* @head: the place to add it in the first list.** The list at @list is reinitialised*/ static void list_splice_init(struct list_head *list,struct list_head *head) {if (!list_empty(list)) {__list_splice(list, head, head->next);INIT_LIST_HEAD(list);} }/*** list_splice_tail_init - join two lists and reinitialise the emptied list* @list: the new list to add.* @head: the place to add it in the first list.** Each of the lists is a queue.* The list at @list is reinitialised*/ static void list_splice_tail_init(struct list_head *list,struct list_head *head) {if (!list_empty(list)) {__list_splice(list, head->prev, head);INIT_LIST_HEAD(list);} }/*** list_entry - get the struct for this entry* @ptr: the &struct list_head pointer.* @type: the type of the struct this is embedded in.* @member: the name of the list_struct within the struct.*/ #define list_entry(ptr, type, member) \container_of(ptr, type, member)/*** list_first_entry - get the first element from a list* @ptr: the list head to take the element from.* @type: the type of the struct this is embedded in.* @member: the name of the list_struct within the struct.** Note, that list is expected to be not empty.*/ #define list_first_entry(ptr, type, member) \list_entry((ptr)->next, type, member)/*** list_for_each - iterate over a list* @pos: the &struct list_head to use as a loop cursor.* @head: the head for your list.*/ #define list_for_each(pos, head) \for (pos = (head)->next; prefetch(pos->next), pos != (head); \pos = pos->next)/*** __list_for_each - iterate over a list* @pos: the &struct list_head to use as a loop cursor.* @head: the head for your list.** This variant differs from list_for_each() in that it's the* simplest possible list iteration code, no prefetching is done.* Use this for code that knows the list to be very short (empty* or 1 entry) most of the time.*/ #define __list_for_each(pos, head) \for (pos = (head)->next; pos != (head); pos = pos->next)/*** list_for_each_prev - iterate over a list backwards* @pos: the &struct list_head to use as a loop cursor.* @head: the head for your list.*/ #define list_for_each_prev(pos, head) \for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \pos = pos->prev)/*** list_for_each_safe - iterate over a list safe against removal of list entry* @pos: the &struct list_head to use as a loop cursor.* @n: another &struct list_head to use as temporary storage* @head: the head for your list.*/ #define list_for_each_safe(pos, n, head) \for (pos = (head)->next, n = pos->next; pos != (head); \pos = n, n = pos->next)/*** list_for_each_prev_safe - iterate over a list backwards safe against removal of list entry* @pos: the &struct list_head to use as a loop cursor.* @n: another &struct list_head to use as temporary storage* @head: the head for your list.*/ #define list_for_each_prev_safe(pos, n, head) \for (pos = (head)->prev, n = pos->prev; \prefetch(pos->prev), pos != (head); \pos = n, n = pos->prev)/*** list_for_each_entry - iterate over list of given type* @pos: the type * to use as a loop cursor.* @head: the head for your list.* @member: the name of the list_struct within the struct.*/ #define list_for_each_entry(pos, head, member) \for (pos = list_entry((head)->next, typeof(*pos), member); \prefetch(pos->member.next), &pos->member != (head); \pos = list_entry(pos->member.next, typeof(*pos), member))/*** list_for_each_entry_reverse - iterate backwards over list of given type.* @pos: the type * to use as a loop cursor.* @head: the head for your list.* @member: the name of the list_struct within the struct.*/ #define list_for_each_entry_reverse(pos, head, member) \for (pos = list_entry((head)->prev, typeof(*pos), member); \prefetch(pos->member.prev), &pos->member != (head); \pos = list_entry(pos->member.prev, typeof(*pos), member))/*** list_prepare_entry - prepare a pos entry for use in list_for_each_entry_continue()* @pos: the type * to use as a start point* @head: the head of the list* @member: the name of the list_struct within the struct.** Prepares a pos entry for use as a start point in list_for_each_entry_continue().*/ #define list_prepare_entry(pos, head, member) \((pos) ? : list_entry(head, typeof(*pos), member))/*** list_for_each_entry_continue - continue iteration over list of given type* @pos: the type * to use as a loop cursor.* @head: the head for your list.* @member: the name of the list_struct within the struct.** Continue to iterate over list of given type, continuing after* the current position.*/ #define list_for_each_entry_continue(pos, head, member) \for (pos = list_entry(pos->member.next, typeof(*pos), member); \prefetch(pos->member.next), &pos->member != (head); \pos = list_entry(pos->member.next, typeof(*pos), member))/*** list_for_each_entry_continue_reverse - iterate backwards from the given point* @pos: the type * to use as a loop cursor.* @head: the head for your list.* @member: the name of the list_struct within the struct.** Start to iterate over list of given type backwards, continuing after* the current position.*/ #define list_for_each_entry_continue_reverse(pos, head, member) \for (pos = list_entry(pos->member.prev, typeof(*pos), member); \prefetch(pos->member.prev), &pos->member != (head); \pos = list_entry(pos->member.prev, typeof(*pos), member))/*** list_for_each_entry_from - iterate over list of given type from the current point* @pos: the type * to use as a loop cursor.* @head: the head for your list.* @member: the name of the list_struct within the struct.** Iterate over list of given type, continuing from current position.*/ #define list_for_each_entry_from(pos, head, member) \for (; prefetch(pos->member.next), &pos->member != (head); \pos = list_entry(pos->member.next, typeof(*pos), member))/*** list_for_each_entry_safe - iterate over list of given type safe against removal of list entry* @pos: the type * to use as a loop cursor.* @n: another type * to use as temporary storage* @head: the head for your list.* @member: the name of the list_struct within the struct.*/ #define list_for_each_entry_safe(pos, n, head, member) \for (pos = list_entry((head)->next, typeof(*pos), member), \n = list_entry(pos->member.next, typeof(*pos), member); \&pos->member != (head); \pos = n, n = list_entry(n->member.next, typeof(*n), member))/*** list_for_each_entry_safe_continue - continue list iteration safe against removal* @pos: the type * to use as a loop cursor.* @n: another type * to use as temporary storage* @head: the head for your list.* @member: the name of the list_struct within the struct.** Iterate over list of given type, continuing after current point,* safe against removal of list entry.*/ #define list_for_each_entry_safe_continue(pos, n, head, member) \for (pos = list_entry(pos->member.next, typeof(*pos), member), \n = list_entry(pos->member.next, typeof(*pos), member); \&pos->member != (head); \pos = n, n = list_entry(n->member.next, typeof(*n), member))/*** list_for_each_entry_safe_from - iterate over list from current point safe against removal* @pos: the type * to use as a loop cursor.* @n: another type * to use as temporary storage* @head: the head for your list.* @member: the name of the list_struct within the struct.** Iterate over list of given type from current point, safe against* removal of list entry.*/ #define list_for_each_entry_safe_from(pos, n, head, member) \for (n = list_entry(pos->member.next, typeof(*pos), member); \&pos->member != (head); \pos = n, n = list_entry(n->member.next, typeof(*n), member))/*** list_for_each_entry_safe_reverse - iterate backwards over list safe against removal* @pos: the type * to use as a loop cursor.* @n: another type * to use as temporary storage* @head: the head for your list.* @member: the name of the list_struct within the struct.** Iterate backwards over list of given type, safe against removal* of list entry.*/ #define list_for_each_entry_safe_reverse(pos, n, head, member) \for (pos = list_entry((head)->prev, typeof(*pos), member), \n = list_entry(pos->member.prev, typeof(*pos), member); \&pos->member != (head); \pos = n, n = list_entry(n->member.prev, typeof(*n), member))/*** list_safe_reset_next - reset a stale list_for_each_entry_safe loop* @pos: the loop cursor used in the list_for_each_entry_safe loop* @n: temporary storage used in list_for_each_entry_safe* @member: the name of the list_struct within the struct.** list_safe_reset_next is not safe to use in general if the list may be* modified concurrently (eg. the lock is dropped in the loop body). An* exception to this is if the cursor element (pos) is pinned in the list,* and list_safe_reset_next is called after re-taking the lock and before* completing the current iteration of the loop body.*/ #define list_safe_reset_next(pos, n, member) \n = list_entry(pos->member.next, typeof(*pos), member)/** Double linked lists with a single pointer list head.* Mostly useful for hash tables where the two pointer list head is* too wasteful.* You lose the ability to access the tail in O(1).*/#define HLIST_HEAD_INIT { .first = NULL } #define HLIST_HEAD(name) struct hlist_head name = { .first = NULL } #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL) static void INIT_HLIST_NODE(struct hlist_node *h) {h->next = NULL;h->pprev = NULL; }static int hlist_unhashed(const struct hlist_node *h) {return !h->pprev; }static int hlist_empty(const struct hlist_head *h) {return !h->first; }static void __hlist_del(struct hlist_node *n) {struct hlist_node *next = n->next;struct hlist_node **pprev = n->pprev;*pprev = next;if (next)next->pprev = pprev; }static void hlist_del(struct hlist_node *n) {__hlist_del(n);n->next = LIST_POISON1;n->pprev = LIST_POISON2; }static void hlist_del_init(struct hlist_node *n) {if (!hlist_unhashed(n)) {__hlist_del(n);INIT_HLIST_NODE(n);} }static void hlist_add_head(struct hlist_node *n, struct hlist_head *h) {struct hlist_node *first = h->first;n->next = first;if (first)first->pprev = &n->next;h->first = n;n->pprev = &h->first; }/* next must be != NULL */ static void hlist_add_before(struct hlist_node *n,struct hlist_node *next) {n->pprev = next->pprev;n->next = next;next->pprev = &n->next;*(n->pprev) = n; }static void hlist_add_after(struct hlist_node *n,struct hlist_node *next) {next->next = n->next;n->next = next;next->pprev = &n->next;if(next->next)next->next->pprev = &next->next; }/* after that we'll appear to be on some hlist and hlist_del will work */ static void hlist_add_fake(struct hlist_node *n) {n->pprev = &n->next; }/** Move a list from one list head to another. Fixup the pprev* reference of the first entry if it exists.*/ static void hlist_move_list(struct hlist_head *old,struct hlist_head *new) {new->first = old->first;if (new->first)new->first->pprev = &new->first;old->first = NULL; }#define hlist_entry(ptr, type, member) container_of(ptr,type,member)#define hlist_for_each(pos, head) \for (pos = (head)->first; pos && ({ prefetch(pos->next); 1; }); \pos = pos->next)#define hlist_for_each_safe(pos, n, head) \for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \pos = n)/*** hlist_for_each_entry - iterate over list of given type* @tpos: the type * to use as a loop cursor.* @pos: the &struct hlist_node to use as a loop cursor.* @head: the head for your list.* @member: the name of the hlist_node within the struct.*/ #define hlist_for_each_entry(tpos, pos, head, member) \for (pos = (head)->first; \pos && ({ prefetch(pos->next); 1;}) && \({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \pos = pos->next)/*** hlist_for_each_entry_continue - iterate over a hlist continuing after current point* @tpos: the type * to use as a loop cursor.* @pos: the &struct hlist_node to use as a loop cursor.* @member: the name of the hlist_node within the struct.*/ #define hlist_for_each_entry_continue(tpos, pos, member) \for (pos = (pos)->next; \pos && ({ prefetch(pos->next); 1;}) && \({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \pos = pos->next)/*** hlist_for_each_entry_from - iterate over a hlist continuing from current point* @tpos: the type * to use as a loop cursor.* @pos: the &struct hlist_node to use as a loop cursor.* @member: the name of the hlist_node within the struct.*/ #define hlist_for_each_entry_from(tpos, pos, member) \for (; pos && ({ prefetch(pos->next); 1;}) && \({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \pos = pos->next)/*** hlist_for_each_entry_safe - iterate over list of given type safe against removal of list entry* @tpos: the type * to use as a loop cursor.* @pos: the &struct hlist_node to use as a loop cursor.* @n: another &struct hlist_node to use as temporary storage* @head: the head for your list.* @member: the name of the hlist_node within the struct.*/ #define hlist_for_each_entry_safe(tpos, pos, n, head, member) \for (pos = (head)->first; \pos && ({ n = pos->next; 1; }) && \({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \pos = n)#endif

2 雙向循環(huán)鏈表的實(shí)現(xiàn)

直接使用Linux內(nèi)核鏈表實(shí)現(xiàn)雙向循環(huán)鏈表。

2.1 繼承層次圖

2.2 雙向循環(huán)鏈表的設(shè)計(jì)思路

數(shù)據(jù)結(jié)點(diǎn)之間在邏輯上構(gòu)成雙向循環(huán)鏈表,頭結(jié)點(diǎn)僅用于結(jié)點(diǎn)的定位。

實(shí)現(xiàn)思路:

  • 通過(guò)模板定義DualCircleList類,繼承自DualLinkList類。
  • 在DualCircleList內(nèi)部使用Linux內(nèi)核鏈表進(jìn)行實(shí)現(xiàn)。
  • 使用struct list_head定義DualCircleList的頭結(jié)點(diǎn)。
  • 特殊處理:循環(huán)遍歷時(shí)忽略頭結(jié)點(diǎn)。

實(shí)現(xiàn)要點(diǎn):

  • 通過(guò)list_head進(jìn)行目標(biāo)結(jié)點(diǎn)定位(position(i))。
  • 通過(guò)list_entry將list_head指針轉(zhuǎn)換為目標(biāo)結(jié)點(diǎn)指針。
  • 通過(guò)list_for_each實(shí)現(xiàn)int find(const T& e)函數(shù)。
  • 遍歷函數(shù)中的next()和pre()需要考慮跳過(guò)頭結(jié)點(diǎn)。

2.3 代碼實(shí)現(xiàn)

DualCircleList.h

#ifndef DUALCIRCLELIST_H #define DUALCIRCLELIST_H#include "CircleList.h" #include "LinuxList.h" #include "Exception.h"namespace LemonLib {template <typename T> class DualCircleList : public CircleList<T> { protected:struct Node{list_head head;T value;};list_head m_header;list_head* m_current;list_head* position(int i) const{list_head* ret = const_cast<list_head*>(&m_header);for (int p=0; p<i; p++){ret = ret->next;}return ret;}int mod(int i) const{return (this->m_length == 0) ? 0 : (i % this->m_length);}public:DualCircleList(){this->m_length = 0;this->m_step = 0;m_current = NULL;INIT_LIST_HEAD(&m_header);}bool insert(const T& e){insert(this->m_length, e);}bool insert(int i, const T& e){bool ret = true;Node* node = new Node();if (node != NULL){i = i % (this->m_length + 1);node->value = e;list_add_tail(&node->head, position(i)->next);this->m_length++;}else{THROW_EXCEPTION(NoEnoughMemoryException, "No enough memory to insert new element ...");}return ret;}bool remove(int i){bool ret = true;i = mod(i);ret = (0 <= i) && (i < this->m_length);if (ret){list_head* toDel = position(i)->next;if (m_current == toDel){m_current = m_current->next;}list_del(toDel);this->m_length--;delete list_entry(toDel, Node, head);}return ret;}bool set(int i, const T& e){bool ret = true;i = mod(i);ret = (0 <= i) && (i < this->m_length);if (ret){list_entry(position(i)->next, Node, head)->value = e;}return ret;}T get(int i) const{T ret;if (get(i, ret)){return ret;}else{THROW_EXCEPTION(InvalidParameterException, "Invalid parameter in get element ...");}}bool get(int i, T& e) const{bool ret = true;i = mod(i);ret = (0 <= i) && (i < this->m_length);if (ret){e = list_entry(position(i)->next, Node, head)->value;}return ret;}int find(const T& e) const{int ret = -1;int i = 0;list_head* slider = NULL;list_for_each(slider, &m_header){if (list_entry(slider, Node, head)->value == e){ret = i;break;}i++;}return ret;}int length() const{return this->m_length;}void clear(){while (this->m_length > 0){remove(0);}}bool move(int i, int step = 1){bool ret = (step > 0);i = mod(i);ret = ret && (0 <= i) && (i < this->m_length);if (ret){m_current = position(i)->next;this->m_step = step;}return ret;}bool end(){return (m_current == NULL) || (this->m_length == 0);}T current(){if (!end()){return list_entry(m_current, Node, head)->value;}else{THROW_EXCEPTION(InvalidOperationException, "invlaid to get current val...");}}bool next(){int i = 0;while ((i < this->m_step) && (!end())){if (m_current != &m_header){m_current = m_current->next;i++;}else{m_current = m_current->next;}}if (m_current == &m_header){m_current = m_current->next;}return (i == this->m_step);}bool prev(){int i = 0;while ((i < this->m_step) && (!end())){if (m_current != &m_header){m_current = m_current->prev;i++;}else{m_current = m_current->prev;}}if (m_current == &m_header){m_current = m_current->prev;}return (i == this->m_step);}~DualCircleList(){clear();}};}#endif // DUALCIRCLELIST_H

main.cpp

#include <iostream>#include "SmartPointer.h" #include "Exception.h" #include "Object.h" #include "List.h" #include "SeqList.h" #include "StaticList.h" #include "DynamicList.h" #include "Array.h" #include "StaticArray.h" #include "DynamicArray.h" #include "LinkList.h" #include "StaticLinkList.h" #include "Pointer.h" #include "SmartPointer.h" #include "SharedPointer.h" #include "CircleList.h" #include "DualLinkList.h" #include "StaticDualLinkList.h" #include "DualCircleList.h"using namespace std; using namespace LemonLib;int main() {DualCircleList<int> dl;for (int i=0; i<5; i++){dl.insert(i);}dl.move(dl.length()-1);for (int i=0; i<dl.length(); i++){cout << dl.current() << endl;dl.prev();}cout << dl.find(5) << endl;cout << dl.find(3) << endl;return 0; }

2.4 思考

如下代碼中的pn1和pn2是否相等?為什么?

不相等,因?yàn)橛刑摵瘮?shù)指針的存在導(dǎo)致pn1和pn2不相等。

總結(jié)

以上是生活随笔為你收集整理的DualCircleList的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

久久久免费视频播放 | 国产精品18久久久久久久 | 黄色大片免费网站 | 久久天天躁夜夜躁狠狠躁2022 | 91大神精品视频在线观看 | 久草精品视频 | www.亚洲精品| 亚洲三级在线 | 久久久精品国产一区二区 | 一区二区不卡高清 | 特级西西444www高清大视频 | 91在线操 | 日韩av视屏 | 91av视频在线播放 | 色wwwww| av高清不卡 | 久久成人精品电影 | 欧美日韩性视频 | 在线免费观看视频 | 国产高清不卡 | 视频一区二区国产 | 精品一区二区三区香蕉蜜桃 | 久久久99国产精品免费 | 碰超在线 | 在线观看精品国产 | 99久久久国产精品免费99 | 丁香六月激情 | 波多野结衣综合网 | 欧美日韩激情视频8区 | 国产精品黄色影片导航在线观看 | 一区二区三区免费网站 | 99久久综合狠狠综合久久 | .国产精品成人自产拍在线观看6 | 毛片a级片 | 久久狠狠婷婷 | 国产精品黄色影片导航在线观看 | 久热电影 | 日本一区二区免费在线观看 | 91av片 | www国产亚洲 | 91精品91| 天天操夜夜拍 | 视频在线观看日韩 | 日韩免费久久 | 欧美日韩国产精品久久 | 激情影音 | 丰满少妇在线观看 | 久久er99热精品一区二区 | 插插插色综合 | 婷婷伊人综合 | 一级成人免费视频 | www夜夜操com | 成人资源在线观看 | 成人国产精品久久久 | 天天插天天爱 | 国产生活一级片 | 久久久久久久久久久久久久电影 | 欧美日韩中文在线观看 | 91九色国产在线 | 亚洲免费av观看 | 在线免费观看国产黄色 | 超碰在线97观看 | 成人在线视频在线观看 | 色婷五月天 | 91亚洲国产成人久久精品网站 | 久久 地址| 中文字幕在线字幕中文 | 五月激情久久 | 久久性生活片 | 欧美在线观看视频一区二区三区 | 91片黄在线观看 | 99国产一区二区三精品乱码 | 在线黄网站| 天天综合导航 | 亚洲黄色av一区 | 欧美一区免费在线观看 | 久久99久国产精品黄毛片入口 | 六月婷色 | 三上悠亚一区二区在线观看 | 久久伦理影院 | 欧美a在线看 | 国产福利小视频在线 | 中文字幕在线电影 | 99视频精品 | 欧美一级黄色视屏 | www视频免费在线观看 | 国产无套一区二区三区久久 | 精品在线视频播放 | 成人网中文字幕 | 狠狠色丁香婷婷综合久小说久 | 国产精品久久久精品 | 亚洲精品视频在线观看视频 | 91在线视频在线观看 | 96视频在线| 亚洲人成影院在线 | 亚洲,播放 | 日韩av影片在线观看 | 中文字幕丝袜美腿 | 一个色综合网站 | 久久国产欧美日韩 | 91麻豆网站 | 日韩av看片 | 伊人成人激情 | 日韩一二区在线观看 | 国产成人精品一区二区三区福利 | 91视频在线看 | 色网免费观看 | 精品一区精品二区高清 | 日本精品在线看 | 国产精品成人国产乱 | 久久久免费精品国产一区二区 | 一区二区三区四区久久 | 久久乐九色婷婷综合色狠狠182 | 蜜臀精品久久久久久蜜臀 | 97偷拍在线视频 | 99精品视频一区二区 | 久久免费福利视频 | 超碰免费av | 91麻豆精品国产自产在线 | 免费网站色| 中文字幕一区二区三区四区久久 | 少妇视频一区 | 亚洲区精品 | 成年人在线播放视频 | 天天天天天操 | 91久久在线观看 | 日韩高清三区 | 日女人免费视频 | av免费在线观看网站 | 91久久爱热色涩涩 | 91桃花视频 | 亚洲国产剧情 | 九九热视频在线 | 国产高清亚洲 | 久久国产精品99国产精 | 国产自产在线视频 | 国产91丝袜在线播放动漫 | 欧美在线视频日韩 | 99久久婷婷国产精品综合 | 免费麻豆视频 | 日本夜夜草视频网站 | 97在线观看免费高清完整版在线观看 | 欧美日一级片 | www.国产在线观看 | 一级免费看视频 | 久久久久久美女 | 日韩一区二区三区免费视频 | 国产精品免费大片视频 | 欧美成天堂网地址 | 免费黄色看片 | 国产麻豆剧传媒免费观看 | 四虎影视成人 | 国产精品免费久久久 | 伊人婷婷| 色黄视频免费观看 | 91视视频在线直接观看在线看网页在线看 | 欧美激情视频一区二区三区免费 | 啪啪肉肉污av国网站 | 91精品播放| 日韩理论在线视频 | 欧美日韩在线观看视频 | 亚洲自拍自偷 | 成人黄色小说网 | 国产精品观看视频 | 亚洲视频axxx | 国产视频一区二区在线播放 | 国产中文字幕在线观看 | 国产精品免费在线播放 | 九九九九九九精品 | 97狠狠干 | 天天射色综合 | 日韩高清精品免费观看 | 香蕉视频久久久 | 成人在线免费看视频 | 人人干人人爽 | 九九九热精品免费视频观看 | 五月婷婷在线观看视频 | 日韩久久一区 | 久久久免费电影 | 三级黄色免费 | 91在线小视频 | 91精品欧美 | 国产福利小视频在线 | 久久久久久久福利 | 国产一区高清在线 | 国产91aaa| 在线观影网站 | 美女福利视频 | 久久精品高清视频 | 国产高h视频 | 成人免费观看网站 | av网站在线观看免费 | 国产精品毛片一区二区 | 久久精品网站视频 | 成人一区影院 | 97电影在线看视频 | aⅴ视频在线 | 四虎成人av | 国产麻豆精品95视频 | 精品一区二区在线观看 | av电影免费观看 | 国产成人精品综合久久久久99 | 欧美va天堂在线电影 | 美女视频又黄又免费 | 天天综合日日夜夜 | 久久婷婷亚洲 | 999超碰 | 日韩va欧美va亚洲va久久 | 丁香婷婷激情啪啪 | 国产婷婷久久 | 国产精品久久久一区二区三区网站 | 亚洲午夜剧场 | av在线之家电影网站 | 精品视频999 | 日韩爱爱片| 亚洲色影爱久久精品 | 丁五月婷婷 | 热久久最新地址 | 丰满少妇高潮在线观看 | 日韩精品视频免费 | 色橹橹欧美在线观看视频高清 | 国产精品久久久区三区天天噜 | 免费a级大片 | 久久在线免费视频 | 国产精品国产自产拍高清av | av高清免费在线 | 国产精品免费一区二区三区在线观看 | 在线免费观看av网站 | 亚洲综合在线播放 | 国产黄色片一级三级 | 欧美日韩在线视频免费 | 国产美女免费视频 | 性日韩欧美在线视频 | 欧美精品天堂 | 免费福利在线观看 | 91豆麻精品91久久久久久 | av免费电影在线观看 | 黄色在线观看网站 | 蜜臀av性久久久久蜜臀aⅴ流畅 | av888av.com | 国产精品a久久 | 中文字幕欧美日韩va免费视频 | 亚洲激情校园春色 | 在线视频日韩一区 | 中文字幕麻豆 | 性色xxxxhd | 麻豆视频入口 | 久久综合色天天久久综合图片 | 国产精品久久久久aaaa | 黄色99视频 | www.99av| 色 中文字幕 | 国产一区影院 | 五月婷婷色播 | 五月激情天 | 黄av免费| 色999五月色| 国产女人40精品一区毛片视频 | 天堂av官网| a视频在线观看免费 | 国产高清视频在线播放一区 | 最新av在线播放 | 99久久精品久久亚洲精品 | 久久久国产精品麻豆 | 国产精品6 | 久久99热久久99精品 | 国产精品wwwwww | 国产精品一区二区美女视频免费看 | 97爱爱爱 | 国产精品日韩久久久久 | 久久精品视频在线播放 | 亚洲成av人片在线观看 | 视频91在线 | 日韩中文字幕国产 | 日韩亚洲在线观看 | 日日摸日日 | 2023天天干 | 中文字幕在线免费看 | 欧美日韩国产一区二区三区 | 国产v欧美 | 天堂网一区 | 超碰在线人人爱 | 456成人精品影院 | 99精品在线 | 久久撸在线视频 | 色香com.| 麻豆视频免费在线观看 | 国产五月色婷婷六月丁香视频 | 久草亚洲视频 | 欧美亚洲xxx| 国产99在线| 天天操天天色综合 | 久久99精品国产麻豆宅宅 | 免费观看黄色av | 黄污网站在线 | 丁香花在线观看免费完整版视频 | 91视频三区| 丰满少妇麻豆av | 天天操天天玩 | 成人免费在线观看电影 | 天天操导航 | 成人黄色片在线播放 | 国产免费作爱视频 | 国产精品久久久久亚洲影视 | av永久网址| 婷婷成人亚洲综合国产xv88 | 色综合久久久网 | 欧美a级在线播放 | 麻豆免费在线视频 | 国产一区二区精品久久 | 超碰在线97观看 | 久久天堂亚洲 | 亚洲区精品视频 | 在线亚洲人成电影网站色www | 国产亚洲精品美女久久 | 国产精品免费看久久久8精臀av | 国产精国产精品 | 亚洲成av | 在线观看国产成人av片 | 国内精品在线观看视频 | 日韩欧美在线国产 | 色五月色开心色婷婷色丁香 | 精品一区二区三区久久 | 人操人 | 色网站国产精品 | 亚洲婷婷伊人 | 久久免费视频精品 | 伊人永久在线 | 精品国产一区二区三区日日嗨 | 激情婷婷久久 | 成人网在线免费视频 | 亚洲aⅴ乱码精品成人区 | 999超碰| 久久久国产电影 | 国产精品久久久久永久免费看 | 精品国产成人av | 91网在线 | 国产精品ssss在线亚洲 | 99在线视频精品 | 亚欧日韩成人h片 | 永久免费精品视频 | 深夜免费福利 | 国产在线一区二区 | 日本精品在线看 | 成人在线黄色 | 激情综合五月 | 国产精品美女免费视频 | 国产 一区二区三区 在线 | 久久综合色影院 | 日韩免费在线观看网站 | 中文字幕免费在线 | 最新日韩视频在线观看 | 久久综合久久伊人 | 日韩精品第一区 | 久爱综合 | 波多野结衣电影久久 | 久久久久黄 | 亚洲理论片在线观看 | 日韩视频免费观看高清完整版在线 | 成人h在线 | 亚洲国产一区在线观看 | 午夜精品一区二区三区在线播放 | 五月综合| 91精品国产欧美一区二区成人 | 国产精品自在欧美一区 | 国产香蕉视频在线观看 | 69国产精品视频免费观看 | 精品国产一区二区三区四区在线观看 | 黄色的网站在线 | av中文电影 | 久久久久久久免费看 | 亚洲精品五月 | 伊人狠狠干| 亚洲一区久久 | 国产精品免费不卡 | www.玖玖玖 | 国产成人a亚洲精品 | 国产午夜麻豆影院在线观看 | 欧美精品首页 | 国产亚洲精品久久19p | 99久久久国产精品美女 | 国产成人久久精品77777综合 | 久久爱导航| 国产91勾搭技师精品 | 亚洲国产日韩欧美在线 | 九九99| 美女免费视频黄 | 99精品久久久久久久久久综合 | 在线观看日韩免费视频 | 久久精品国产精品亚洲 | 亚洲伊人第一页 | 三级视频片 | 免费在线观看成人 | 天天操天天操天天操天天操天天操 | 日韩综合第一页 | 久久久电影| 日韩国产在线观看 | 国产精品一区二区在线播放 | 欧美一区二区三区在线观看 | 天堂中文在线播放 | 久草精品视频在线看网站免费 | 国产精品久久久久影视 | 日韩高清成人在线 | 国产福利一区二区三区视频 | 国产无遮挡又黄又爽馒头漫画 | 最新av在线免费观看 | 女人高潮特级毛片 | 久久综合五月天婷婷伊人 | 精品免费久久久久 | 伊人天堂久久 | 中文av免费 | 国产97色在线 | 成人性生交大片免费看中文网站 | 国产精品自拍av | 最近免费观看的电影完整版 | 国产精品视频 | 91精品视频在线看 | 国产精品99久久久久久宅男 | 日韩精品国产一区 | 欧美亚洲一区二区在线 | 国产视频1 | 久草在线最新 | 99久久这里只有精品 | 婷婷久久婷婷 | 黄色大片免费播放 | 久久九九网站 | 亚洲高清久久久 | 2017狠狠干| 国产精品欧美一区二区 | 91插插影库| 日韩av黄 | 日本性生活一级片 | 四虎影院在线观看av | 国产不卡免费视频 | 久久99精品国产99久久 | 黄色网www | 97国产精品 | 亚洲天堂网站 | 国产精品理论片 | 91av视频在线播放 | 91丨九色丨蝌蚪丰满 | 精品视频 | 日韩字幕在线观看 | 日韩中文字幕免费在线播放 | 精品一区二区三区电影 | 亚洲夜夜网| 日韩理论电影在线 | 中文字幕亚洲在线观看 | 手机看片国产日韩 | 激情五月激情综合网 | 黄色成人毛片 | 国产日产av | 亚洲精品一区二区三区高潮 | 91九色自拍 | 欧美伦理电影一区二区 | 四虎免费av| 国产91区| 欧美另类重口 | 在线视频国产区 | 麻豆一级视频 | 色综合久久久久综合99 | 欧美色综合 | 色网站在线免费 | 久久久高清一区二区三区 | 99精品毛片 | 综合色婷婷 | 久久综合久久综合九色 | 日韩av二区 | 在线播放 日韩专区 | 国产精品麻豆免费版 | 亚洲一区二区三区91 | 久草精品免费 | 五月天婷亚洲天综合网精品偷 | 色天天久久 | 国产精品国产三级国产aⅴ9色 | 亚洲一级片免费观看 | 成人黄色片免费看 | 天天想夜夜操 | 91成人在线视频观看 | 婷五月激情 | 久久综合婷婷国产二区高清 | 精品久久久久久亚洲综合网 | 超碰97免费观看 | 丁香婷婷亚洲 | 国产一级免费观看 | 久久精品国产亚洲精品2020 | 美女免费视频观看网站 | 日本夜夜草视频网站 | 久久久视频在线 | 久久中文网 | 亚州日韩中文字幕 | 国产成人精品网站 | 国产无套精品久久久久久 | 国产精彩视频一区 | 九九热精品视频在线观看 | 99精品亚洲 | 免费国产在线观看 | 欧美日韩在线网站 | 国产黄色视 | 成人黄色片在线播放 | 91精品久久久久久综合五月天 | 久久久久国产精品厨房 | 国产剧情av在线播放 | 国精产品999国精产品岳 | 午夜aaaa | 日韩中文字幕免费看 | 99精彩视频 | 3d黄动漫免费看 | 人人插人人草 | 欧美人牲| 97超碰在线久草超碰在线观看 | 欧美一级在线观看视频 | 成人免费观看视频网站 | 国产精品99久久久精品 | 国产免费专区 | 国产这里只有精品 | 中文字幕黄色av | 欧美日韩高清一区 | 日本公乱妇视频 | 日本黄色a级大片 | 国产69精品久久久久久 | 丁香六月天婷婷 | 在线免费观看麻豆视频 | 99视频精品 | 在线91播放| 中文字幕视频观看 | 久久久免费看视频 | 日韩激情视频在线 | 天天干天天摸天天操 | 亚洲电影在线看 | 米奇影视7777 | 久久久久久久久久久免费视频 | 国产精品综合久久久久久 | 91视频麻豆视频 | 美女久久久久久久久久久 | 亚洲精品www久久久 www国产精品com | 在线免费观看视频一区二区三区 | 麻豆免费观看视频 | 国产精品自拍在线 | 国产99久久久久久免费看 | 天天操夜夜操 | 人人草人 | 岛国av在线免费 | 综合天天久久 | 91视视频在线直接观看在线看网页在线看 | 日日干综合 | 成人免费一区二区三区在线观看 | 在线观看成人网 | 久久精品网站视频 | 国产精品免费大片视频 | 三级av免费观看 | 国产区精品在线观看 | 久久久久女人精品毛片九一 | 婷婷视频在线 | 久久调教视频 | 日本精品一| 人人澡人人干 | 蜜臀一区二区三区精品免费视频 | 狠狠色香婷婷久久亚洲精品 | 国产福利精品视频 | 999亚洲国产996395| 国产成人精品av在线 | 91精品国产福利在线观看 | 色播亚洲婷婷 | 国产精品99视频 | 国产99久久九九精品免费 | 久久免费国产电影 | 91麻豆免费看 | 久久久久这里只有精品 | 十八岁以下禁止观看的1000个网站 | 日韩欧美在线播放 | 日本不卡久久 | 在线观看第一页 | 久草在线视频看看 | 91黄色小视频 | 久久国产精品久久国产精品 | 国产免费一区二区三区最新6 | 99久久99久国产黄毛片 | 91插插视频 | 亚洲高清免费在线 | 黄色片网站av | 黄视频网站大全 | 欧美午夜精品久久久久 | 亚洲一级国产 | 国产一级在线观看视频 | 国产久草在线 | 国产经典三级 | 精品国产欧美 | 成人h在线观看 | 国产视频1区2区 | 最新av在线播放 | www免费黄色| 夜夜天天干 | 国产欧美在线一区二区三区 | 中文字幕人成一区 | 欧美一二三区播放 | 欧美日韩免费观看一区二区三区 | 天天拍天天操 | 激情 一区二区 | 91麻豆福利 | 成人免费91| 人人插人人草 | 91亚洲国产成人久久精品网站 | 美女黄频在线观看 | 在线观看视频99 | 国产黄色精品在线观看 | 午夜美女视频 | 国产亚洲精品v | 黄色毛片在线 | 最新亚洲视频 | av色一区 | 97超碰人| 成人一级片在线观看 | 人人爽久久久噜噜噜电影 | 日韩在线电影观看 | 99在线看| 国产成人精品在线播放 | 91免费观看 | 日韩精品视频一二三 | 国产视频一区精品 | 亚洲精品乱码久久久久久高潮 | 深爱激情综合网 | 亚洲在线激情 | 成年人免费在线 | 国产成人精品久久久久蜜臀 | 色噜噜日韩精品欧美一区二区 | 久久久久福利视频 | 国产精品午夜久久 | 国产精品久久艹 | 在线观看一级视频 | av一区在线 | 91免费在线 | 久久久国产一区二区三区 | 91中文视频 | 在线观看视频一区二区三区 | 久久久久久久久久久久国产精品 | 欧美日韩国产精品一区 | 人人干97 | 久久久蜜桃一区二区 | 黄色网中文字幕 | 久久久www成人免费精品 | 国产一区国产精品 | 久草在线最新视频 | 三级a毛片 | 亚洲午夜激情网 | 国产不卡在线播放 | 中文字幕在线视频免费播放 | 欧美性护士| 五月激情综合婷婷 | 97人人添人澡人人爽超碰动图 | 成人av网址大全 | av福利免费 | 亚洲成人av在线电影 | 久草视频在线资源站 | 日本一区二区免费在线观看 | 日韩精品亚洲专区在线观看 | 久久一视频| 国产一区二区视频在线 | 日韩欧美国产精品 | 狠狠操天天射 | 日韩免费看的电影 | 天天干天天拍天天操天天拍 | 最新av免费在线观看 | av 一区二区三区 | 欧美另类一二三四区 | 91一区二区三区久久久久国产乱 | 日韩二三区 | 国产专区在线看 | 欧美国产日韩激情 | 中文字幕 国产专区 | 中文字幕91在线 | 国产精品激情在线观看 | 人人添人人 | 久久精品视频观看 | 精品国产乱码一区二 | 欧美精品久久久久久久久久久 | 91chinesexxx| jizzjizzjizz亚洲 | 久久精品视频国产 | 久久久久国产成人精品亚洲午夜 | 国产精品久久视频 | 精品99在线视频 | 日韩视频一区二区在线观看 | 在线免费中文字幕 | 亚洲永久精品在线 | 免费韩国av| 国产成人在线免费观看 | 日本在线观看一区 | 黄污视频网站 | 91亚色在线观看 | 日韩精品一区二区三区不卡 | 91麻豆免费视频 | 丝袜美女视频网站 | 国产视频久久久久 | 久久综合久久综合这里只有精品 | 久久久精品免费看 | 久热免费在线观看 | 国产成人精品一区二区三区福利 | 日韩在线小视频 | 日韩一区二区免费视频 | 免费午夜在线视频 | 国产免费不卡av | 国产精品久久久久久久久费观看 | 四虎www | 国产精品97 | 天堂av在线| 伊人久久一区 | 天天操夜夜逼 | 99激情网| 九色91在线 | 在线免费观看麻豆视频 | 国产美女主播精品一区二区三区 | 91综合色 | www日韩高清 | 国产手机在线精品 | 久久久精品 一区二区三区 国产99视频在线观看 | 精品久久久免费视频 | 播五月婷婷 | 免费色视频在线 | 亚洲国产精品成人综合 | 亚洲成人免费在线观看 | 久久理论电影 | 免费a v在线 | 亚洲欧美日韩国产精品一区午夜 | 日产中文字幕 | av解说在线观看 | av网址最新 | 婷婷亚洲五月 | 中文字幕国内精品 | 午夜精品久久久久久久99热影院 | 中文字幕在线观看第三页 | 九九九免费视频 | 免费看片网址 | 黄色av电影 | 天天综合成人 | 亚洲经典精品 | 日韩剧| 一级欧美黄 | 亚洲不卡av一区二区三区 | 久久综合色播五月 | 日日夜夜天天射 | 亚洲精品免费在线观看视频 | 992tv人人草| 亚州av网站 | 久久视频这里只有精品 | 欧美一级日韩三级 | 国产精品av免费 | 亚洲无线视频 | 国产精品美女在线 | 91在线区 | 国产 日韩 欧美 自拍 | 国产尤物在线视频 | 国产在线观看国语版免费 | 婷婷免费在线视频 | 久久成年人网站 | 在线观看免费av网 | 中文字幕 国产精品 | 国产区免费 | 97免费中文视频在线观看 | 久久综合九色综合欧美狠狠 | www国产在线 | 亚洲精品国内 | 91中文在线| 人人爱人人爽 | 免费观看性生交 | 国产 亚洲 欧美 在线 | 欧美动漫一区二区三区 | 日韩www在线 | 欧美婷婷综合 | 久久观看 | 亚洲在线视频网站 | 日本特黄一级片 | 女人高潮特级毛片 | 97色综合| av成人动漫在线观看 | 人成午夜视频 | 日韩av快播电影网 | 911国产 | 色多多视频在线观看 | 国产精品成人自产拍在线观看 | 欧美a级成人淫片免费看 | av在线官网 | 国产成人亚洲在线电影 | 国内精品久久久 | 国产精品人成电影在线观看 | 97视频网站 | 不卡的一区二区三区 | 美女久久久久久久久久久 | 99精品国产在热久久 | 天天色天天骑天天射 | 99精品系列 | 久久看免费视频 | 四虎永久免费网站 | 久久福利小视频 | 97超在线视频 | 久热av在线 | 五月开心六月婷婷 | 久久精品2 | 少妇bbr搡bbb搡bbb | 成人免费av电影 | 精品久久久网 | 精品一二三四在线 | 亚洲国产成人精品电影在线观看 | 欧美一级日韩免费不卡 | 久久久久久久久久久免费av | 国产玖玖精品视频 | 久久一区精品 | 国产小视频在线观看免费 | 久久国产亚洲 | 毛片网站免费 | 日本久久中文字幕 | 色婷婷综合久久久久 | 久久久久久久久久久成人 | 日韩成人中文字幕 | 日韩免费视频观看 | 97超碰人人 | 麻豆视频一区 | 日韩欧美国产视频 | 99久久久精品 | 欧美午夜精品久久久久久浪潮 | 人人爱人人射 | 久久久久久国产精品久久 | 免费av试看 | 成人福利在线观看 | 777xxx欧美 | 永久免费精品视频 | 色91在线 | 国产精品一区二区av | 92精品国产成人观看免费 | 亚洲精选久久 | 国产精品a成v人在线播放 | 国产午夜精品一区 | 麻豆视频网址 | 国产美女免费观看 | 欧美一区二区精美视频 | 久久国语 | 麻豆传媒视频在线播放 | 日韩欧美一区二区三区黑寡妇 | 成人午夜性影院 | 人人爽人人爽人人片av免 | 午夜精品久久久 | 国产成人三级在线播放 | 91爱在线 | 五月婷婷.com | 97精品超碰一区二区三区 | 亚洲成av人片在线观看 | 久久九九久久 | 国产精品免费在线播放 | 成人免费共享视频 | 97视频人人澡人人爽 | 国产精品成人一区二区三区 | 一区二区三区国产欧美 | 91桃色免费观看 | 日韩视频www| 国产精品久久久久久久久久免费 | 干天天 | 国内精品视频久久 | www·22com天天操 | 最新91在线视频 | 伊人婷婷久久 | 久久精品视频在线观看免费 | 色婷婷av一区二 | 国产亚洲婷婷 | 久久久久久电影 | 国产高清永久免费 | 国产精品成人国产乱 | 久久精品婷婷 | 高清一区二区三区 | 中文字幕在线观看日本 | 欧美色图88 | 国产精品视频最多的网站 | 麻豆精品视频 | 亚洲精品在线资源 | 97人人爽 | 91在线小视频 | 天天干夜夜擦 | 亚洲男女精品 | 不卡av在线| 国产福利资源 | 亚洲专区免费观看 | 久久激情日本aⅴ | 国产成人福利在线观看 | 亚洲一区网站 | www.eeuss影院av撸 | 亚洲国产一区av | 中字幕视频在线永久在线观看免费 | 在线免费视| 欧美日韩国产精品一区 | 久久久麻豆视频 | 黄色成人av| 国产精品久久久久久久久久直播 | 在线播放你懂 | 色婷婷视频在线观看 | 色av婷婷 | 色永久免费视频 | 伊人五月在线 | 激情六月婷婷久久 | 精品久久久久久久久中文字幕 | 免费观看不卡av | 久久国产精品视频免费看 | 视频三区在线 | 国产亚洲精品久久久久久无几年桃 | 色老板在线视频 | 日本最新一区二区三区 | 久久国内精品视频 | 激情综合电影网 | 97在线免费| www.久久精品视频 | 热久久99这里有精品 | 久99久视频| 国产成a人亚洲精v品在线观看 | 久久无码精品一区二区三区 | 999视频在线播放 | 日韩中字在线 | 日av免费 | 亚洲国产日韩av | 在线a视频免费观看 | 欧美黄网站 | 日本精品视频免费观看 | 亚洲综合色丁香婷婷六月图片 | 久久不卡视频 | 91精品在线观看视频 | 亚洲精品在线观看免费 | 国产高清精品在线观看 | 午夜婷婷在线播放 | 99这里只有久久精品视频 | 夜夜爽www | 伊人中文在线 | 99在线视频网站 | 日韩一区二区免费在线观看 | 99欧美| 久久国产精品视频观看 | 国产淫a| 韩日精品在线 | 激情久久小说 | 欧美a性 | 免费a级观看 | 8x成人免费视频 | 天天躁日日躁狠狠躁av中文 | 精品一区二区6 | 麻豆精品视频 | 亚洲一区天堂 | 91丨九色丨首页 | 日韩中文幕| 国产精品第三页 | 久久国产精品久久久久 | 一区二区三区视频 | 91女神的呻吟细腰翘臀美女 | 亚洲精品国产成人av在线 | 久久久2o19精品 | 日韩在线电影 | www日日夜夜 | 欧美一级性 | av软件在线观看 | 国产一区二区视频在线播放 | 色网av | 国产一区高清在线观看 | 91精品国产乱码 | 欧洲一区二区三区精品 | 亚洲国产免费网站 | 久久视频这里有久久精品视频11 | 国产精品综合久久久久 | 亚州视频在线 | 国产精品大片免费观看 | 国产精品一区二区久久久 | 国产精品免费观看国产网曝瓜 | 国产美女搞久久 | 国产一性一爱一乱一交 | 在线视频 国产 日韩 | 成人一区二区三区在线观看 | 99精品在线视频播放 | 日日干精品 | 97久久久免费福利网址 | 成av在线 | 在线观看成人一级片 | 麻豆视频免费在线 | 欧美一级日韩三级 | 一个色综合网站 | 国产自产在线视频 | 亚洲激情六月 | 国产一二三区在线观看 | 狠狠色丁香婷婷综合橹88 | 亚洲精品综合在线观看 | 香蕉视频在线免费 | 日韩视频欧美视频 | 天天综合日 | 亚洲精品福利在线观看 | 色婷婷播放 | 最近中文字幕免费 | 精品久久久久一区二区国产 | 精品视频久久 | 国产 日韩 中文字幕 | 日本天天操 | 美国三级黄色大片 | 久久午夜色播影院免费高清 | 日韩av线观看 | 久久午夜免费观看 | 亚洲精品在线视频网站 |