HyperspaceExplorer 0.7.1
|
An empty ArrayList. Specialization to end recursion. More...
#include <ArrayList.h>
Public Member Functions | |
ArrayList () | |
Create an ArrayList with a default-constructed element. | |
ArrayList (const T &x) | |
Create an ArrayList with element initialized to x . | |
ArrayList (T x, ArrayList< 0, T >) | |
const T & | head () const |
Return the first element of an ArrayList. | |
T & | head () |
ArrayList< 0, T > | tail () const |
T & | operator[] (unsigned) |
Read-write access to an element of the ArrayList. | |
const T & | operator[] (unsigned) const |
Read-only access to an element of the ArrayList. | |
ArrayList< 0, T > | minusElement (unsigned) const |
Return an ArrayList that contains all but the given element. | |
bool | contains (const T &x) const |
std::string | toString () const |
Empty String. | |
Private Attributes | |
T | element_ |
An empty ArrayList. Specialization to end recursion.
T | Type of the stored elements. |
const T & ArrayList< 1, T >::operator[] | ( | unsigned | ) | const |
Read-only access to an element of the ArrayList.
i | Index of the element accessed. |
References ArrayList< size, T >::head().
T & ArrayList< 1, T >::operator[] | ( | unsigned | ) |
Read-write access to an element of the ArrayList.
i | Index of the element accessed. |
References ArrayList< size, T >::head().