~ubuntu-branches/ubuntu/trusty/wxmaxima/trusty-proposed

« back to all changes in this revision

Viewing changes to src/EvaluationQueue.h

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas
  • Date: 2009-10-18 17:05:03 UTC
  • mfrom: (1.1.5 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091018170503-1yo1fcsfv5oztujk
* debian/watch: Changed regexp to match versions with lower case characters.
* debian/control: Recommend ttf-jsmath which is required for displaying
  mathematical symbols and greek letters. Thanks to Brendon Higgins!
  (closes: #550022)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///
 
2
///  Copyright (C) 2009 Ziga Lenarcic <zigalenarcic@users.sourceforge.net>
 
3
///
 
4
///  This program is free software; you can redistribute it and/or modify
 
5
///  it under the terms of the GNU General Public License as published by
 
6
///  the Free Software Foundation; either version 2 of the License, or
 
7
///  (at your option) any later version.
 
8
///
 
9
///  This program is distributed in the hope that it will be useful,
 
10
///  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
///  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
///  GNU General Public License for more details.
 
13
///
 
14
///
 
15
///  You should have received a copy of the GNU General Public License
 
16
///  along with this program; if not, write to the Free Software
 
17
///  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
///
 
19
 
 
20
 
 
21
#ifndef EVALUATIONQUEUE_H_
 
22
#define EVALUATIONQUEUE_H_
 
23
 
 
24
#include "GroupCell.h"
 
25
 
 
26
class EvaluationQueueElement {
 
27
  public:
 
28
    EvaluationQueueElement(GroupCell* gr);
 
29
    ~EvaluationQueueElement() {
 
30
    }
 
31
    GroupCell* group;
 
32
    EvaluationQueueElement* next;
 
33
};
 
34
 
 
35
// A simple FIFO queue with manual removal of elements
 
36
class EvaluationQueue
 
37
{
 
38
  public:
 
39
    EvaluationQueue();
 
40
    ~EvaluationQueue() {};
 
41
 
 
42
    bool IsInQueue(GroupCell* gr);
 
43
 
 
44
    void AddToQueue(GroupCell* gr);
 
45
    void RemoveFirst();
 
46
    GroupCell* GetFirst();
 
47
  private:
 
48
    EvaluationQueueElement* m_queue;
 
49
    EvaluationQueueElement* m_last;
 
50
};
 
51
 
 
52
 
 
53
#endif /* EVALUATIONQUEUE_H_ */