On 01/09/2010 07:06 PM, v...@lyx.org wrote:
Author: vfr
Date: Sun Jan 10 01:06:02 2010
New Revision: 32929
URL: http://www.lyx.org/trac/changeset/32929

Log:
Add a vector class that can be referenced with both positive and negative 
indices. It is internally represented as two vectors, one for non-zero indices 
and one for negative indices. In this way, the vector can grow in both 
directions. If an index is not available in the vector, the default value is 
returned. If an object is put in the vector beyond its size, the empty spots in 
between are also filled with the default value.

I hope I'm not reinventing the wheel too much here. This might change anyway if 
this appears to be a performance bottleneck.

It would be more intuitive to implement the get() and set() functions using operator[], as in the existing vector class. Yes?

This is looking interesting....

rh

Reply via email to