Code::Blocks
SVN r11506
|
#include <compiler_defs.h>
Public Member Functions | |
CompilerQueue () | |
~CompilerQueue () | |
void | Clear () |
Clear the queue. More... | |
size_t | GetCount () const |
Get the commands count. More... | |
bool | LastCommandWasRun () const |
void | Add (CompilerCommand *cmd) |
Queue a command. More... | |
void | Add (CompilerQueue *queue) |
Queue all commands from another CompilerQueue. More... | |
CompilerCommand * | Next () |
Get the next command in queue. More... | |
CompilerCommand * | Peek () |
Protected Attributes | |
CompilerCommands | m_Commands |
bool | m_LastWasRun |
Definition at line 34 of file compiler_defs.h.
CompilerQueue::CompilerQueue | ( | ) |
Definition at line 18 of file compiler_defs.cpp.
CompilerQueue::~CompilerQueue | ( | ) |
Definition at line 23 of file compiler_defs.cpp.
References Clear().
void CompilerQueue::Add | ( | CompilerCommand * | cmd | ) |
Queue a command.
Definition at line 45 of file compiler_defs.cpp.
References CompilerCommand::dir, cbProject::GetExecutionDir(), wxString::IsEmpty(), m_Commands, and CompilerCommand::project.
Referenced by Add().
void CompilerQueue::Add | ( | CompilerQueue * | queue | ) |
Queue all commands from another CompilerQueue.
Definition at line 55 of file compiler_defs.cpp.
References Add(), and m_Commands.
void CompilerQueue::Clear | ( | ) |
Clear the queue.
Definition at line 28 of file compiler_defs.cpp.
References m_Commands.
Referenced by ~CompilerQueue().
size_t CompilerQueue::GetCount | ( | ) | const |
bool CompilerQueue::LastCommandWasRun | ( | ) | const |
Definition at line 40 of file compiler_defs.cpp.
References m_LastWasRun.
CompilerCommand * CompilerQueue::Next | ( | ) |
Get the next command in queue.
If from
is NULL, returns the top command. If from
is not NULL, the command following from
is returned. if remove
is true (default), the command is removed from the list. This means that the caller must delete it.
Definition at line 72 of file compiler_defs.cpp.
References CompilerCommand::isRun, m_Commands, and m_LastWasRun.
CompilerCommand * CompilerQueue::Peek | ( | ) |
Definition at line 64 of file compiler_defs.cpp.
References m_Commands.
|
protected |
Definition at line 59 of file compiler_defs.h.
Referenced by Add(), Clear(), GetCount(), Next(), and Peek().
|
protected |
Definition at line 60 of file compiler_defs.h.
Referenced by LastCommandWasRun(), and Next().