Changeset 127 for pjproject/trunk/pjlib/include/pj++/list.hpp
- Timestamp:
- Jan 30, 2006 6:40:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj++/list.hpp
r65 r127 64 64 const_iterator operator++() 65 65 { 66 return const_iterator( node_->next);66 return const_iterator((const List_Node *)node_->next); 67 67 } 68 68 bool operator==(const const_iterator &rhs) … … 100 100 iterator operator++() 101 101 { 102 return iterator( node_->next);102 return iterator((List_Node*)node_->next); 103 103 } 104 104 bool operator==(const iterator &rhs) … … 122 122 123 123 // 124 // You can cast Pj_List to pj_list 125 // 126 operator pj_list&() 127 { 128 return (pj_list&)root_; 129 } 130 operator const pj_list&() 131 { 132 return (const pj_list&)root_; 133 } 134 135 // 136 // You can cast Pj_List to pj_list* too 137 // 138 operator pj_list*() 139 { 140 return (pj_list*)&root_; 141 } 142 operator const pj_list*() 143 { 144 return (const pj_list*)&root_; 145 } 146 147 // 124 148 // Check if list is empty. 125 149 // … … 319 343 // it's because List_Node is not derived from Pj_List_Node. 320 344 List_Node *n = (List_Node*)0; 321 n = n->next; n =n->prev;345 n = (List_Node *)n->next; n = (List_Node *)n->prev; 322 346 } 323 347 };
Note: See TracChangeset
for help on using the changeset viewer.