TwiceAsNice  2019-02-18
Public Types | Public Member Functions | Private Attributes | List of all members
Nice::deque< T, Allocator > Class Template Reference

#include <Deque.h>

Collaboration diagram for Nice::deque< T, Allocator >:
Collaboration graph

Public Types

typedef std::deque< T, Allocator >::iterator iterator
 
typedef std::deque< T, Allocator >::const_iterator const_iterator
 
typedef std::deque< T, Allocator >::reverse_iterator reverse_iterator
 
typedef std::deque< T, Allocator >::const_reverse_iterator const_reverse_iterator
 
typedef std::deque< T, Allocator >::allocator_type allocator_type
 
typedef std::deque< T, Allocator >::value_type value_type
 
typedef std::deque< T, Allocator >::size_type size_type
 
typedef std::deque< T, Allocator >::difference_type difference_type
 

Public Member Functions

 deque (const Allocator &alloc=Allocator())
 
 deque (size_type n, const T &value=T(), const Allocator &alloc=Allocator())
 
template<class InputIterator >
 deque (InputIterator first, InputIterator last, const Allocator &alloc=Allocator())
 
 deque (const Nice::deque< T, Allocator > &x)
 
Nice::deque< T, Allocator > & operator= (const Nice::deque< T, Allocator > &x)
 
 ~deque (void)
 
iterator begin (void)
 
const_iterator begin (void) const
 
iterator end (void)
 
const_iterator end (void) const
 
reverse_iterator rbegin (void)
 
const_reverse_iterator rbegin (void) const
 
reverse_iterator rend (void)
 
const_reverse_iterator rend (void) const
 
size_type size (void) const
 
size_type max_size (void) const
 
void resize (size_type n, T c=T())
 
bool empty (void) const
 
T & operator[] (size_type n)
 
const T & operator[] (size_type n) const
 
T & at (size_type n)
 
const T & at (size_type n) const
 
T & front (void)
 
const T & front (void) const
 
T & back (void)
 
const T & back (void) const
 
void assign (size_type n, T &u)
 
template<class InputIterator >
void assign (InputIterator begin, InputIterator end)
 
void push_back (const T &u)
 
void pop_back (void)
 
void push_front (const T &u)
 
void pop_front (void)
 
iterator insert (iterator pos, const T &u)
 
void insert (iterator pos, size_type n, const T &u)
 
template<class InputIterator >
void insert (iterator pos, InputIterator begin, InputIterator end)
 
void erase (iterator pos)
 
void erase (iterator begin, iterator end)
 
void swap (Nice::deque< T, Allocator > &x)
 
void clear (void)
 
allocator_type get_allocator (void) const
 
 operator std::deque< T, Allocator > ()
 

Private Attributes

std::deque< T, Allocator > storage
 
boost::mutex mutex
 

Member Typedef Documentation

◆ allocator_type

template<class T , class Allocator = std::allocator<T>>
typedef std::deque<T, Allocator>::allocator_type Nice::deque< T, Allocator >::allocator_type

◆ const_iterator

template<class T , class Allocator = std::allocator<T>>
typedef std::deque<T, Allocator>::const_iterator Nice::deque< T, Allocator >::const_iterator

◆ const_reverse_iterator

template<class T , class Allocator = std::allocator<T>>
typedef std::deque<T, Allocator>::const_reverse_iterator Nice::deque< T, Allocator >::const_reverse_iterator

◆ difference_type

template<class T , class Allocator = std::allocator<T>>
typedef std::deque<T, Allocator>::difference_type Nice::deque< T, Allocator >::difference_type

◆ iterator

template<class T , class Allocator = std::allocator<T>>
typedef std::deque<T, Allocator>::iterator Nice::deque< T, Allocator >::iterator

◆ reverse_iterator

template<class T , class Allocator = std::allocator<T>>
typedef std::deque<T, Allocator>::reverse_iterator Nice::deque< T, Allocator >::reverse_iterator

◆ size_type

template<class T , class Allocator = std::allocator<T>>
typedef std::deque<T, Allocator>::size_type Nice::deque< T, Allocator >::size_type

◆ value_type

template<class T , class Allocator = std::allocator<T>>
typedef std::deque<T, Allocator>::value_type Nice::deque< T, Allocator >::value_type

Constructor & Destructor Documentation

◆ deque() [1/4]

template<class T , class Allocator = std::allocator<T>>
Nice::deque< T, Allocator >::deque ( const Allocator &  alloc = Allocator())
inlineexplicit

◆ deque() [2/4]

template<class T , class Allocator = std::allocator<T>>
Nice::deque< T, Allocator >::deque ( size_type  n,
const T &  value = T(),
const Allocator &  alloc = Allocator() 
)
inlineexplicit

◆ deque() [3/4]

template<class T , class Allocator = std::allocator<T>>
template<class InputIterator >
Nice::deque< T, Allocator >::deque ( InputIterator  first,
InputIterator  last,
const Allocator &  alloc = Allocator() 
)
inline

◆ deque() [4/4]

template<class T , class Allocator = std::allocator<T>>
Nice::deque< T, Allocator >::deque ( const Nice::deque< T, Allocator > &  x)
inline

◆ ~deque()

template<class T , class Allocator = std::allocator<T>>
Nice::deque< T, Allocator >::~deque ( void  )
inline

Member Function Documentation

◆ assign() [1/2]

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::assign ( size_type  n,
T &  u 
)
inline

◆ assign() [2/2]

template<class T , class Allocator = std::allocator<T>>
template<class InputIterator >
void Nice::deque< T, Allocator >::assign ( InputIterator  begin,
InputIterator  end 
)
inline

◆ at() [1/2]

template<class T , class Allocator = std::allocator<T>>
T& Nice::deque< T, Allocator >::at ( size_type  n)
inline

◆ at() [2/2]

template<class T , class Allocator = std::allocator<T>>
const T& Nice::deque< T, Allocator >::at ( size_type  n) const
inline

◆ back() [1/2]

template<class T , class Allocator = std::allocator<T>>
T& Nice::deque< T, Allocator >::back ( void  )
inline

◆ back() [2/2]

template<class T , class Allocator = std::allocator<T>>
const T& Nice::deque< T, Allocator >::back ( void  ) const
inline

◆ begin() [1/2]

template<class T , class Allocator = std::allocator<T>>
iterator Nice::deque< T, Allocator >::begin ( void  )
inline

◆ begin() [2/2]

template<class T , class Allocator = std::allocator<T>>
const_iterator Nice::deque< T, Allocator >::begin ( void  ) const
inline

◆ clear()

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::clear ( void  )
inline

◆ empty()

template<class T , class Allocator = std::allocator<T>>
bool Nice::deque< T, Allocator >::empty ( void  ) const
inline

◆ end() [1/2]

template<class T , class Allocator = std::allocator<T>>
iterator Nice::deque< T, Allocator >::end ( void  )
inline

◆ end() [2/2]

template<class T , class Allocator = std::allocator<T>>
const_iterator Nice::deque< T, Allocator >::end ( void  ) const
inline

◆ erase() [1/2]

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::erase ( iterator  pos)
inline

◆ erase() [2/2]

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::erase ( iterator  begin,
iterator  end 
)
inline

◆ front() [1/2]

template<class T , class Allocator = std::allocator<T>>
T& Nice::deque< T, Allocator >::front ( void  )
inline

◆ front() [2/2]

template<class T , class Allocator = std::allocator<T>>
const T& Nice::deque< T, Allocator >::front ( void  ) const
inline

◆ get_allocator()

template<class T , class Allocator = std::allocator<T>>
allocator_type Nice::deque< T, Allocator >::get_allocator ( void  ) const
inline

◆ insert() [1/3]

template<class T , class Allocator = std::allocator<T>>
iterator Nice::deque< T, Allocator >::insert ( iterator  pos,
const T &  u 
)
inline

◆ insert() [2/3]

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::insert ( iterator  pos,
size_type  n,
const T &  u 
)
inline

◆ insert() [3/3]

template<class T , class Allocator = std::allocator<T>>
template<class InputIterator >
void Nice::deque< T, Allocator >::insert ( iterator  pos,
InputIterator  begin,
InputIterator  end 
)
inline

◆ max_size()

template<class T , class Allocator = std::allocator<T>>
size_type Nice::deque< T, Allocator >::max_size ( void  ) const
inline

◆ operator std::deque< T, Allocator >()

template<class T , class Allocator = std::allocator<T>>
Nice::deque< T, Allocator >::operator std::deque< T, Allocator > ( )
inline

◆ operator=()

template<class T , class Allocator = std::allocator<T>>
Nice::deque<T,Allocator>& Nice::deque< T, Allocator >::operator= ( const Nice::deque< T, Allocator > &  x)
inline

◆ operator[]() [1/2]

template<class T , class Allocator = std::allocator<T>>
T& Nice::deque< T, Allocator >::operator[] ( size_type  n)
inline

◆ operator[]() [2/2]

template<class T , class Allocator = std::allocator<T>>
const T& Nice::deque< T, Allocator >::operator[] ( size_type  n) const
inline

◆ pop_back()

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::pop_back ( void  )
inline

◆ pop_front()

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::pop_front ( void  )
inline

◆ push_back()

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::push_back ( const T &  u)
inline

◆ push_front()

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::push_front ( const T &  u)
inline

◆ rbegin() [1/2]

template<class T , class Allocator = std::allocator<T>>
reverse_iterator Nice::deque< T, Allocator >::rbegin ( void  )
inline

◆ rbegin() [2/2]

template<class T , class Allocator = std::allocator<T>>
const_reverse_iterator Nice::deque< T, Allocator >::rbegin ( void  ) const
inline

◆ rend() [1/2]

template<class T , class Allocator = std::allocator<T>>
reverse_iterator Nice::deque< T, Allocator >::rend ( void  )
inline

◆ rend() [2/2]

template<class T , class Allocator = std::allocator<T>>
const_reverse_iterator Nice::deque< T, Allocator >::rend ( void  ) const
inline

◆ resize()

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::resize ( size_type  n,
c = T() 
)
inline

◆ size()

template<class T , class Allocator = std::allocator<T>>
size_type Nice::deque< T, Allocator >::size ( void  ) const
inline

◆ swap()

template<class T , class Allocator = std::allocator<T>>
void Nice::deque< T, Allocator >::swap ( Nice::deque< T, Allocator > &  x)
inline

Member Data Documentation

◆ mutex

template<class T , class Allocator = std::allocator<T>>
boost::mutex Nice::deque< T, Allocator >::mutex
mutableprivate

◆ storage

template<class T , class Allocator = std::allocator<T>>
std::deque<T, Allocator> Nice::deque< T, Allocator >::storage
private

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