@@ -125,7 +125,8 @@ template <typename T> class AbstractList {
125125
126126public:
127127 /* !
128- * @brief Add a new entry at the end of the list.
128+ * @copybrief AbstractList::addLast()
129+ * @note Alias of addLast().
129130 * @see addLast()
130131 *
131132 * @param value Value to add.
@@ -166,7 +167,7 @@ template <typename T> class AbstractList {
166167
167168 /* !
168169 * @brief Add all entries from the given list at the end of the list.
169- * @see addLast ()
170+ * @see addAll ()
170171 *
171172 * @param list Other list to copy from.
172173 */
@@ -188,13 +189,9 @@ template <typename T> class AbstractList {
188189 void addLast (T &value) { addAtIndex (getSize (), value); }
189190
190191 /* !
191- * @brief Get a pointer to the entry at the given index. If the given index
192- * does not exists, null will be returned.
193- * @note If the list is immutable, the returned pointer has to be free'd with
194- * free() in order to prevent memory leaks.
195- *
196- * @param index Index of element to get.
197- * @return Pointer to the element.
192+ * @copydoc AbstractList::get()
193+ * @note Alias of get().
194+ * @see get()
198195 */
199196 T *getPointer (int index) { return get (index); }
200197
@@ -228,8 +225,9 @@ template <typename T> class AbstractList {
228225 virtual void remove (int index) = 0;
229226
230227 /* !
231- * @brief Remove all elements from the List.
228+ * @copybrief AbstractList::clear()
232229 * @note Alias of clear().
230+ * @see clear().
233231 */
234232 void removeAll () { clear (); }
235233
@@ -301,37 +299,26 @@ template <typename T> class AbstractList {
301299 }
302300
303301 /* !
304- * @brief Get the value of the element at the index.
302+ * @copydoc AbstractList::getValue()
305303 * @see getValue()
306- *
307- * @param index Index of the element to get.
308- * @return Value of the element.
309304 */
310305 T operator [](int index) { return getValue (index); }
311306
312307 /* !
313- * @brief Compare two lists whether their attributes and entries are equal.
308+ * @copydoc AbstractList::equals()
314309 * @see equals()
315- *
316- * @param list Second list to compare.
317- * @return true if the lists are equal; false otherwise.
318310 */
319311 bool operator ==(AbstractList<T> &list) { return equals (list); }
320312
321313 /* !
322- * @brief Add a new entry at the end of the list.
323- * @see add()
324- * @see addLast()
325- *
326- * @param value Value to add.
314+ * @copydoc AbstractList::add()
315+ * @see add()
327316 */
328317 void operator +(T &value) { this ->add (value); }
329318
330319 /* !
331- * @brief Add all entries from the given list at the end of the list.
332- * @see addAll()
333- *
334- * @param list Other list to copy from.
320+ * @copydoc AbstractList::addAll(AbstractList<T>&)
321+ * @see addAll(AbstractList<T>&)
335322 */
336323 void operator +(AbstractList<T> &list) { this ->addAll (list); }
337324};
0 commit comments