Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
src
formula.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 1997-2015 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 <
qlist.h
>
22
#include <
qdict.h
>
23
24
/** Class representing a formula in the output. */
25
class
Formula
26
{
27
public
:
28
Formula
(
const
char
*text);
29
~Formula
();
30
int
getId
();
31
QCString
getFormulaText
()
const
{
return
form
; }
32
33
private
:
34
int
number
;
35
QCString
form
;
36
};
37
38
/** A list of Formula objects. */
39
class
FormulaList
:
public
QList
<Formula>
40
{
41
public
:
42
void
generateBitmaps(
const
char
*path);
43
};
44
45
/** Iterator for Formula objects in a FormulaList. */
46
class
FormulaListIterator
:
public
QListIterator
<Formula>
47
{
48
public
:
49
FormulaListIterator
(
const
FormulaList
&
l
) :
50
QListIterator
<
Formula
>(l) {}
51
};
52
53
/** Unsorted dictionary of Formula objects. */
54
class
FormulaDict
:
public
QDict<Formula>
55
{
56
public
:
57
FormulaDict
(
uint
size
) :
58
QDict<
Formula
>(size) {}
59
~FormulaDict
() {}
60
};
61
62
#endif
Formula::number
int number
Definition:
formula.h:34
Formula::getFormulaText
QCString getFormulaText() const
Definition:
formula.h:31
FormulaDict::~FormulaDict
~FormulaDict()
Definition:
formula.h:59
FormulaDict::FormulaDict
FormulaDict(uint size)
Definition:
formula.h:57
FormulaListIterator::FormulaListIterator
FormulaListIterator(const FormulaList &l)
Definition:
formula.h:49
l
static QStrList * l
Definition:
config.cpp:1044
FormulaListIterator
Definition:
formula.h:46
Formula::form
QCString form
Definition:
formula.h:35
util::size
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition:
StdUtils.h:92
FormulaDict
Definition:
formula.h:54
Formula::~Formula
~Formula()
Definition:
formula.cpp:40
Formula
Definition:
formula.h:25
QListIterator
Definition:
qlist.h:126
Formula::getId
int getId()
Definition:
formula.cpp:44
qdict.h
FormulaList
Definition:
formula.h:39
qlist.h
QCString
Definition:
qcstring.h:131
uint
unsigned uint
Definition:
qglobal.h:351
QList
Definition:
qlist.h:54
Formula::Formula
Formula(const char *text)
Definition:
formula.cpp:33
Generated by
1.8.11