PageRenderTime 41ms CodeModel.GetById 29ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/data/queue2.d

http://github.com/wilkie/djehuty
D | 131 lines | 101 code | 30 blank | 0 comment | 0 complexity | 7078786cb5686a6d178026b8039ed974 MD5 | raw file
  1module data.queue2;
  2
  3import data.iterable;
  4
  5class Queue2(T) : Iterable!(T) {
  6	template add(R) {
  7		void add(R item) {
  8		}
  9	}
 10
 11	template addAt(R) {
 12		void addAt(R item) {
 13		}
 14	}
 15
 16	T remove() {
 17		T ret;
 18		return ret;
 19	}
 20
 21	T removeAt(size_t idx) {
 22		T ret;
 23		return ret;
 24	}
 25
 26	T peek() {
 27		T ret;
 28		return ret;
 29	}
 30
 31	T peekAt(size_t idx) {
 32		T ret;
 33		return ret;
 34	}
 35
 36	template set(R) {
 37		void set(R value) {
 38		}
 39	}
 40
 41	template setAt(R) {
 42		void setAt(R value, size_t idx) {
 43		}
 44	}
 45
 46	template apply(R, S) {
 47		void apply(R delegate(S) func) {
 48		}
 49	}
 50
 51	template contains(R) {
 52		bool contains(R value) {
 53			return false;
 54		}
 55	}
 56
 57	bool empty() {
 58		return true;
 59	}
 60
 61	void clear() {
 62	}
 63
 64	T[] array() {
 65		return null;
 66	}
 67
 68	Iterable!(T) dup() {
 69		return null;
 70	}
 71
 72	Iterable!(T) slice(size_t start, size_t end) {
 73		return null;
 74	}
 75
 76	Iterable!(T) reverse() {
 77		return null;
 78	}
 79
 80	size_t length() {
 81		return 0;
 82	}
 83
 84	T opIndex(size_t i1) {
 85		T ret;
 86		return ret;
 87	}
 88
 89	template opIndexAssign(R) {
 90		size_t opIndexAssign(R value, size_t i1) {
 91			return 0;
 92		}
 93	}
 94
 95	int opApply(int delegate(ref T) loopFunc) {
 96		return 0;
 97	}
 98
 99	int opApply(int delegate(ref size_t, ref T) loopFunc) {
100		return 0;
101	}
102
103	int opApplyReverse(int delegate(ref T) loopFunc) {
104		return 0;
105	}
106
107	int opApplyReverse(int delegate(ref size_t, ref T) loopFunc) {
108		return 0;
109	}
110
111	Iterable!(T) opCat(T[] list) {
112		return null;
113	}
114
115	Iterable!(T) opCat(Iterable!(T) list) {
116		return null;
117	}
118
119	Iterable!(T) opCat(T item) {
120		return null;
121	}
122
123	void opCatAssign(T[] list) {
124	}
125
126	void opCatAssign(Iterable!(T) list) {
127	}
128
129	void opCatAssign(T item) {
130	}
131}