• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/BerkeleyDB-21/db/cxx/

Lines Matching defs:Db

30 int Db::_name _argspec							\
37 DB_ERROR(dbenv_, "Db::" # _name, ret, error_policy()); \
42 int Db::_name _argspec \
48 DB_ERROR(dbenv_, "Db::" # _name, EINVAL, error_policy()); \
54 DB_ERROR(dbenv_, "Db::" # _name, ret, error_policy()); \
59 int Db::_name _argspec \
67 void Db::_name _argspec \
74 // A truism for the Db object is that there is a valid
77 // no operations are permitted on the Db (other than
78 // destructor). Leaving the Db handle open and not
81 // We used to allow Db objects to be closed and reopened.
83 // coordinating the open objects between Db/DbEnv turned
86 Db::Db(DbEnv *dbenv, u_int32_t flags)
106 DB_ERROR(dbenv_, "Db::Db", construct_error_, error_policy());
110 // allocation of Db objects easier so that they are cleaned up in the error
116 Db::~Db()
131 int Db::initialize()
153 // It is deleted in Db::close().
166 // If the environment was created by this Db object, we need to delete it.
168 void Db::cleanup()
195 int Db::error_policy()
203 // for this Db.
228 void Db::err(int error, const char *format, ...)
235 void Db::errx(const char *format, ...)
247 int Db::get(DbTxn *txnid, Dbt *key, Dbt *value, u_int32_t flags)
256 DB_ERROR_DBT(dbenv_, "Db::get", value, error_policy());
258 DB_ERROR(dbenv_, "Db::get", ret, error_policy());
264 int Db::get_byteswapped(int *isswapped)
270 DbEnv *Db::get_env()
277 DbMpoolFile *Db::get_mpf()
287 int Db::get_type(DBTYPE *dbtype)
306 int Db::open(DbTxn *txnid, const char *file, const char *database,
319 DB_ERROR(dbenv_, "Db::open", ret, error_policy());
324 int Db::pget(DbTxn *txnid, Dbt *key, Dbt *pkey, Dbt *value, u_int32_t flags)
331 /* The logic here is identical to Db::get - reuse the macro. */
334 DB_ERROR_DBT(dbenv_, "Db::pget", value, error_policy());
336 DB_ERROR(dbenv_, "Db::pget", ret, error_policy());
405 Db *cxxthis; \
409 cxxthis = Db::get_Db(cthis); \
417 int Db::_cxxname _cxxargspec \
432 int Db::associate(DbTxn *txn, Db *secondary, int (*callback)(Db *, const Dbt *,
437 /* Since the secondary Db is used as the first argument
451 (void (*arg)(Db *cxxthis, int opcode, int pct)), arg)
458 (int (*arg)(Db *cxxthis, Dbt *data, db_recno_t recno)), arg)
466 (int (*arg)(Db *cxxthis, const Dbt *data1, const Dbt *data2)), arg)
474 (size_t (*arg)(Db *cxxthis, const Dbt *data1, const Dbt *data2)), arg)
482 (int (*arg)(Db *cxxthis, const Dbt *data1, const Dbt *data2)), arg)
490 (int (*arg)(Db *cxxthis, const Dbt *data1, const Dbt *data2)), arg)
497 (u_int32_t (*arg)(Db *cxxthis, const void *data, u_int32_t len)), arg)
520 int Db::verify(const char *name, const char *subdb,
539 DB_ERROR(dbenv_, "Db::verify", ret, error_policy());
618 void Db::set_errcall(void (*arg)(const DbEnv *, const char *, const char *))
623 void Db::set_msgcall(void (*arg)(const DbEnv *, const char *))
628 void *Db::get_app_private() const
633 void Db::set_app_private(void *value)
643 int Db::set_paniccall(void (*callback)(DbEnv *, int))
648 __DB_STD(ostream) *Db::get_error_stream()
653 void Db::set_error_stream(__DB_STD(ostream) *error_stream)
658 __DB_STD(ostream) *Db::get_message_stream()
663 void Db::set_message_stream(__DB_STD(ostream) *message_stream)