HyperspaceExplorer 0.7.1
Public Member Functions | Private Attributes
ArrayList< 1, T > Class Template Reference

An empty ArrayList. Specialization to end recursion. More...

#include <ArrayList.h>

List of all members.

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

element_

Detailed Description

template<typename T>
class ArrayList< 1, T >

An empty ArrayList. Specialization to end recursion.

Template Parameters:
TType of the stored elements.

Member Function Documentation

template<typename T >
const T & ArrayList< 1, T >::operator[] ( unsigned  ) const

Read-only access to an element of the ArrayList.

Parameters:
iIndex of the element accessed.

References ArrayList< size, T >::head().

Here is the call graph for this function:

template<typename T >
T & ArrayList< 1, T >::operator[] ( unsigned  )

Read-write access to an element of the ArrayList.

Parameters:
iIndex of the element accessed.

References ArrayList< size, T >::head().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:17 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo