Code::Blocks  SVN r11506
Public Member Functions | Protected Attributes | List of all members
CompilerQueue Class Reference

#include <compiler_defs.h>

Collaboration diagram for CompilerQueue:

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...
 
CompilerCommandNext ()
 Get the next command in queue. More...
 
CompilerCommandPeek ()
 

Protected Attributes

CompilerCommands m_Commands
 
bool m_LastWasRun
 

Detailed Description

Definition at line 34 of file compiler_defs.h.

Constructor & Destructor Documentation

◆ CompilerQueue()

CompilerQueue::CompilerQueue ( )

Definition at line 18 of file compiler_defs.cpp.

◆ ~CompilerQueue()

CompilerQueue::~CompilerQueue ( )

Definition at line 23 of file compiler_defs.cpp.

References Clear().

Member Function Documentation

◆ Add() [1/2]

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().

◆ Add() [2/2]

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.

◆ Clear()

void CompilerQueue::Clear ( )

Clear the queue.

Definition at line 28 of file compiler_defs.cpp.

References m_Commands.

Referenced by ~CompilerQueue().

◆ GetCount()

size_t CompilerQueue::GetCount ( ) const

Get the commands count.

Definition at line 35 of file compiler_defs.cpp.

References m_Commands.

◆ LastCommandWasRun()

bool CompilerQueue::LastCommandWasRun ( ) const

Definition at line 40 of file compiler_defs.cpp.

References m_LastWasRun.

◆ Next()

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.

◆ Peek()

CompilerCommand * CompilerQueue::Peek ( )

Definition at line 64 of file compiler_defs.cpp.

References m_Commands.

Member Data Documentation

◆ m_Commands

CompilerCommands CompilerQueue::m_Commands
protected

Definition at line 59 of file compiler_defs.h.

Referenced by Add(), Clear(), GetCount(), Next(), and Peek().

◆ m_LastWasRun

bool CompilerQueue::m_LastWasRun
protected

Definition at line 60 of file compiler_defs.h.

Referenced by LastCommandWasRun(), and Next().


The documentation for this class was generated from the following files: