xoreos  0.0.5
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Graphics::Queueable Class Reference

#include <queueable.h>

Inheritance diagram for Graphics::Queueable:
Inheritance graph
[legend]
Collaboration diagram for Graphics::Queueable:
Collaboration graph
[legend]

Public Member Functions

 Queueable ()
 
virtual ~Queueable ()
 
virtual bool operator< (const Queueable &q) const
 

Protected Member Functions

bool isInQueue (QueueType queue) const
 
void addToQueue (QueueType queue)
 
void removeFromQueue (QueueType queue)
 
void lockQueue (QueueType queue)
 
void unlockQueue (QueueType queue)
 
void sortQueue (QueueType queue)
 

Private Member Functions

void removeFromAll ()
 
void kickedOut (QueueType queue)
 

Private Attributes

bool _isInQueue [kQueueMAX]
 
std::list< Queueable * >::iterator _queueRef [kQueueMAX]
 

Friends

class QueueManager
 

Detailed Description

Definition at line 34 of file queueable.h.

Constructor & Destructor Documentation

◆ Queueable()

Graphics::Queueable::Queueable ( )

Definition at line 32 of file queueable.cpp.

References _isInQueue, and Graphics::kQueueMAX.

◆ ~Queueable()

Graphics::Queueable::~Queueable ( )
virtual

Definition at line 37 of file queueable.cpp.

References removeFromAll().

Here is the call graph for this function:

Member Function Documentation

◆ addToQueue()

void Graphics::Queueable::addToQueue ( QueueType  queue)
protected

◆ isInQueue()

bool Graphics::Queueable::isInQueue ( QueueType  queue) const
inlineprotected

Definition at line 42 of file queueable.h.

References _isInQueue.

Referenced by Graphics::Renderable::isVisible().

Here is the caller graph for this function:

◆ kickedOut()

void Graphics::Queueable::kickedOut ( QueueType  queue)
private

Definition at line 86 of file queueable.cpp.

References _isInQueue, and QueueMan.

◆ lockQueue()

void Graphics::Queueable::lockQueue ( QueueType  queue)
protected

Definition at line 67 of file queueable.cpp.

References QueueMan.

Referenced by Graphics::Renderable::show().

Here is the caller graph for this function:

◆ operator<()

bool Graphics::Queueable::operator< ( const Queueable q) const
virtual

Reimplemented in Graphics::Renderable.

Definition at line 41 of file queueable.cpp.

◆ removeFromAll()

void Graphics::Queueable::removeFromAll ( )
private

Definition at line 81 of file queueable.cpp.

References Graphics::kQueueMAX, and removeFromQueue().

Referenced by ~Queueable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeFromQueue()

void Graphics::Queueable::removeFromQueue ( QueueType  queue)
protected

◆ sortQueue()

void Graphics::Queueable::sortQueue ( QueueType  queue)
protected

Definition at line 75 of file queueable.cpp.

References QueueMan.

Referenced by Graphics::Renderable::resort(), and Graphics::Renderable::show().

Here is the caller graph for this function:

◆ unlockQueue()

void Graphics::Queueable::unlockQueue ( QueueType  queue)
protected

Definition at line 71 of file queueable.cpp.

References QueueMan.

Referenced by Graphics::Renderable::show().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ QueueManager

friend class QueueManager
friend

Definition at line 60 of file queueable.h.

Member Data Documentation

◆ _isInQueue

bool Graphics::Queueable::_isInQueue[kQueueMAX]
private

Definition at line 54 of file queueable.h.

Referenced by addToQueue(), isInQueue(), kickedOut(), Queueable(), and removeFromQueue().

◆ _queueRef

std::list<Queueable *>::iterator Graphics::Queueable::_queueRef[kQueueMAX]
private

Definition at line 55 of file queueable.h.

Referenced by addToQueue(), and removeFromQueue().


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