29 #ifndef _GLIBCXX_DEBUG_SAFE_BASE_H 30 #define _GLIBCXX_DEBUG_SAFE_BASE_H 1 36 class _Safe_sequence_base;
77 : _M_sequence(0), _M_version(0), _M_prior(0), _M_next(0)
88 : _M_sequence(0), _M_version(0), _M_prior(0), _M_next(0)
89 { this->
_M_attach(const_cast<_Safe_sequence_base*>(__seq), __constant); }
95 : _M_sequence(0), _M_version(0), _M_prior(0), _M_next(0)
130 {
return _M_sequence == __seq; }
194 : _M_iterators(0), _M_const_iterators(0), _M_version(1)
197 #if __cplusplus >= 201103L 205 { this->_M_detach_all(); }
216 _M_detach_singular();
224 _M_revalidate_singular();
242 {
if (++_M_version == 0) _M_version = 1; }
_Safe_iterator_base * _M_const_iterators
The list of constant iterators that reference this container.
unsigned int _M_version
The container version number. This number may never be 0.
_Safe_iterator_base(const _Safe_sequence_base *__seq, bool __constant)
bool _M_can_compare(const _Safe_iterator_base &__x) const
void _M_attach_single(_Safe_sequence_base *__seq, bool __constant)
void _M_invalidate_all() const
void _M_attach(_Safe_sequence_base *__seq, bool __constant)
_Safe_iterator_base(const _Safe_iterator_base &__x, bool __constant)
Basic functionality for a safe iterator.
Base class that supports tracking of iterators that reference a sequence.
__gnu_cxx::__mutex & _M_get_mutex()
GNU debug classes for public use.
bool _M_attached_to(const _Safe_sequence_base *__seq) const
_Safe_iterator_base * _M_next
_Safe_iterator_base * _M_iterators
The list of mutable iterators that reference this container.
_Safe_sequence_base * _M_sequence
_Safe_iterator_base * _M_prior