@@ -125,7 +125,8 @@ template <typename T> class AbstractList {
125
125
126
126
public:
127
127
/* !
128
- * @brief Add a new entry at the end of the list.
128
+ * @copybrief AbstractList::addLast()
129
+ * @note Alias of addLast().
129
130
* @see addLast()
130
131
*
131
132
* @param value Value to add.
@@ -166,7 +167,7 @@ template <typename T> class AbstractList {
166
167
167
168
/* !
168
169
* @brief Add all entries from the given list at the end of the list.
169
- * @see addLast ()
170
+ * @see addAll ()
170
171
*
171
172
* @param list Other list to copy from.
172
173
*/
@@ -188,13 +189,9 @@ template <typename T> class AbstractList {
188
189
void addLast (T &value) { addAtIndex (getSize (), value); }
189
190
190
191
/* !
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()
198
195
*/
199
196
T *getPointer (int index) { return get (index); }
200
197
@@ -228,8 +225,9 @@ template <typename T> class AbstractList {
228
225
virtual void remove (int index) = 0;
229
226
230
227
/* !
231
- * @brief Remove all elements from the List.
228
+ * @copybrief AbstractList::clear()
232
229
* @note Alias of clear().
230
+ * @see clear().
233
231
*/
234
232
void removeAll () { clear (); }
235
233
@@ -301,37 +299,26 @@ template <typename T> class AbstractList {
301
299
}
302
300
303
301
/* !
304
- * @brief Get the value of the element at the index.
302
+ * @copydoc AbstractList::getValue()
305
303
* @see getValue()
306
- *
307
- * @param index Index of the element to get.
308
- * @return Value of the element.
309
304
*/
310
305
T operator [](int index) { return getValue (index); }
311
306
312
307
/* !
313
- * @brief Compare two lists whether their attributes and entries are equal.
308
+ * @copydoc AbstractList::equals()
314
309
* @see equals()
315
- *
316
- * @param list Second list to compare.
317
- * @return true if the lists are equal; false otherwise.
318
310
*/
319
311
bool operator ==(AbstractList<T> &list) { return equals (list); }
320
312
321
313
/* !
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()
327
316
*/
328
317
void operator +(T &value) { this ->add (value); }
329
318
330
319
/* !
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>&)
335
322
*/
336
323
void operator +(AbstractList<T> &list) { this ->addAll (list); }
337
324
};
0 commit comments