Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
src
example.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 EXAMPLE_H
19
#define EXAMPLE_H
20
21
#include <
qcstring.h
>
22
#include "
sortdict.h
"
23
24
class
ClassDef
;
25
class
MemberName
;
26
27
/** Data associated with an example. */
28
struct
Example
29
{
30
QCString
anchor
;
31
QCString
name
;
32
QCString
file
;
33
};
34
35
/** A sorted dictionary of Example objects. */
36
class
ExampleSDict
:
public
SDict
<Example>
37
{
38
public
:
39
ExampleSDict
(
int
size
=17) :
SDict
<
Example
>(
size
) {}
40
~ExampleSDict
() {}
41
private
:
42
int
compareValues
(
const
Example
*item1,
const
Example
*item2)
const
43
{
44
return
qstricmp
(item1->
name
,item2->
name
);
45
}
46
};
47
48
#endif
ExampleSDict::compareValues
int compareValues(const Example *item1, const Example *item2) const
Definition:
example.h:42
ExampleSDict::ExampleSDict
ExampleSDict(int size=17)
Definition:
example.h:39
qcstring.h
util::size
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition:
StdUtils.h:92
SDict
Definition:
sortdict.h:73
qstricmp
int qstricmp(const char *str1, const char *str2)
Definition:
qcstring.cpp:567
Example
Definition:
example.h:28
ExampleSDict::~ExampleSDict
~ExampleSDict()
Definition:
example.h:40
Example::anchor
QCString anchor
Definition:
example.h:30
sortdict.h
Example::name
QCString name
Definition:
example.h:31
MemberName
Definition:
membername.h:26
ExampleSDict
Definition:
example.h:36
QCString
Definition:
qcstring.h:131
ClassDef
Definition:
classdef.h:59
Example::file
QCString file
Definition:
example.h:32
Generated by
1.8.11