Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
pandora::MyList< T > Class Template Reference

Wrapper around std::list. More...

#include "PandoraInternal.h"

Public Types

typedef std::list< T > TheList
 
typedef TheList::const_iterator const_iterator
 
typedef TheList::const_iterator iterator
 
typedef TheList::value_type value_type
 

Public Member Functions

 MyList ()
 Default constructor.
 
 MyList (const MyList &rhs)
 Copy constructor.
 
 MyList (size_t n, const value_type &val=value_type())
 Constructor.
 
template<class InputIterator >
 MyList (InputIterator first, InputIterator last)
 Constructor.
 
 ~MyList ()
 Destructor.
 
void operator= (const MyList &rhs)
 operator=
 
const_iterator begin () const
 begin
 
const_iterator end () const
 end
 
void push_back (const value_type &val)
 push_back
 
iterator erase (const_iterator position)
 erase
 
template<class InputIterator >
void insert (const_iterator position, InputIterator first, InputIterator last)
 insert
 
template<class Compare >
void sort (Compare comp)
 sort
 
unsigned int size () const
 size
 
bool empty () const
 empty
 
void clear ()
 clear
 

Private Attributes

TheList m_theList
 The list.
 

Detailed Description

template<typename T>
class pandora::MyList< T >

Wrapper around std::list.

Definition at line 178 of file PandoraInternal.h.

Member Typedef Documentation

◆ const_iterator

template<typename T >
typedef TheList::const_iterator pandora::MyList< T >::const_iterator

Definition at line 182 of file PandoraInternal.h.

◆ iterator

template<typename T >
typedef TheList::const_iterator pandora::MyList< T >::iterator

Definition at line 183 of file PandoraInternal.h.

◆ TheList

template<typename T >
typedef std::list<T> pandora::MyList< T >::TheList

Definition at line 181 of file PandoraInternal.h.

◆ value_type

template<typename T >
typedef TheList::value_type pandora::MyList< T >::value_type

Definition at line 184 of file PandoraInternal.h.

Constructor & Destructor Documentation

◆ MyList() [1/4]

template<typename T >
pandora::MyList< T >::MyList ( )
inline

Default constructor.

Definition at line 295 of file PandoraInternal.h.

◆ MyList() [2/4]

template<typename T >
pandora::MyList< T >::MyList ( const MyList< T > &  rhs)
inline

Copy constructor.

Parameters
rhs

Definition at line 302 of file PandoraInternal.h.

◆ MyList() [3/4]

template<typename T >
pandora::MyList< T >::MyList ( size_t  n,
const value_type val = value_type() 
)
inline

Constructor.

Parameters
n
val

Definition at line 310 of file PandoraInternal.h.

◆ MyList() [4/4]

template<typename T >
template<class InputIterator >
pandora::MyList< T >::MyList ( InputIterator  first,
InputIterator  last 
)
inline

Constructor.

Parameters
first
last

Definition at line 319 of file PandoraInternal.h.

◆ ~MyList()

template<typename T >
pandora::MyList< T >::~MyList ( )
inline

Destructor.

Definition at line 327 of file PandoraInternal.h.

Member Function Documentation

◆ begin()

template<typename T >
MyList< T >::const_iterator pandora::MyList< T >::begin ( ) const
inline

begin

Definition at line 342 of file PandoraInternal.h.

◆ clear()

template<typename T >
void pandora::MyList< T >::clear ( )
inline

clear

Definition at line 423 of file PandoraInternal.h.

◆ empty()

template<typename T >
bool pandora::MyList< T >::empty ( ) const
inline

empty

Returns
boolean

Definition at line 415 of file PandoraInternal.h.

◆ end()

template<typename T >
MyList< T >::const_iterator pandora::MyList< T >::end ( ) const
inline

end

Definition at line 350 of file PandoraInternal.h.

◆ erase()

template<typename T >
MyList< T >::iterator pandora::MyList< T >::erase ( const_iterator  position)
inline

erase

Parameters
position

Definition at line 372 of file PandoraInternal.h.

◆ insert()

template<typename T >
template<class InputIterator >
void pandora::MyList< T >::insert ( const_iterator  position,
InputIterator  first,
InputIterator  last 
)
inline

insert

Parameters
position
first
last

Definition at line 381 of file PandoraInternal.h.

◆ operator=()

template<typename T >
void pandora::MyList< T >::operator= ( const MyList< T > &  rhs)
inline

operator=

Parameters
rhs

Definition at line 334 of file PandoraInternal.h.

◆ push_back()

template<typename T >
void pandora::MyList< T >::push_back ( const value_type val)
inline

push_back

Parameters
val

Definition at line 358 of file PandoraInternal.h.

◆ size()

template<typename T >
unsigned int pandora::MyList< T >::size ( ) const
inline

size

Returns
size

Definition at line 407 of file PandoraInternal.h.

◆ sort()

template<typename T >
template<class Compare >
void pandora::MyList< T >::sort ( Compare  comp)
inline

sort

Parameters
comp

Definition at line 399 of file PandoraInternal.h.

Member Data Documentation

◆ m_theList

template<typename T >
TheList pandora::MyList< T >::m_theList
private

The list.

Definition at line 289 of file PandoraInternal.h.


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