oasys::DBTRef Class Reference

#include <BerkeleyDBStore.h>

List of all members.


Detailed Description

Wrapper around a DBT that correctly handles memory management.

Definition at line 179 of file BerkeleyDBStore.h.

Public Member Functions

 DBTRef ()
 Initialize an empty key with the DB_DBT_REALLOC flag.
 DBTRef (void *data, size_t size)
 Initialize a key with the given data/len and the DB_DBT_USERMEM flag.
 ~DBTRef ()
 If any data was malloc'd in the key, free it.
DBT * dbt ()
 Return a pointer to the underlying DBT structure.
DBT * operator-> ()
 Convenience operator overload.

Protected Attributes

DBT dbt_


Constructor & Destructor Documentation

oasys::DBTRef::DBTRef (  )  [inline]

Initialize an empty key with the DB_DBT_REALLOC flag.

Definition at line 182 of file BerkeleyDBStore.h.

References dbt_.

oasys::DBTRef::DBTRef ( void *  data,
size_t  size 
) [inline]

Initialize a key with the given data/len and the DB_DBT_USERMEM flag.

Definition at line 190 of file BerkeleyDBStore.h.

References dbt_.

oasys::DBTRef::~DBTRef (  )  [inline]

If any data was malloc'd in the key, free it.

Definition at line 199 of file BerkeleyDBStore.h.

References dbt_.


Member Function Documentation

DBT* oasys::DBTRef::dbt (  )  [inline]

Return a pointer to the underlying DBT structure.

Definition at line 212 of file BerkeleyDBStore.h.

References dbt_.

Referenced by oasys::BerkeleyDBTable::del(), oasys::BerkeleyDBStore::get_table_names(), oasys::BerkeleyDBTable::key_exists(), and oasys::BerkeleyDBTable::put().

DBT* oasys::DBTRef::operator-> (  )  [inline]

Convenience operator overload.

Definition at line 215 of file BerkeleyDBStore.h.

References dbt_.


Member Data Documentation

DBT oasys::DBTRef::dbt_ [protected]

Definition at line 218 of file BerkeleyDBStore.h.

Referenced by dbt(), DBTRef(), operator->(), and ~DBTRef().


The documentation for this class was generated from the following file:
Generated on Thu Jun 7 12:54:36 2007 for DTN Reference Implementation by  doxygen 1.5.1