MythTV  master
Public Types | Public Member Functions | Protected Attributes | List of all members
AutoDeleteDeque< T > Class Template Reference

#include <libmythbase/autodeletedeque.h>

Public Types

using List = typename std::deque< T >
 
using iterator = typename List::iterator
 
using const_iterator = typename List::const_iterator
 
using reverse_iterator = typename List::reverse_iterator
 
using const_reverse_iterator = typename List::const_reverse_iterator
 

Public Member Functions

 AutoDeleteDeque (bool auto_delete=true)
 
 ~AutoDeleteDeque ()
 
operator[] (uint index)
 
operator[] (uint index) const
 
take (uint i)
 
iterator erase (iterator it)
 
void clear (void)
 
iterator begin (void)
 
iterator end (void)
 
const_iterator begin (void) const
 
const_iterator end (void) const
 
const_iterator cbegin (void) const
 
const_iterator cend (void) const
 
reverse_iterator rbegin (void)
 
reverse_iterator rend (void)
 
const_reverse_iterator rbegin (void) const
 
const_reverse_iterator rend (void) const
 
const_reverse_iterator crbegin (void) const
 
const_reverse_iterator crend (void) const
 
back (void)
 
back (void) const
 
bool empty (void) const
 
size_t size (void) const
 
void push_front (T info)
 
void push_back (T info)
 
void setAutoDelete (bool auto_delete)
 

Protected Attributes

List m_list
 
bool m_autodelete
 

Detailed Description

template<typename T>
class AutoDeleteDeque< T >

Definition at line 8 of file autodeletedeque.h.

Member Typedef Documentation

◆ List

template<typename T >
using AutoDeleteDeque< T >::List = typename std::deque< T >

Definition at line 14 of file autodeletedeque.h.

◆ iterator

template<typename T >
using AutoDeleteDeque< T >::iterator = typename List::iterator

Definition at line 15 of file autodeletedeque.h.

◆ const_iterator

template<typename T >
using AutoDeleteDeque< T >::const_iterator = typename List::const_iterator

Definition at line 16 of file autodeletedeque.h.

◆ reverse_iterator

template<typename T >
using AutoDeleteDeque< T >::reverse_iterator = typename List::reverse_iterator

Definition at line 17 of file autodeletedeque.h.

◆ const_reverse_iterator

template<typename T >
using AutoDeleteDeque< T >::const_reverse_iterator = typename List::const_reverse_iterator

Definition at line 18 of file autodeletedeque.h.

Constructor & Destructor Documentation

◆ AutoDeleteDeque()

template<typename T >
AutoDeleteDeque< T >::AutoDeleteDeque ( bool  auto_delete = true)
inlineexplicit

Definition at line 11 of file autodeletedeque.h.

◆ ~AutoDeleteDeque()

template<typename T >
AutoDeleteDeque< T >::~AutoDeleteDeque ( )
inline

Definition at line 12 of file autodeletedeque.h.

Member Function Documentation

◆ operator[]() [1/2]

template<typename T >
T AutoDeleteDeque< T >::operator[] ( uint  index)
inline

Definition at line 20 of file autodeletedeque.h.

◆ operator[]() [2/2]

template<typename T >
T AutoDeleteDeque< T >::operator[] ( uint  index) const
inline

Definition at line 26 of file autodeletedeque.h.

◆ take()

template<typename T >
T AutoDeleteDeque< T >::take ( uint  i)

Definition at line 80 of file autodeletedeque.h.

◆ erase()

template<typename T >
iterator AutoDeleteDeque< T >::erase ( iterator  it)
inline

◆ clear()

template<typename T >
void AutoDeleteDeque< T >::clear ( void  )
inline

◆ begin() [1/2]

template<typename T >
iterator AutoDeleteDeque< T >::begin ( void  )
inline

◆ end() [1/2]

template<typename T >
iterator AutoDeleteDeque< T >::end ( void  )
inline

◆ begin() [2/2]

template<typename T >
const_iterator AutoDeleteDeque< T >::begin ( void  ) const
inline

Definition at line 52 of file autodeletedeque.h.

◆ end() [2/2]

template<typename T >
const_iterator AutoDeleteDeque< T >::end ( void  ) const
inline

Definition at line 53 of file autodeletedeque.h.

◆ cbegin()

template<typename T >
const_iterator AutoDeleteDeque< T >::cbegin ( void  ) const
inline

Definition at line 54 of file autodeletedeque.h.

Referenced by MainServer::HandleAnnounce().

◆ cend()

template<typename T >
const_iterator AutoDeleteDeque< T >::cend ( void  ) const
inline

Definition at line 55 of file autodeletedeque.h.

◆ rbegin() [1/2]

template<typename T >
reverse_iterator AutoDeleteDeque< T >::rbegin ( void  )
inline

Definition at line 56 of file autodeletedeque.h.

Referenced by ProgLister::SortList().

◆ rend() [1/2]

template<typename T >
reverse_iterator AutoDeleteDeque< T >::rend ( void  )
inline

Definition at line 57 of file autodeletedeque.h.

Referenced by ProgLister::SortList().

◆ rbegin() [2/2]

template<typename T >
const_reverse_iterator AutoDeleteDeque< T >::rbegin ( void  ) const
inline

Definition at line 58 of file autodeletedeque.h.

◆ rend() [2/2]

template<typename T >
const_reverse_iterator AutoDeleteDeque< T >::rend ( void  ) const
inline

Definition at line 59 of file autodeletedeque.h.

◆ crbegin()

template<typename T >
const_reverse_iterator AutoDeleteDeque< T >::crbegin ( void  ) const
inline

Definition at line 60 of file autodeletedeque.h.

◆ crend()

template<typename T >
const_reverse_iterator AutoDeleteDeque< T >::crend ( void  ) const
inline

Definition at line 61 of file autodeletedeque.h.

◆ back() [1/2]

template<typename T >
T AutoDeleteDeque< T >::back ( void  )
inline

Definition at line 63 of file autodeletedeque.h.

Referenced by LoadFromRecorded().

◆ back() [2/2]

template<typename T >
T AutoDeleteDeque< T >::back ( void  ) const
inline

Definition at line 64 of file autodeletedeque.h.

◆ empty()

template<typename T >
bool AutoDeleteDeque< T >::empty ( void  ) const
inline

◆ size()

template<typename T >
size_t AutoDeleteDeque< T >::size ( void  ) const
inline

◆ push_front()

template<typename T >
void AutoDeleteDeque< T >::push_front ( info)
inline

Definition at line 68 of file autodeletedeque.h.

◆ push_back()

template<typename T >
void AutoDeleteDeque< T >::push_back ( info)
inline

◆ setAutoDelete()

template<typename T >
void AutoDeleteDeque< T >::setAutoDelete ( bool  auto_delete)
inline

Definition at line 72 of file autodeletedeque.h.

Referenced by ProgLister::FillItemList().

Member Data Documentation

◆ m_list

template<typename T >
List AutoDeleteDeque< T >::m_list
protected

◆ m_autodelete

template<typename T >
bool AutoDeleteDeque< T >::m_autodelete
protected

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