| 1 | /*! \file autolink.cpp |
| 2 | Testing automatic link generation. |
| 3 | |
| 4 | A link to a member of the Test2 class: Test2::member, |
| 5 | |
| 6 | More specific links to the each of the overloaded members: |
| 7 | Test2::member(int) and Test2#member(int,int) |
| 8 | |
| 9 | A link to a protected member variable of Test2: Test2#var, |
| 10 | |
| 11 | A link to the global variable #globVar. |
| 12 | |
| 13 | A link to the global enumeration type #GlobEnum. |
| 14 | |
| 15 | A link to the define #ABS_NUMBER(x). |
| 16 | |
| 17 | A link to the destructor of the Test2 class: Test2::~Test2, |
| 18 | |
| 19 | A link to the typedef ::Test2TypeDef. |
| 20 | |
| 21 | A link to the enumeration type Test2::EType |
| 22 | |
| 23 | A link to some enumeration values Test2::Val1 and ::GVal2 |
| 24 | */ |
| 25 | |
| 26 | /*! |
| 27 | Since this documentation block belongs to the class Test2 no link to |
| 28 | Test2 is generated. |
| 29 | |
| 30 | Two ways to link to a constructor are: #Test2 and Test2(). |
| 31 | |
| 32 | Links to the destructor are: #~Test2 and ~Test2(). |
| 33 | |
| 34 | A link to a member in this class: member(). |
| 35 | |
| 36 | More specific links to the each of the overloaded members: |
| 37 | member(int) and member(int,int). |
| 38 | |
| 39 | A link to the variable #var. |
| 40 | |
| 41 | A link to the global typedef ::Test2TypeDef. |
| 42 | |
| 43 | A link to the global enumeration type #GlobEnum. |
| 44 | |
| 45 | A link to the define ABS_NUMBER(x). |
| 46 | |
| 47 | A link to a variable \link #var using another text\endlink as a link. |
| 48 | |
| 49 | A link to the enumeration type #EType. |
| 50 | |
| 51 | A link to some enumeration values: \link Test2::Val1 Val1 \endlink and ::GVal1. |
| 52 | |
| 53 | And last but not least a link to a file: autolink.cpp. |
| 54 | |
| 55 | \sa Inside a see also section any word is checked, so EType, |
| 56 | Val1, GVal1, ~Test2 and member will be replaced by links in HTML. |
| 57 | */ |
| 58 | |
| 59 | class Test2 |
| 60 | { |
| 61 | public: |
| 62 | Test2(); //!< constructor |
| 63 | ~Test2(); //!< destructor |
| 64 | void member(int); /**< A member function. Details. */ |
| 65 | void member(int,int); /**< An overloaded member function. Details */ |
| 66 | |
| 67 | /** An enum type. More details */ |
| 68 | enum EType { |
| 69 | Val1, /**< enum value 1 */ |
| 70 | Val2 /**< enum value 2 */ |
| 71 | }; |
| 72 | |
| 73 | protected: |
| 74 | int var; /**< A member variable */ |
| 75 | }; |
| 76 | |
| 77 | /*! details. */ |
| 78 | Test2::Test2() { } |
| 79 | |
| 80 | /*! details. */ |
| 81 | Test2::~Test2() { } |
| 82 | |
| 83 | /*! A global variable. */ |
| 84 | int globVar; |
| 85 | |
| 86 | /*! A global enum. */ |
| 87 | enum GlobEnum { |
| 88 | GVal1, /*!< global enum value 1 */ |
| 89 | GVal2 /*!< global enum value 2 */ |
| 90 | }; |
| 91 | |
| 92 | /*! |
| 93 | * A macro definition. |
| 94 | */ |
| 95 | #define ABS_NUMBER(x) (((x)>0)?(x):-(x)) |
| 96 | |
| 97 | typedef Test2 Test2TypeDef; |
| 98 | |
| 99 | /*! \fn typedef Test2 Test2TypeDef |
| 100 | * A type definition. |
| 101 | */ |