STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
_Deque_alloc< _Al_has_storage, _Alloc_types > Class Template Reference
Inheritance diagram for _Deque_alloc< _Al_has_storage, _Alloc_types >:
_Deque_val< _Alloc_types::_Val_types > _Container_base12

Public Types

typedef _Deque_alloc< _Al_has_storage, _Alloc_types > _Myt
 
typedef _Alloc_types::_Alloc _Alloc
 
typedef _Alloc_types::_Alty _Alty
 
typedef _Alloc_types::_Alpty _Alpty
 
- Public Types inherited from _Deque_val< _Alloc_types::_Val_types >
typedef _Deque_val< _Alloc_types::_Val_types > _Myt
 
typedef _Alloc_types::_Val_types::value_type value_type
 
typedef _Alloc_types::_Val_types::size_type size_type
 
typedef _Alloc_types::_Val_types::difference_type difference_type
 
typedef _Alloc_types::_Val_types::pointer pointer
 
typedef _Alloc_types::_Val_types::const_pointer const_pointer
 
typedef _Alloc_types::_Val_types::reference reference
 
typedef _Alloc_types::_Val_types::const_reference const_reference
 
typedef _Alloc_types::_Val_types::_Mapptr _Mapptr
 
typedef _Deque_iterator< _Mytiterator
 
typedef _Deque_const_iterator< _Mytconst_iterator
 

Public Member Functions

 _Deque_alloc (const _Alloc &_Al=_Alloc())
 
 ~_Deque_alloc () _NOEXCEPT
 
void _Change_alloc (const _Alty &_Al)
 
void _Swap_alloc (_Myt &_Right)
 
void _Alloc_proxy ()
 
void _Free_proxy ()
 
_Alty_Getal ()
 
const _Alty_Getal () const
 
- Public Member Functions inherited from _Deque_val< _Alloc_types::_Val_types >
 _Deque_val ()
 
size_type _Getblock (size_type _Off) const
 
- Public Member Functions inherited from _Container_base12
 _Container_base12 ()
 
 _Container_base12 (const _Container_base12 &)
 
_Container_base12operator= (const _Container_base12 &)
 
 ~_Container_base12 () _NOEXCEPT
 
_Iterator_base12 ** _Getpfirst () const
 
void _Orphan_all ()
 
void _Swap_all (_Container_base12 &)
 

Public Attributes

_Alloc_types::_Alty _Alval
 
- Public Attributes inherited from _Deque_val< _Alloc_types::_Val_types >
_Mapptr _Map
 
size_type _Mapsize
 
size_type _Myoff
 
size_type _Mysize
 
- Public Attributes inherited from _Container_base12
_Container_proxy_Myproxy
 

Member Typedef Documentation

template<bool _Al_has_storage, class _Alloc_types>
typedef _Alloc_types::_Alloc _Deque_alloc< _Al_has_storage, _Alloc_types >::_Alloc
template<bool _Al_has_storage, class _Alloc_types>
typedef _Alloc_types::_Alpty _Deque_alloc< _Al_has_storage, _Alloc_types >::_Alpty
template<bool _Al_has_storage, class _Alloc_types>
typedef _Alloc_types::_Alty _Deque_alloc< _Al_has_storage, _Alloc_types >::_Alty
template<bool _Al_has_storage, class _Alloc_types>
typedef _Deque_alloc<_Al_has_storage, _Alloc_types> _Deque_alloc< _Al_has_storage, _Alloc_types >::_Myt

Constructor & Destructor Documentation

template<bool _Al_has_storage, class _Alloc_types>
_Deque_alloc< _Al_has_storage, _Alloc_types >::_Deque_alloc ( const _Alloc _Al = _Alloc())
inline
807  : _Alval(_Al)
808  { // construct allocators from _Al
809  _Alloc_proxy();
810  }
void _Alloc_proxy()
Definition: deque:830
_Alloc_types::_Alty _Alval
Definition: deque:798
template<bool _Al_has_storage, class _Alloc_types>
_Deque_alloc< _Al_has_storage, _Alloc_types >::~_Deque_alloc ( )
inline
813  { // destroy proxy
814  _Free_proxy();
815  }
void _Free_proxy()
Definition: deque:839

Member Function Documentation

template<bool _Al_has_storage, class _Alloc_types>
void _Deque_alloc< _Al_has_storage, _Alloc_types >::_Alloc_proxy ( )
inline
831  { // construct proxy from _Alval
832  typename _Alty::template rebind<_Container_proxy>::other
833  _Alproxy(this->_Alval);
834  this->_Myproxy = _Alproxy.allocate(1);
835  _Alproxy.construct(this->_Myproxy, _Container_proxy());
836  this->_Myproxy->_Mycont = this;
837  }
const _Container_base12 * _Mycont
Definition: xutility:71
_Alloc_types::_Alty _Alval
Definition: deque:798
Definition: xutility:64
_Container_proxy * _Myproxy
Definition: xutility:106
template<bool _Al_has_storage, class _Alloc_types>
void _Deque_alloc< _Al_has_storage, _Alloc_types >::_Change_alloc ( const _Alty _Al)
inline
818  { // replace old allocator
819  _Free_proxy();
820  this->_Alval = _Al;
821  _Alloc_proxy();
822  }
void _Alloc_proxy()
Definition: deque:830
void _Free_proxy()
Definition: deque:839
_Alloc_types::_Alty _Alval
Definition: deque:798
template<bool _Al_has_storage, class _Alloc_types>
void _Deque_alloc< _Al_has_storage, _Alloc_types >::_Free_proxy ( )
inline
840  { // destroy proxy
841  typename _Alty::template rebind<_Container_proxy>::other
842  _Alproxy(this->_Alval);
843  this->_Orphan_all();
844  _Alproxy.destroy(this->_Myproxy);
845  _Alproxy.deallocate(this->_Myproxy, 1);
846  this->_Myproxy = 0;
847  }
_Alloc_types::_Alty _Alval
Definition: deque:798
void _Orphan_all()
Definition: xutility:213
_Container_proxy * _Myproxy
Definition: xutility:106
template<bool _Al_has_storage, class _Alloc_types>
_Alty& _Deque_alloc< _Al_has_storage, _Alloc_types >::_Getal ( )
inline
850  { // get reference to allocator
851  return (this->_Alval);
852  }
_Alloc_types::_Alty _Alval
Definition: deque:798
template<bool _Al_has_storage, class _Alloc_types>
const _Alty& _Deque_alloc< _Al_has_storage, _Alloc_types >::_Getal ( ) const
inline
855  { // get reference to allocator
856  return (this->_Alval);
857  }
_Alloc_types::_Alty _Alval
Definition: deque:798
template<bool _Al_has_storage, class _Alloc_types>
void _Deque_alloc< _Al_has_storage, _Alloc_types >::_Swap_alloc ( _Myt _Right)
inline
825  { // swap allocators
826  _Swap_adl(this->_Alval, _Right._Alval);
827  _Swap_adl(this->_Myproxy, _Right._Myproxy);
828  }
_Alloc_types::_Alty _Alval
Definition: deque:798
_Container_proxy * _Myproxy
Definition: xutility:106
const _Ty & _Right
Definition: algorithm:4087

Member Data Documentation

template<bool _Al_has_storage, class _Alloc_types>
_Alloc_types::_Alty _Deque_alloc< _Al_has_storage, _Alloc_types >::_Alval

The documentation for this class was generated from the following file: