I am discovering stxxl. I decided to play a bit with vector. I tried calling export_files to see if it was possible to serialize vector to disk. It looks as if the function is unimplemented, see line 196:
http://stxxl.svn.sourceforge.net/viewvc/stxxl/trunk/include/stxxl/bits/io/file.h?revision=3223&view=markup
Does anyone knows how to serialize stxxl::vector for later simulations ?
Thanks
The export_files() method is only intended for use with a special case type (fileperblock_file) that you don't want to use.
For persistent data you usually bind the vector to a file:
typedef stxxl::VECTOR_GENERATOR<my_type, ...>::result vector_type; stxxl::syscall_file my_file("my.data", stxxl::file::RDWR | stxxl::file::CREAT); vector_type my_big_vector(&my_file);
Log in to post a comment.
I am discovering stxxl. I decided to play a bit with vector. I tried calling export_files to see if it was possible to serialize vector to disk. It looks as if the function is unimplemented, see line 196:
http://stxxl.svn.sourceforge.net/viewvc/stxxl/trunk/include/stxxl/bits/io/file.h?revision=3223&view=markup
Does anyone knows how to serialize stxxl::vector for later simulations ?
Thanks
The export_files() method is only intended for use with a special case type (fileperblock_file) that you don't want to use.
For persistent data you usually bind the vector to a file: