Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
examples
restypedef.cpp
Go to the documentation of this file.
1
/*! \file restypedef.cpp
2
* An example of resolving typedefs.
3
*/
4
5
/*! \struct CoordStruct
6
* A coordinate pair.
7
*/
8
struct
CoordStruct
9
{
10
/*! The x coordinate */
11
float
x
;
12
/*! The y coordinate */
13
float
y
;
14
};
15
16
/*! Creates a type name for CoordStruct */
17
typedef
CoordStruct
Coord
;
18
19
/*!
20
* This function returns the addition of \a c1 and \a c2, i.e:
21
* (c1.x+c2.x,c1.y+c2.y)
22
*/
23
Coord
add
(
Coord
c1
,
Coord
c2)
24
{
25
}
add
Coord add(Coord c1, Coord c2)
Definition:
restypedef.cpp:23
Coord
CoordStruct Coord
Definition:
restypedef.cpp:17
CoordStruct::y
float y
Definition:
restypedef.cpp:13
ValidateOpDetReco.c1
c1
Definition:
ValidateOpDetReco.py:586
CoordStruct::x
float x
Definition:
restypedef.cpp:11
CoordStruct
Definition:
restypedef.cpp:8
Generated by
1.8.11