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; }
201 : _M_iterators(0), _M_const_iterators(0), _M_version(1)
204 #if __cplusplus >= 201103L 212 { this->_M_detach_all(); }
223 _M_detach_singular();
231 _M_revalidate_singular();
249 {
if (++_M_version == 0) _M_version = 1; }
_Safe_iterator_base(const _Safe_sequence_base *__seq, bool __constant)
Basic functionality for a safe iterator.
GNU debug classes for public use.
_Safe_iterator_base * _M_const_iterators
The list of constant iterators that reference this container.
Base class that supports tracking of iterators that reference a sequence.
_Safe_iterator_base(const _Safe_iterator_base &__x, bool __constant)
void _M_attach(_Safe_sequence_base *__seq, bool __constant)
void _M_invalidate_all() const
__gnu_cxx::__mutex & _M_get_mutex()
_Safe_iterator_base * _M_iterators
The list of mutable iterators that reference this container.
_Safe_iterator_base * _M_next
unsigned int _M_version
The container version number. This number may never be 0.
bool _M_attached_to(const _Safe_sequence_base *__seq) const
_Safe_sequence_base * _M_sequence
_Safe_iterator_base * _M_prior
bool _M_can_compare(const _Safe_iterator_base &__x) const
void _M_attach_single(_Safe_sequence_base *__seq, bool __constant)