Like _Safe_sequence but with a special _M_invalidate_all implementation not invalidating past-the-end iterators.
More...
#include <safe_sequence.h>
template<typename _Sequence>
class __gnu_debug::_Safe_node_sequence< _Sequence >
Like _Safe_sequence but with a special _M_invalidate_all implementation not invalidating past-the-end iterators.
Used by node based sequence.
void __gnu_debug::_Safe_sequence_base::_M_attach |
( |
_Safe_iterator_base * |
__it, |
|
|
bool |
__constant |
|
) |
| |
|
inherited |
Attach an iterator to this sequence.
void __gnu_debug::_Safe_sequence_base::_M_attach_single |
( |
_Safe_iterator_base * |
__it, |
|
|
bool |
__constant |
|
) |
| |
throw | ( | |
| ) | | |
|
inherited |
Likewise but not thread safe.
Detach an iterator from this sequence.
void __gnu_debug::_Safe_sequence_base::_M_detach_all |
( |
| ) |
|
|
protectedinherited |
void __gnu_debug::_Safe_sequence_base::_M_detach_single |
( |
_Safe_iterator_base * |
__it | ) |
|
throw | ( | |
| ) | | |
|
inherited |
Likewise but not thread safe.
void __gnu_debug::_Safe_sequence_base::_M_detach_singular |
( |
| ) |
|
|
protectedinherited |
Detach all singular iterators.
- Postcondition
- for all iterators i attached to this sequence, i->_M_version == _M_version.
__gnu_cxx::__mutex& __gnu_debug::_Safe_sequence_base::_M_get_mutex |
( |
| ) |
|
throw | ( | |
| ) | | |
|
protectedinherited |
template<typename _Sequence >
void __gnu_debug::_Safe_sequence_base::_M_invalidate_all |
( |
| ) |
const |
|
inlineinherited |
Invalidates all iterators.
template<typename _Sequence>
template<typename _Predicate >
void __gnu_debug::_Safe_sequence_base::_M_revalidate_singular |
( |
| ) |
|
|
protectedinherited |
Revalidates all attached singular iterators.
This method may be used to validate iterators that were invalidated before (but for some reason, such as an exception, need to become valid again).
Swap this sequence with the given sequence.
This operation also swaps ownership of the iterators, so that when the operation is complete all iterators that originally referenced one container now reference the other container.
template<typename _Sequence>
template<typename _Predicate >
Transfers all iterators x
that reference from
sequence, are not singular, and for which __pred(x)
returns true
.
__pred
will be invoked with the normal iterators nested in the safe ones.
The list of constant iterators that reference this container.
The list of mutable iterators that reference this container.
unsigned int __gnu_debug::_Safe_sequence_base::_M_version |
|
mutableinherited |
The container version number. This number may never be 0.
The documentation for this class was generated from the following file: