381 |
RTList(Pool<T>* pPool) : RTListBase<T>::RTListBase() { |
RTList(Pool<T>* pPool) : RTListBase<T>::RTListBase() { |
382 |
this->pPool = pPool; |
this->pPool = pPool; |
383 |
} |
} |
384 |
|
|
385 |
|
/** |
386 |
|
* Copy constructor |
387 |
|
*/ |
388 |
|
RTList(RTList<T>& list) : RTListBase<T>::RTListBase() { |
389 |
|
this->pPool = list.pPool; |
390 |
|
RTList<T>::Iterator it = list.first(); |
391 |
|
RTList<T>::Iterator end = list.end(); |
392 |
|
for(; it != end; ++it) { |
393 |
|
if (poolIsEmpty()) break; |
394 |
|
*(allocAppend()) = *it; |
395 |
|
} |
396 |
|
} |
397 |
|
|
398 |
virtual ~RTList() { |
virtual ~RTList() { |
399 |
clear(); |
clear(); |