How To Write the external Iterator?

Discussion in 'ASP .Net Building Controls' started by Alex B, May 24, 2004.

  1. Alex B

    Alex B Guest

    Easy...

    1. Learn how to set the clock correctly on your computer.
    2. Learn basic etiquette in usenet (i.e. not cross posting to a ton of
    newsgroups)


    "apex" <> wrote in message
    news:...
    > Hi all:
    > I want to write an iterator class for GHashTable which belongs to GNU
    > glib[ c library ] .Access function of GHashTable now only support internal
    > iterator and define
    > struct _GHashNode
    > {
    > gpointer key;
    > gpointer value;
    > GHashNode *next;
    > };
    > and
    > struct _GHashTable
    > {
    > gint size;
    > gint nnodes;
    > GHashNode **nodes;
    > GHashFunc hash_func;
    > GEqualFunc key_equal_func;
    > GDestroyNotify key_destroy_func;
    > GDestroyNotify value_destroy_func;
    > };
    > in ghash.c file .How can I write an external iterator for GHashTable ?
    >
    > Any suggestion will be appreciated !
    >
    >
    > Thanks a lot !
    >
    >
    >
    >
    >
    >
    >
    Alex B, May 24, 2004
    #1
    1. Advertising

  2. Boing
    Jeff Johnson [MVP: VB], May 24, 2004
    #2
    1. Advertising

  3. Alex B

    apex Guest

    Hi all:
    I want to write an iterator class for GHashTable which belongs to GNU
    glib[ c library ] .Access function of GHashTable now only support internal
    iterator and define
    struct _GHashNode
    {
    gpointer key;
    gpointer value;
    GHashNode *next;
    };
    and
    struct _GHashTable
    {
    gint size;
    gint nnodes;
    GHashNode **nodes;
    GHashFunc hash_func;
    GEqualFunc key_equal_func;
    GDestroyNotify key_destroy_func;
    GDestroyNotify value_destroy_func;
    };
    in ghash.c file .How can I write an external iterator for GHashTable ?

    Any suggestion will be appreciated !


    Thanks a lot !
    apex, May 25, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex B
    Replies:
    2
    Views:
    364
  2. Hendrik Maryns
    Replies:
    18
    Views:
    1,416
  3. greg
    Replies:
    6
    Views:
    454
    Dietmar Kuehl
    Jul 17, 2003
  4. Replies:
    6
    Views:
    641
    Jim Langston
    Oct 30, 2005
  5. Alex B

    How To Write the external Iterator?

    Alex B, May 24, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    130
Loading...

Share This Page