/* queues frames Copyright (C) 2001 Martin Vogt This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation. For more information look at the file COPYRIGHT in this package */ #include "frameQueue.h" #include using namespace std; FrameQueue::FrameQueue(int maxsize) { this->size=maxsize; entries = new Frame*[size]; int i; for(i=0;i 0); } int FrameQueue::canWrite() { return (fillgrade < size); } int FrameQueue::getFillgrade() { return fillgrade; } void FrameQueue::enqueue(Frame* frame) { if(canWrite() == false) { cout << "FrameQueue full cannot enqueue"<