Debian Codegraph @

src/plan/CommandQueue.h

raw
1 #ifndef HEADER_COMMANDQUEUE_H
2 #define HEADER_COMMANDQUEUE_H
3
4 class Command;
5
6 #include "NoCopy.h"
7
8 #include <deque>
9
10 /**
11 * Queue for sequential commands.
12 */
13 class CommandQueue : public NoCopy {
14 private:
15 typedef std::deque<Command*> t_commands;
16 t_commands m_commands;
17 int m_count;
18 public:
19 CommandQueue();
20 virtual ~CommandQueue();
21
22 void planCommand(Command *new_command);
23 bool executeFirst();
24 void removeAll();
25 bool empty() const { return m_commands.empty(); }
26 };
27
28 #endif