Fix for UBSan build
[platform/upstream/doxygen.git] / src / formula.h
1 /******************************************************************************
2  *
3  * $Id: formula.h,v 1.7 2001/03/19 19:27:40 root Exp $
4  *
5  * Copyright (C) 1997-2012 by Dimitri van Heesch.
6  *
7  * Permission to use, copy, modify, and distribute this software and its
8  * documentation under the terms of the GNU General Public License is hereby 
9  * granted. No representations are made about the suitability of this software 
10  * for any purpose. It is provided "as is" without express or implied warranty.
11  * See the GNU General Public License for more details.
12  *
13  * Documents produced by Doxygen are derivative works derived from the
14  * input used in their production; they are not affected by this license.
15  *
16  */
17
18 #ifndef FORMULA_H
19 #define FORMULA_H
20
21 #include "qtbc.h"
22 #include <qlist.h>
23 #include <qdict.h>
24
25 /** Class representing a formula in the output. */
26 class Formula
27 {
28   public:
29     Formula(const char *text);
30    ~Formula();
31     int getId();
32     QCString getFormulaText() const { return form; }
33     
34   private:
35     int number;
36     QCString form;
37 };
38
39 /** A list of Formula objects. */
40 class FormulaList : public QList<Formula>
41 {
42   public:
43     void generateBitmaps(const char *path);
44 };
45
46 /** Iterator for Formula objects in a FormulaList. */
47 class FormulaListIterator : public QListIterator<Formula>
48 {
49   public:
50     FormulaListIterator(const FormulaList &l) : 
51       QListIterator<Formula>(l) {}
52 };
53
54 /** Unsorted dictionary of Formula objects. */
55 class FormulaDict : public QDict<Formula>
56 {
57   public:
58     FormulaDict(uint size) : 
59       QDict<Formula>(size) {}
60    ~FormulaDict() {}
61 };
62
63 #endif