36 data_ =
reinterpret_cast<T *
>((
reinterpret_cast<const Link *
>(data_))->next);
49 data_ =
reinterpret_cast<T *
>((
reinterpret_cast<const Link *
>(data_))->prev);
62 return a.data_ ==
b.data_;
67 return a.data_ !=
b.data_;
94 data_ =
reinterpret_cast<T *
>(
reinterpret_cast<const Link *
>(data_)->
next);
108 return a.data_ ==
b.data_;
113 return a.data_ !=
b.data_;
118 return {index_, *data_};
146 T *current_ =
nullptr;
153 next_ =
reinterpret_cast<T *
>((
reinterpret_cast<const Link *
>(current_))->next);
161 next_ =
reinterpret_cast<T *
>((
reinterpret_cast<const Link *
>(current_))->next);
175 return a.current_ ==
b.current_;
180 return a.current_ !=
b.current_;
220 data_ =
reinterpret_cast<T *
>((
reinterpret_cast<const Link *
>(data_))->prev);
233 return a.data_ ==
b.data_;
238 return a.data_ !=
b.data_;
271 T *current_ =
nullptr;
278 prev_ =
reinterpret_cast<T *
>((
reinterpret_cast<const Link *
>(current_))->prev);
286 prev_ =
reinterpret_cast<T *
>((
reinterpret_cast<const Link *
>(current_))->prev);
301 return a.current_ ==
b.current_;
307 return a.current_ !=
b.current_;
These structs are the foundation for all linked lists in the library system.
BMesh const char void * data
ListBaseBackwardIterator & operator++()
friend bool operator==(const ListBaseBackwardIterator &a, const ListBaseBackwardIterator &b)
std::forward_iterator_tag iterator_category
ListBaseBackwardIterator operator++(int)
ListBaseBackwardIterator(T *data)
std::ptrdiff_t difference_type
friend bool operator!=(const ListBaseBackwardIterator &a, const ListBaseBackwardIterator &b)
ListBaseBackwardIterator< T > begin() const
ListBaseBackwardIterator< T > end() const
std::pair< int, T & > value_type
friend bool operator==(const ListBaseEnumerateIterator &a, const ListBaseEnumerateIterator &b)
ListBaseEnumerateIterator & operator++()
std::forward_iterator_tag iterator_category
value_type operator*() const
ListBaseEnumerateIterator(T *data, int index)
ListBaseEnumerateIterator operator++(int)
std::ptrdiff_t difference_type
friend bool operator!=(const ListBaseEnumerateIterator &a, const ListBaseEnumerateIterator &b)
ListBaseEnumerateIterator< T > begin() const
ListBaseEnumerateIterator< T > end() const
std::forward_iterator_tag iterator_category
friend bool operator!=(const ListBaseMutableBackwardIterator &a, const ListBaseMutableBackwardIterator &b)
std::ptrdiff_t difference_type
ListBaseMutableBackwardIterator(T *data)
ListBaseMutableBackwardIterator & operator++()
friend bool operator==(const ListBaseMutableBackwardIterator &a, const ListBaseMutableBackwardIterator &b)
ListBaseMutableBackwardIterator operator++(int)
ListBaseMutableBackwardIterator< T > end() const
ListBaseMutableBackwardIterator< T > begin() const
ListBaseMutableIterator(T *data)
std::ptrdiff_t difference_type
friend bool operator==(const ListBaseMutableIterator &a, const ListBaseMutableIterator &b)
friend bool operator!=(const ListBaseMutableIterator &a, const ListBaseMutableIterator &b)
ListBaseMutableIterator & operator++()
ListBaseMutableIterator operator++(int)
std::forward_iterator_tag iterator_category
ListBaseMutableIterator< T > begin() const
ListBaseMutableIterator< T > end() const
ListBaseTIterator & operator++()
std::bidirectional_iterator_tag iterator_category
ListBaseTIterator & operator--()
ListBaseTIterator(T *data)
std::ptrdiff_t difference_type
friend bool operator!=(const ListBaseTIterator &a, const ListBaseTIterator &b)
friend bool operator==(const ListBaseTIterator &a, const ListBaseTIterator &b)
ListBaseTIterator operator--(int)
ListBaseTIterator operator++(int)