Date: 2002-04-15 04:07:37
posted this on the user list first, got replied to post to dev.list instead.
I've created a small framework called Virtual DataBase (VDB) which is in
actuality a set of three classes which handle tables of data.
Manages a random number of records of type DataT (using std::vector), including
all memory management. Holds and manages the actual records used by the views
and takes care of updating the views and trackers.
Manages a sorted and/or filtered view of the records in a table. The filter and
sort algorithms are supplied through functions or functors and is quite fast
(though there's still known room for improvement).
Tracks a single record in a table. If the record is deleted, the tracker becomes
invalid, it is initialized by index of view but will be further extended.
That's basically it. It's built to be generic, simple and reusable. What are the
chances of such a framework finding a place in the large Boost library?
Currently everything seems to be working based on simple testcases but I'm still
working on creating real unitttest testcases (using my own "Testkit" unittesting
system), currently about 50% of testcases done.
Special "record" and "database" classes are planned in the future but are
considered "non-core" functionality.
Martijn van der Lee
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk