1 #ifndef CAFFE_UTIL_DB_HPP 2 #define CAFFE_UTIL_DB_HPP 6 #include "caffe/common.hpp" 7 #include "caffe/proto/caffe.pb.h" 9 namespace caffe {
namespace db {
11 enum Mode { READ, WRITE, NEW };
17 virtual void SeekToFirst() = 0;
18 virtual void Next() = 0;
19 virtual string key() = 0;
20 virtual string value() = 0;
21 virtual bool valid() = 0;
23 DISABLE_COPY_AND_ASSIGN(
Cursor);
30 virtual void Put(
const string& key,
const string& value) = 0;
31 virtual void Commit() = 0;
40 virtual void Open(
const string& source, Mode mode) = 0;
41 virtual void Close() = 0;
42 virtual Cursor* NewCursor() = 0;
45 DISABLE_COPY_AND_ASSIGN(
DB);
48 DB* GetDB(DataParameter::DB backend);
49 DB* GetDB(
const string& backend);
54 #endif // CAFFE_UTIL_DB_HPP A layer factory that allows one to register layers. During runtime, registered layers can be called b...
Definition: blob.hpp:14