File: autolink.cpp

package info (click to toggle)
breathe 4.36.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,224 kB
  • sloc: python: 12,703; cpp: 1,737; makefile: 523; xml: 168; sh: 54; ansic: 52
file content (101 lines) | stat: -rw-r--r-- 2,529 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*! \file autolink.cpp
  Testing automatic link generation.
  
  A link to a member of the Test2 class: Test2::member,
  
  More specific links to the each of the overloaded members:
  Test2::member(int) and Test2#member(int,int)

  A link to a protected member variable of Test2: Test2#var,

  A link to the global variable #globVar.

  A link to the global enumeration type #GlobEnum.
 
  A link to the define #ABS_NUMBER(x).
  
  A link to the destructor of the Test2 class: Test2::~Test2,
  
  A link to the typedef ::Test2TypeDef.
 
  A link to the enumeration type Test2::EType
  
  A link to some enumeration values Test2::Val1 and ::GVal2
*/

/*!
  Since this documentation block belongs to the class Test2 no link to
  Test2 is generated.

  Two ways to link to a constructor are: #Test2 and Test2().

  Links to the destructor are: #~Test2 and ~Test2().
  
  A link to a member in this class: member().

  More specific links to the each of the overloaded members: 
  member(int) and member(int,int). 
  
  A link to the variable #var.

  A link to the global typedef ::Test2TypeDef.

  A link to the global enumeration type #GlobEnum.
  
  A link to the define ABS_NUMBER(x).
  
  A link to a variable \link #var using another text\endlink as a link.
  
  A link to the enumeration type #EType.

  A link to some enumeration values: \link Test2::Val1 Val1 \endlink and ::GVal1.

  And last but not least a link to a file: autolink.cpp.
  
  \sa Inside a see also section any word is checked, so EType, 
      Val1, GVal1, ~Test2 and member will be replaced by links in HTML.
*/

class Test2
{
  public:
    Test2();               //!< constructor
   ~Test2();               //!< destructor
    void member(int);     /**< A member function. Details. */
    void member(int,int); /**< An overloaded member function. Details */

    /** An enum type. More details */
    enum EType { 
      Val1,               /**< enum value 1 */ 
      Val2                /**< enum value 2 */ 
    };                

  protected:
    int var;              /**< A member variable */
};

/*! details. */
Test2::Test2() { }

/*! details. */
Test2::~Test2() { }

/*! A global variable. */
int globVar;

/*! A global enum. */
enum GlobEnum { 
                GVal1,    /*!< global enum value 1 */ 
                GVal2     /*!< global enum value 2 */ 
              };

/*!
 *  A macro definition.
 */ 
#define ABS_NUMBER(x) (((x)>0)?(x):-(x))

typedef Test2 Test2TypeDef;

/*! \fn typedef Test2 Test2TypeDef
 *  A type definition. 
 */