__gnu_cxx::__detail(3) Library Functions Manual __gnu_cxx::__detail(3)NAME
__gnu_cxx::__detail -
SYNOPSIS
Classes
class __mini_vector
class _Bitmap_counter
class _Ffit_finder
Enumerations
enum { _S_max_rope_depth }
enum { bits_per_byte, bits_per_block }
enum _Tag { _S_leaf, _S_concat, _S_substringfn, _S_function }
Functions
void __bit_allocate (size_t *__pbmap, size_t __pos) throw ()
void __bit_free (size_t *__pbmap, size_t __pos) throw ()
template<typename _ForwardIterator , typename _Tp , typename _Compare > _ForwardIterator __lower_bound (_ForwardIterator __first,
_ForwardIterator __last, const _Tp &__val, _Compare __comp)
template<typename _AddrPair > size_t __num_bitmaps (_AddrPair __ap)
template<typename _AddrPair > size_t __num_blocks (_AddrPair __ap)
Detailed Description
Implementation details not part of the namespace __gnu_cxx interface.
Function Documentation
void __gnu_cxx::__detail::__bit_allocate (size_t *__pbmap, size_t__pos) [inline]
Mark a memory address as allocated by re-setting the corresponding bit in the bit-map.
Definition at line 488 of file bitmap_allocator.h.
Referenced by __gnu_cxx::bitmap_allocator< typename >::_M_allocate_single_object().
void __gnu_cxx::__detail::__bit_free (size_t *__pbmap, size_t__pos) [inline]
Mark a memory address as free by setting the corresponding bit in the bit-map.
Definition at line 499 of file bitmap_allocator.h.
Referenced by __gnu_cxx::bitmap_allocator< typename >::_M_deallocate_single_object().
template<typename _AddrPair > size_t __gnu_cxx::__detail::__num_bitmaps (_AddrPair__ap) [inline]
The number of Bit-maps pointed to by the address pair passed to the function.
Definition at line 276 of file bitmap_allocator.h.
References __num_blocks().
Referenced by __gnu_cxx::bitmap_allocator< typename >::_M_allocate_single_object(), and __gnu_cxx::bitmap_allocator< typename
>::_M_deallocate_single_object().
template<typename _AddrPair > size_t __gnu_cxx::__detail::__num_blocks (_AddrPair__ap) [inline]
The number of Blocks pointed to by the address pair passed to the function.
Definition at line 268 of file bitmap_allocator.h.
Referenced by __num_bitmaps().
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Jun 10 2014 __gnu_cxx::__detail(3)
Check Out this Related Man Page
__gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >(3) Library Functions Manual __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >(3)
NAME
__gnu_cxx::temporary_buffer< _ForwardIterator, _Tp > -
SYNOPSIS
Inherits std::_Temporary_buffer< _ForwardIterator, _Tp >.
Public Types
typedef pointer iterator
typedef value_type * pointer
typedef ptrdiff_t size_type
typedef _Tp value_type
Public Member Functions
temporary_buffer (_ForwardIterator __first, _ForwardIterator __last)
~temporary_buffer ()
iterator begin ()
iterator end ()
size_type requested_size () const
size_type size () const
Protected Attributes
pointer _M_buffer
size_type _M_len
size_type _M_original_len
Detailed Description
template<class _ForwardIterator, class _Tp = typename std::iterator_traits<_ForwardIterator>::value_type>struct __gnu_cxx::temporary_buffer<
_ForwardIterator, _Tp >
This class provides similar behavior and semantics of the standard functions get_temporary_buffer() and return_temporary_buffer(), but
encapsulated in a type vaguely resembling a standard container.
By default, a temporary_buffer<Iter> stores space for objects of whatever type the Iter iterator points to. It is constructed from a
typical [first,last) range, and provides the begin(), end(), size() functions, as well as requested_size(). For non-trivial types, copies
of *first will be used to initialize the storage.
malloc is used to obtain underlying storage.
Like get_temporary_buffer(), not all the requested memory may be available. Ideally, the created buffer will be large enough to hold a copy
of [first,last), but if size() is less than requested_size(), then this didn't happen.
Definition at line 183 of file ext/memory.
Constructor & Destructor Documentation
template<class _ForwardIterator , class _Tp = typename std::iterator_traits<_ForwardIterator>::value_type> __gnu_cxx::temporary_buffer<
_ForwardIterator, _Tp >::temporary_buffer (_ForwardIterator__first, _ForwardIterator__last) [inline]
Requests storage large enough to hold a copy of [first,last).
Definition at line 186 of file ext/memory.
template<class _ForwardIterator , class _Tp = typename std::iterator_traits<_ForwardIterator>::value_type> __gnu_cxx::temporary_buffer<
_ForwardIterator, _Tp >::~temporary_buffer () [inline]
Destroys objects and frees storage.
Definition at line 190 of file ext/memory.
Member Function Documentation
template<typename _ForwardIterator, typename _Tp> iterator std::_Temporary_buffer< _ForwardIterator, _Tp >::begin () [inline], [inherited]
As per Table mumble.
Definition at line 151 of file stl_tempbuf.h.
Referenced by std::inplace_merge(), std::stable_partition(), and std::stable_sort().
template<typename _ForwardIterator, typename _Tp> iterator std::_Temporary_buffer< _ForwardIterator, _Tp >::end () [inline], [inherited]
As per Table mumble.
Definition at line 156 of file stl_tempbuf.h.
template<typename _ForwardIterator, typename _Tp> size_type std::_Temporary_buffer< _ForwardIterator, _Tp >::requested_size () const [inline],
[inherited]
Returns the size requested by the constructor; may be >size().
Definition at line 146 of file stl_tempbuf.h.
Referenced by std::stable_partition().
template<typename _ForwardIterator, typename _Tp> size_type std::_Temporary_buffer< _ForwardIterator, _Tp >::size () const [inline],
[inherited]
As per Table mumble.
Definition at line 141 of file stl_tempbuf.h.
Referenced by std::inplace_merge(), std::stable_partition(), and std::stable_sort().
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Jun 10 2014 __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >(3)