version 1.4, 2006/11/10 18:14:58
|
version 1.5, 2007/02/13 19:25:53
|
|
|
| |
void clear(); | void clear(); |
| |
size_t size() const { return _size; } |
Uint32 size() const { return _size; } |
| |
size_t empty() const { return _size == 0; } |
Boolean empty() const { return _size == 0; } |
| |
Linkable* front() { return _front; } | Linkable* front() { return _front; } |
| |
|
|
Magic<0x6456FD0A> _magic; | Magic<0x6456FD0A> _magic; |
Linkable* _front; | Linkable* _front; |
Linkable* _back; | Linkable* _back; |
size_t _size; |
Uint32 _size; |
void (*_destructor)(Linkable*); | void (*_destructor)(Linkable*); |
}; | }; |
| |
|
|
| |
/** Returns the number of elements in the list. | /** Returns the number of elements in the list. |
*/ | */ |
size_t size() const |
Uint32 size() const |
{ | { |
AutoLock al(*this); | AutoLock al(*this); |
return _rep.size(); | return _rep.size(); |
|
|
| |
/** Returns true if the list is empty (i.e., has zero elements). | /** Returns true if the list is empty (i.e., has zero elements). |
*/ | */ |
size_t is_empty() const |
Boolean is_empty() const |
{ | { |
AutoLock al(*this); | AutoLock al(*this); |
return _rep.empty(); | return _rep.empty(); |