7
* Provides a non-STL alternative to the STL list
9
template <typename FT_LIST_ITEM_TYPE>
10
class FTGL_EXPORT FTList
13
typedef FT_LIST_ITEM_TYPE value_type;
14
typedef value_type& reference;
15
typedef const value_type& const_reference;
16
typedef size_t size_type;
36
for( Node *walk = head; walk; walk = next)
44
* Get the number of items in the list
46
size_type size() const
52
* Add an item to the end of the list
54
void push_back( const value_type& item)
56
Node* node = new Node( item);
58
if( head->next == NULL)
72
* Get the item at the front of the list
74
reference front() const
76
return head->next->payload;
80
* Get the item at the end of the list
82
reference back() const
94
Node( const value_type& item)