|
Boost Users : |
From: abir basak (abirbasak_at_[hidden])
Date: 2007-05-10 02:44:31
When I was searching for a view library to have some container adapters
so that I can store a portion of a dynamic container in a class, I came
across Boost View library and uBLAS range_vector and slice_vector.
(Iterators are unsuitable for my purpose as I can't store a portion of a
container through iterator when container are resizing (through
push_back & pop_front) , and also iterators are dumb enough so they dont
give the index for the container they are locating :( )
So I needed the alternative view classes or container adapters , which
are store-able even when container is allocating/reallocating as long as
the portion of the container which the view is pointing is available.
At present I have my own view classes (only the classes I need ) , but
planning to switch to boost View classes.
A few questions regarding boost View library (from sandbox)
1) is it an accepted library ? if not when it will be accepted ?
2) Apart from range_view all other views are based on container (i.e
they are container adapter ). So all other views are store-able while
range view is not ( when the iterator becomes invalid , the view is
also) any reason for this decision ?
3) for step_iterator, why no step_view is given ?
3) How can I make a composite view mixing a set of views like 2 range
view, or one range_view and one permutation_view. For eg. I want to make
a container adapter for a container taking a range 2-10 (range_view) and
15,18,17 (permutation_view ). AFAIK some of this mixed views are
supported by blitz library.
Thanks
abir
-- Abir Basak, Member IEEE Software Engineer, Read Ink Technologies B. Tech, IIT Kharagpur email: abir_at_[hidden] homepage: www.abirbasak.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net