List<T> Class

Most fundamental container class. The list is like an array that can grow.

Template Parameters

T

Constraint

T  is  Semiregular

Constructors & Destructor

public nothrow List()
public nothrow List(List&& that)
public List(const List& that)
public List(long n, const T& value)
public ~List()

Member Functions

public void Add(T&& item)
public void Add(const T& item)
public inline T& Back()
public inline const T& Back() const
public inline nothrow RandomAccessIter<T, T&, T*> Begin()
public inline nothrow RandomAccessIter<T, const T&, const T*> Begin() const
public inline nothrow RandomAccessIter<T, const T&, const T*> CBegin() const
public inline nothrow RandomAccessIter<T, const T&, const T*> CEnd() const
public inline nothrow long Capacity() const
public nothrow void Clear()
public inline nothrow long Count() const
private nothrow void Destroy()
public inline nothrow RandomAccessIter<T, T&, T*> End()
public inline nothrow RandomAccessIter<T, const T&, const T*> End() const
public inline T& Front()
public inline const T& Front() const
private void Grow(long minRes)
public RandomAccessIter<T, T&, T*> Insert(RandomAccessIter<T, T&, T*> pos, T&& item)
public RandomAccessIter<T, T&, T*> Insert(RandomAccessIter<T, T&, T*> pos, const T& item)
public RandomAccessIter<T, T&, T*> InsertFront(T&& item)
public RandomAccessIter<T, T&, T*> InsertFront(const T& item)
public inline nothrow bool IsEmpty() const
public T Remove(RandomAccessIter<T, T&, T*> pos)
public void Remove(const T& item)
public T RemoveFirst()
public T RemoveLast()
public void Reserve(long minRes)
public void Resize(long newCount)
public nothrow void operator=(List&& that)
public void operator=(const List& that)
public inline T& operator[](long index)
public inline const T& operator[](long index) const

Typedefs

public typedef ConstIterator RandomAccessIter<T, const T&, const T*>
public typedef Iterator RandomAccessIter<T, T&, T*>
private typedef Self List
public typedef ValueType T

Member Variables

private long count
private T* items
private long res

Constructor& Destructor Details

List Constructor

public nothrow List()

Definition
Line 19 of System.Base/List.cm


List Constructor

public nothrow List(List&& that)

Definition
Line 30 of System.Base/List.cm


List Constructor

public List(const List& that)

Definition
Line 22 of System.Base/List.cm


List Constructor

public List(long n, const T& value)

Definition
Line 36 of System.Base/List.cm


~List Destructor

public ~List()

Definition
Line 62 of System.Base/List.cm


Member Function Details

Add Member Function

public void Add(T&& item)

Constraint
T  is  Movable
Definition
Line 121 of System.Base/List.cm


Add Member Function

public void Add(const T& item)

Constraint
T  is  Copyable
Definition
Line 115 of System.Base/List.cm


Back Member Function

public inline T& Back()

Definition
Line 308 of System.Base/List.cm


Back Member Function

public inline const T& Back()

Definition
Line 300 of System.Base/List.cm


Begin Member Function

public inline nothrow RandomAccessIter<T, T&, T*> Begin()

Definition
Line 248 of System.Base/List.cm


Begin Member Function

public inline nothrow RandomAccessIter<T, const T&, const T*> Begin()

Definition
Line 252 of System.Base/List.cm


CBegin Member Function

public inline nothrow RandomAccessIter<T, const T&, const T*> CBegin()

Definition
Line 256 of System.Base/List.cm


CEnd Member Function

public inline nothrow RandomAccessIter<T, const T&, const T*> CEnd()

Definition
Line 276 of System.Base/List.cm


Capacity Member Function

public inline nothrow long Capacity()

Definition
Line 103 of System.Base/List.cm


Clear Member Function

public nothrow void Clear()

Definition
Line 111 of System.Base/List.cm


Count Member Function

public inline nothrow long Count()

Definition
Line 99 of System.Base/List.cm


Destroy Member Function

private nothrow void Destroy()

Definition
Line 334 of System.Base/List.cm


End Member Function

public inline nothrow RandomAccessIter<T, T&, T*> End()

Definition
Line 260 of System.Base/List.cm


End Member Function

public inline nothrow RandomAccessIter<T, const T&, const T*> End()

Definition
Line 268 of System.Base/List.cm


Front Member Function

public inline T& Front()

Definition
Line 292 of System.Base/List.cm


Front Member Function

public inline const T& Front()

Definition
Line 284 of System.Base/List.cm


Grow Member Function

private void Grow(long minRes)

Definition
Line 316 of System.Base/List.cm


Insert Member Function

public RandomAccessIter<T, T&, T*> Insert(RandomAccessIter<T, T&, T*> pos, T&& item)

Constraint
T  is  Movable
Definition
Line 147 of System.Base/List.cm


Insert Member Function

public RandomAccessIter<T, T&, T*> Insert(RandomAccessIter<T, T&, T*> pos, const T& item)

Constraint
T  is  Copyable
Definition
Line 127 of System.Base/List.cm


InsertFront Member Function

public RandomAccessIter<T, T&, T*> InsertFront(T&& item)

Constraint
T  is  Movable
Definition
Line 171 of System.Base/List.cm


InsertFront Member Function

public RandomAccessIter<T, T&, T*> InsertFront(const T& item)

Constraint
T  is  Copyable
Definition
Line 167 of System.Base/List.cm


IsEmpty Member Function

public inline nothrow bool IsEmpty()

Definition
Line 107 of System.Base/List.cm


Remove Member Function

public T Remove(RandomAccessIter<T, T&, T*> pos)

Definition
Line 175 of System.Base/List.cm


Remove Member Function

public void Remove(const T& item)

Definition
Line 204 of System.Base/List.cm


RemoveFirst Member Function

public T RemoveFirst()

Definition
Line 188 of System.Base/List.cm


RemoveLast Member Function

public T RemoveLast()

Definition
Line 192 of System.Base/List.cm


Reserve Member Function

public void Reserve(long minRes)

Definition
Line 66 of System.Base/List.cm


Resize Member Function

public void Resize(long newCount)

Constraint
T  is  Movable
Definition
Line 73 of System.Base/List.cm


operator= Member Function

public nothrow void operator=(List&& that)

Constraint
T  is  Movable
Definition
Line 56 of System.Base/List.cm


operator= Member Function

public void operator=(const List& that)

Constraint
T  is  Copyable
Definition
Line 49 of System.Base/List.cm


operator[] Member Function

public inline T& operator[](long index)

Definition
Line 240 of System.Base/List.cm


operator[] Member Function

public inline const T& operator[](long index)

Definition
Line 232 of System.Base/List.cm