3
Copyright (C) 2001 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
17
VISQueue::VISQueue(int elements) {
18
this->elements=elements;
20
visArrayQueue = new std::vector<float>*[elements];
21
for(int i=0;i<elements;i++)
23
visArrayQueue[i]=new std::vector<float>;
28
VISQueue::~VISQueue() {
29
for(int i=0;i<elements;i++) {
30
delete visArrayQueue[i];
32
delete [] visArrayQueue;
35
std::vector<float>* VISQueue::getElement(int i)
37
if ( (i < 0) || (i>elements) ) {
38
return visArrayQueue[0];
40
return visArrayQueue[i];