Results 1 to 5 of 5

Thread: What are the queue containers of the C++

  1. #1
    Join Date
    Jan 2010
    Posts
    18

    What are the queue containers of the C++

    Hello, I am the learner of the C++ programming language. I have to learn the C++ programming language. I also want to do the programming using the C++ language, because I am feel very comfortable with the C++ programming language. So, I would like to know about the queue containers of the C++ language. Can anyone help me about the queue containers???

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    The queue containers of the C++

    The queues can be of a type of the container adapters. That can be basically designed to an operate in a FIFO context that is first-in first-out where an elements can be inserted in to the container's one end and can be an extracted from the other end. I guess this information could be sufficient for you to know about the queue containers of the C++ language.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    What are the queue containers of the C++

    The queues can be an used as a containers of the adapters. The queue containers can be a classes that can use an object of a particular container class that can be an wrapped in as it can be come under the containers by providing a particular set of the functions that can be use to access an elements of that function. An elements can be pushed into the "back" of the particular container and can be popped from it's "front" of the container.
    Last edited by opaper; 27-02-2010 at 07:27 PM.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What are the queue containers of the C++

    The primary container that can be underlying can be one of the container class template or some other particularly designed container class. The only requirement can be here that it must have to supports the following mentioned operations :
    1. pop_front()
    2. front()
    3. push_back()
    4. back()

    Hence, the container class templates list and templates deque could be used.

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Re: What are the queue containers of the C++

    The Queue container class can be derived from a parent class Connector. The following definitions can be provided in queue.h and this example can help's you to learn the queue class containers as :
    Code:
     class Queue : public Cnctr 
    {
             public:
                    virtual void enque(Pckt*) = 0;
                    virtual Pckt* dqe() = 0;
                    void recv(Pckt*, Hndlr*);
                    void unblock();
                    void block();
             protected:
                    Queue();
                    int command(int arg, const char*const* ag);
                    int unblockonresume; 
                    QueueHndlr qh;
            };

Similar Threads

  1. ADMT to transfer users and all OU containers
    By Aidy in forum Windows Server Help
    Replies: 1
    Last Post: 16-05-2011, 12:00 AM
  2. Linux Containers Tools
    By Barsha in forum Operating Systems
    Replies: 5
    Last Post: 01-04-2010, 06:32 AM
  3. Using Top-Level Containers in Java
    By taher in forum Software Development
    Replies: 4
    Last Post: 10-02-2010, 06:49 AM
  4. Don't know about Sequence Containers
    By Sonam Goenka in forum Software Development
    Replies: 5
    Last Post: 09-02-2010, 02:10 PM
  5. Default containers in AD
    By Serrix in forum Active Directory
    Replies: 7
    Last Post: 24-11-2009, 06:03 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,692,191.76175 seconds with 17 queries