Plasma Engine  2.0
Loading...
Searching...
No Matches
plList< T, AllocatorWrapper > Class Template Reference

#include <List.h>

Inheritance diagram for plList< T, AllocatorWrapper >:

Public Member Functions

 plList (plAllocator *pAllocator)
 
 plList (const plList< T, AllocatorWrapper > &other)
 
 plList (const plListBase< T > &other)
 
void operator= (const plList< T, AllocatorWrapper > &rhs)
 
void operator= (const plListBase< T > &rhs)
 
- Public Member Functions inherited from plListBase< T >
void Clear ()
 Clears the list, afterwards it is empty.
 
void Compact ()
 See plDeque::Compact()
 
plUInt32 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.
 
T & PushBack ()
 Appends a default-constructed element to the list and returns a reference to it.
 
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.
 
T & PushFront ()
 Appends a default-constructed element to the front of the list and returns a reference to it.
 
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 (plUInt32 uiNewSize)
 Sets the number of elements that are in the list.
 
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 Insert (const Iterator &pos)
 Inserts a default constructed element before the position defined by the iterator.
 
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 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 GetEndIterator () const
 Returns a const-iterator pointing behind the last element. Necessary if one wants to insert elements at the end of a list.
 
plAllocatorGetAllocator () const
 Returns the allocator that is used by this instance.
 
bool operator== (const plListBase< T > &rhs) const
 Comparison operator.
 
 PL_ADD_DEFAULT_OPERATOR_NOTEQUAL (const plListBase< T > &)
 
plUInt64 GetHeapMemoryUsage () const
 Returns the amount of bytes that are currently allocated on the heap.
 

Additional Inherited Members

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

Detailed Description

template<typename T, typename AllocatorWrapper = plDefaultAllocatorWrapper>
class plList< T, AllocatorWrapper >
See also
plListBase

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