Changes between Version 23 and Version 24 of code/C++_styleguide
- Timestamp:
- Sep 20, 2008, 6:40:53 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/C++_styleguide
v23 v24 107 107 Maybe an example or something. 108 108 */ 109 class ClassName 110 { 111 ... 112 }}} 113 114 === Class Members === 115 Add a brief description to every member of a class: 116 {{{ 117 private: 118 int value_; //!< A brief description 119 int longerValueName_; //!< A brief description 120 }}} 121 The < after //! indicates that the member is located in front of the comment instead of after the comment. 122 123 If you need a more detailed description, use: 124 {{{ 125 private: 126 int value_; //!< A detailed description 127 //!< More detailed description 128 //!< ... 129 }}} 130 or 131 {{{ 132 private: 133 int value_; /**< 134 A detailed description 135 More detailed description 136 ... 137 */ 109 138 }}} 110 139 … … 131 160 The mighty whoever 132 161 */ 162 returntype functionname(type1 param1, type2 param2) 163 { 164 ... 133 165 }}} 134 166 … … 137 169 {{{ 138 170 /** @brief A brief description. @param param1 description [...] @return description */ 171 inline returntype functionname(type1 param1 [, ...]) { ... } 139 172 }}} 140 173