Definition at line 88 of file kintrusivelist.h.
#include <kintrusivelist.h>
Classes |
|
| class | IntrusiveListConstIterator |
| class | IntrusiveListIterator |
Public Types |
|
| typedef T | allocator_type |
| typedef T | value_type |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef T * | pointer |
| typedef const T * | const_pointer |
| typedef KListNode< T > | NodeT |
| typedef IntrusiveListIterator | iterator |
| typedef IntrusiveListConstIterator | const_iterator |
Public Member Functions |
|
| KIntrusiveList () | |
| ~KIntrusiveList () | |
| bool | Empty () const |
| void | PushBack (T &pElement) |
| void | PushFront (T &pElement) |
| void | PopFront () |
| void | PopBack () |
| iterator | Begin () |
| const_iterator | Begin () const |
| iterator | End () |
| const_iterator | End () const |
| reference | Front () |
| const_reference | Front () const |
| reference | Back () |
| const_reference | Back () const |
| iterator & | Erase (iterator &it) |
| typedef T allocator_type |
Definition at line 91 of file kintrusivelist.h.
| typedef T value_type |
Definition at line 92 of file kintrusivelist.h.
| typedef T& reference |
Definition at line 93 of file kintrusivelist.h.
| typedef const T& const_reference |
Definition at line 94 of file kintrusivelist.h.
| typedef T* pointer |
Definition at line 95 of file kintrusivelist.h.
| typedef const T* const_pointer |
Definition at line 96 of file kintrusivelist.h.
Definition at line 98 of file kintrusivelist.h.
| typedef IntrusiveListIterator iterator |
Definition at line 259 of file kintrusivelist.h.
Definition at line 260 of file kintrusivelist.h.
| KIntrusiveList | ( | ) | [inline] |
Definition at line 101 of file kintrusivelist.h.
| ~KIntrusiveList | ( | ) | [inline] |
Definition at line 105 of file kintrusivelist.h.
{
while(!Empty())
Begin().Get()->Disconnect(); // LINUXNote: should be Erase(Begin()); but there's an issue with gcc 4.2
};
| bool Empty | ( | ) | const [inline] |
Definition at line 112 of file kintrusivelist.h.
| void PushBack | ( | T & | pElement | ) | [inline] |
Definition at line 118 of file kintrusivelist.h.
| void PushFront | ( | T & | pElement | ) | [inline] |
Definition at line 140 of file kintrusivelist.h.
| void PopFront | ( | ) | [inline] |
Definition at line 162 of file kintrusivelist.h.
| void PopBack | ( | ) | [inline] |
| iterator Begin | ( | ) | [inline] |
Definition at line 263 of file kintrusivelist.h.
| const_iterator Begin | ( | ) | const [inline] |
Definition at line 264 of file kintrusivelist.h.
{ return const_iterator(mHead.mNext); }
| iterator End | ( | ) | [inline] |
Definition at line 265 of file kintrusivelist.h.
{ return iterator(&mHead); }
| const_iterator End | ( | ) | const [inline] |
Definition at line 266 of file kintrusivelist.h.
{ return const_iterator(&mHead); }
| reference Front | ( | ) | [inline] |
| const_reference Front | ( | ) | const [inline] |
| reference Back | ( | ) | [inline] |
Definition at line 273 of file kintrusivelist.h.
{ return (*(--End())); }
| const_reference Back | ( | ) | const [inline] |
Definition at line 274 of file kintrusivelist.h.
{ return (*(--End())); }
Definition at line 276 of file kintrusivelist.h.
{
it.Get()->Disconnect();
return (++it);
}