Redundant binary counter. More...
#include <rc.hpp>
Public Types | |
typedef entry_const_pointer | const_iterator |
typedef node_pointer | entry |
Public Member Functions | |
rc () | |
rc (const rc &) | |
const const_iterator | begin () const |
void | clear () |
bool | empty () const |
const const_iterator | end () const |
void | pop () |
void | push (entry) |
size_type | size () const |
void | swap (rc &) |
node_pointer | top () const |
Private Types | |
enum | { max_entries = sizeof(size_type) << 3 } |
typedef _Alloc::template rebind< node > | __rebind_n |
typedef _Alloc::template rebind< node_pointer > | __rebind_np |
typedef _Alloc | allocator_type |
typedef __rebind_np::other::const_pointer | entry_const_pointer |
typedef __rebind_np::other::pointer | entry_pointer |
typedef _Node | node |
typedef __rebind_n::other::pointer | node_pointer |
typedef allocator_type::size_type | size_type |
Private Attributes | |
node_pointer | m_a_entries [max_entries] |
size_type | m_over_top |
Redundant binary counter.
|
private |
|
private |
|
private |
typedef entry_const_pointer __gnu_pbds::detail::rc< _Node, _Alloc >::const_iterator |
typedef node_pointer __gnu_pbds::detail::rc< _Node, _Alloc >::entry |
|
private |
|
private |
|
private |
|
private |
|
private |
__gnu_pbds::detail::rc< _Node, _Alloc >::rc | ( | ) |
References PB_DS_ASSERT_VALID.
__gnu_pbds::detail::rc< _Node, _Alloc >::rc | ( | const rc< _Node, _Alloc > & | other | ) |
References PB_DS_ASSERT_VALID.
const rc< _Node, _Alloc >::const_iterator __gnu_pbds::detail::rc< _Node, _Alloc >::begin | ( | ) | const |
void __gnu_pbds::detail::rc< _Node, _Alloc >::clear | ( | ) |
References PB_DS_ASSERT_VALID.
|
inline |
References PB_DS_ASSERT_VALID.
const rc< _Node, _Alloc >::const_iterator __gnu_pbds::detail::rc< _Node, _Alloc >::end | ( | ) | const |
|
inline |
References _GLIBCXX_DEBUG_ASSERT, and PB_DS_ASSERT_VALID.
|
inline |
References _GLIBCXX_DEBUG_ASSERT, and PB_DS_ASSERT_VALID.
|
inline |
|
inline |
References __gnu_pbds::detail::rc< _Node, _Alloc >::m_a_entries, __gnu_pbds::detail::rc< _Node, _Alloc >::m_over_top, __gnu_parallel::max(), PB_DS_ASSERT_VALID, and std::__exception_ptr::swap().
|
inline |
References _GLIBCXX_DEBUG_ASSERT, and PB_DS_ASSERT_VALID.
|
private |
Referenced by __gnu_pbds::detail::rc< _Node, _Alloc >::swap().
|
private |
Referenced by __gnu_pbds::detail::rc< _Node, _Alloc >::swap().