Added some tests for the Database iterator interface. Updated the post-increment...
authorKevin James Matzen <kmatzen@cs.cornell.edu>
Sun, 12 Oct 2014 22:43:44 +0000 (18:43 -0400)
committerKevin James Matzen <kmatzen@cs.cornell.edu>
Tue, 14 Oct 2014 23:31:30 +0000 (19:31 -0400)
commitc86ed418b9e9a89a98de9c5d339a595ac7ebc3c2
treec77b23bdf9b4e1604affcbd2c0e30117146cb5a0
parentc31e4446884262ff3c68e5d2adf7afd5050771e4
Added some tests for the Database iterator interface.  Updated the post-increment operator so that it forks off a copy of the LevelDB or LMDB iterator/cursor when necessary.  Neither of these APIs allow you to directly copy an iterator or cursor, so I create a new iterator and seek to the key that the previous one was currently on.  This means the pre-increment operator can be much cheaper than the post-increment operator.
include/caffe/database.hpp
include/caffe/leveldb_database.hpp
include/caffe/lmdb_database.hpp
src/caffe/leveldb_database.cpp
src/caffe/lmdb_database.cpp
src/caffe/test/test_database.cpp