/// Get reference to element relative to newest element
	T& read(int i){ return mElems[wrapOnce(pos()-i, size())]; }
	/// @param[in] from		absolute index the read is relative to
	/// @param[in] dist		distance into past relative to 'from' of the returned element
	const T& readFrom(int from, int dist) const {
		return mElems[wrapOnce(from-dist, size())];
	}
Exemplo n.º 3
0
	/// Get element at relative index
	const T& atRel(int i) const { return mElems[wrapOnce(pos()-i, size())]; }