ezEngine  Milestone 7
ezList< T, AllocatorWrapper > Class Template Reference

#include <List.h>

Inheritance diagram for ezList< T, AllocatorWrapper >:

Public Member Functions

 ezList (ezAllocatorBase *pAllocator)
 
 ezList (const ezList< T, AllocatorWrapper > &other)
 
 ezList (const ezListBase< T > &other)
 
void operator= (const ezList< T, AllocatorWrapper > &rhs)
 
void operator= (const ezListBase< T > &rhs)
 
- Public Member Functions inherited from ezListBase< T >
void Clear ()
 Clears the list, afterwards it is empty.
 
ezUInt32 GetCount () const
 Returns the number of elements in the list. O(1) operation.
 
bool IsEmpty () const
 Returns whether size == 0. O(1) operation.
 
const T & PeekFront () const
 Returns the very first element in the list.
 
const T & PeekBack () const
 Returns the very last element in the list.
 
T & PeekFront ()
 Returns the very first element in the list.
 
T & PeekBack ()
 Returns the very last element in the list.
 
void PushBack ()
 Appends a default-constructed element to the list.
 
void PushBack (const T &element)
 Appends a copy of the given element to the list.
 
void PopBack ()
 Removes the very last element from the list.
 
void PushFront ()
 Appends a default-constructed element to the front of the list.
 
void PushFront (const T &element)
 Appends a copy of the given element to the front of the list.
 
void PopFront ()
 Removes the very first element from the list.
 
void SetCount (ezUInt32 uiNewSize)
 Sets the number of elements that are in the list. More...
 
Iterator Insert (const Iterator &pos, const T &data)
 Inserts one element before the position defined by the iterator.
 
void Insert (const Iterator &pos, ConstIterator first, const ConstIterator &last)
 Inserts the range defined by [first;last) after pos.
 
Iterator Remove (const Iterator &pos)
 Erases the element pointed to by the iterator.
 
Iterator Remove (Iterator first, const Iterator &last)
 Erases range [first; last).
 
Iterator GetIterator ()
 Returns an iterator to the first list-element.
 
Iterator GetLastIterator ()
 Returns an iterator to the last list-element. Can be used for reverse iteration.
 
Iterator GetEndIterator ()
 Returns an iterator pointing behind the last element. Necessary if one wants to insert elements at the end of a list.
 
ConstIterator GetIterator () const
 Returns a const-iterator to the first list-element.
 
ConstIterator GetLastIterator () const
 Returns a const-iterator to the last list-element. Can be used for reverse iteration.
 
ConstIterator GetEndIterator () const
 Returns a const-iterator pointing behind the last element. Necessary if one wants to insert elements at the end of a list.
 
ezAllocatorBaseGetAllocator () const
 Returns the allocator that is used by this instance.
 
bool operator== (const ezListBase< T > &rhs) const
 Comparison operator.
 
bool operator!= (const ezListBase< T > &rhs) const
 Comparison operator.
 
ezUInt64 GetHeapMemoryUsage () const
 Returns the amount of bytes that are currently allocated on the heap.
 

Additional Inherited Members

- Protected Member Functions inherited from ezListBase< T >
 ezListBase (ezAllocatorBase *pAllocator)
 Initializes the list to be empty.
 
 ezListBase (const ezListBase< T > &cc, ezAllocatorBase *pAllocator)
 Initializes the list with a copy from another list.
 
 ~ezListBase ()
 Destroys the list and all its content.
 
void operator= (const ezListBase< T > &cc)
 Copies the list cc into this list.
 

Detailed Description

template<typename T, typename AllocatorWrapper = ezDefaultAllocatorWrapper>
class ezList< T, AllocatorWrapper >

See Also
ezListBase

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