more work on seq_span
authorDiane Trout <diane@caltech.edu>
Tue, 4 Sep 2007 22:35:50 +0000 (22:35 +0000)
committerDiane Trout <diane@caltech.edu>
Tue, 4 Sep 2007 22:35:50 +0000 (22:35 +0000)
commit7a55c95eeeb792f89df39dc9375040dcbd415dfd
treecb3682ca7758e741439529037423df3de79a08b0
parent64fee605ec84d0923384f9a709d4471b6030862f
more work on seq_span
One problem that showed up was that if a SeqSpan is created on the stack,
the parent shared pointer wont work, so any subseqs will crash.

To fix that at the python layer I had to add a factory function that
proprely dynamically created a SeqSpan.

I tried to get the parent call to work but that kept returning a new object
which makes the python is function unhappy.
alg/test/test_seq_span.cpp
py/seq_span.cpp
py/test/TestSeqSpan.py