## NAME

ACE_TPQ_Iterator - Iterates through ACE_Token_Proxy_Queues.

## SYNOPSIS

    #include <ace/Local_Tokens.h>

    class ACE_TPQ_Iterator
    {
      public:
        ACE_TPQ_Iterator (ACE_Token_Proxy_Queue &q);
        ~ACE_TPQ_Iterator (void);
        int next (ACE_TPQ_Entry *&next_item);
        int done (void) const;
        void advance (void);
        void dump (void) const;
      private:
        ACE_TPQ_Entry *current_;
    };

## DESCRIPTION

This file contains definitions for the following classes:

public: 7. ACE_Token_Proxy 8. ACE_Null_Token : public ACE_Token_Proxy 9. ACE_Local_Mutex : public ACE_Token_Proxy *. ACE_Local_RLock : public ACE_Local_Mutex &. ACE_Local_WLock : public ACE_Local_Mutex private: 1. ACE_TOKEN_CONST 3. ACE_TPQ_Entry b. ACE_TSS_TPQ_Entry c. ACE_TPQ_Iterator 4. ACE_Token_Proxy_Queue 5. ACE_Tokens 6. ACE_Mutex_Token : public ACE_Tokens 12. ACE_RW_Token : public ACE_Tokens a. ACE_Token_Name

## PUBLIC MEMBERS

    ACE_TPQ_Iterator (ACE_Token_Proxy_Queue &q);

Construction.

    ~ACE_TPQ_Iterator (void);

Destructor.

    int next (ACE_TPQ_Entry *&next_item);

Pass back the `next_item`.

    int done (void) const;

Returns 1 when all items have been seen, else 0.

    void advance (void);

Move forward by one element in the queue.

    void dump (void) const;

Dump the state of an object.

## PRIVATE MEMBERS

    ACE_TPQ_Entry *current_;

## AUTHOR

Karl-Heinz Dorn (kdorn@erlh.siemens.de) Douglas C. Schmidt (schmidt@cs.wustl.edu) Tim Harrison (harrison@cs.wustl.edu)

## LIBRARY

ace