#include <List.h>
Definition at line 76 of file List.h.
Public Member Functions | |
| List (void) | |
| List (T e,...) | |
| ~List (void) | |
| const T * | DataPtr () |
| T * | Data () |
| int | Length () |
| T & | operator[] (const int i) |
Protected Attributes | |
| T | data [l] |
| int | length |
Friends | |
| ostream & | operator<< (ostream &output, List< T, l > &m) |
|
||||||||||
|
Definition at line 84 of file List.h. 00085 {
00086 length = l;
00087 }
|
|
||||||||||||||||
|
Definition at line 89 of file List.h. 00090 {
00091 length = l;
00092 data[0] = e;
00093
00094 va_list argptr;
00095 va_start(argptr, e);
00096 for(int i=1; i<length; i++)
00097 {
00098 data[i] = va_arg(argptr, T);
00099 }
00100 va_end(argptr);
00101 }
|
|
||||||||||
|
Definition at line 104 of file List.h. 00105 {
00106 }
|
|
|||||||||
|
Definition at line 114 of file List.h. 00115 {
00116 return data;
00117 }
|
|
|||||||||
|
Definition at line 109 of file List.h. 00110 {
00111 return data;
00112 }
|
|
|||||||||
|
Definition at line 119 of file List.h. 00120 {
00121 return length;
00122 }
|
|
||||||||||
|
Definition at line 124 of file List.h. 00125 {
00126 return data[i];
00127 }
|
|
||||||||||||||||
|
Definition at line 129 of file List.h. 00130 {
00131 output << "(";
00132 for(int i=0; i<l-1; i++)
00133 {
00134 output << m.data[i] << ",";
00135 }
00136 output << m.data[l-1] << ")";
00137 return output;
00138 }
|
|
|||||
|
|
|
|||||
|
|