upscaledb  2.2.1
Public Member Functions | Private Attributes
upscaledb::record Class Reference

#include <upscaledb.hpp>

Public Member Functions

 record (void *data=0, uint32_t size=0, uint32_t flags=0)
 
 record (const record &other)
 
recordoperator= (const record &other)
 
void * get_data () const
 
void set_data (void *data)
 
uint32_t get_size () const
 
void set_size (uint32_t size)
 
uint32_t get_flags () const
 
void set_flags (uint32_t flags)
 
ups_record_tget_handle ()
 

Private Attributes

ups_record_t _record
 

Detailed Description

A record class.

This class wraps structures of type ups_record_t.

Definition at line 165 of file upscaledb.hpp.

Constructor & Destructor Documentation

upscaledb::record::record ( void *  data = 0,
uint32_t  size = 0,
uint32_t  flags = 0 
)
inline

Constructor

Definition at line 168 of file upscaledb.hpp.

upscaledb::record::record ( const record other)
inline

Copy constructor.

Definition at line 176 of file upscaledb.hpp.

Member Function Documentation

void* upscaledb::record::get_data ( ) const
inline

Returns the record data.

Definition at line 187 of file upscaledb.hpp.

Referenced by run_demo().

uint32_t upscaledb::record::get_flags ( ) const
inline

Returns the flags of the record.

Definition at line 207 of file upscaledb.hpp.

ups_record_t* upscaledb::record::get_handle ( )
inline

Returns a pointer to the internal ups_record_t structure.

Definition at line 217 of file upscaledb.hpp.

Referenced by upscaledb::db::find(), upscaledb::db::insert(), upscaledb::cursor::insert(), upscaledb::cursor::move(), and upscaledb::cursor::overwrite().

uint32_t upscaledb::record::get_size ( ) const
inline

Returns the size of the record.

Definition at line 197 of file upscaledb.hpp.

record& upscaledb::record::operator= ( const record other)
inline

Assignment operator.

Definition at line 181 of file upscaledb.hpp.

References _record.

void upscaledb::record::set_data ( void *  data)
inline

Sets the record data.

Definition at line 192 of file upscaledb.hpp.

Referenced by run_demo().

void upscaledb::record::set_flags ( uint32_t  flags)
inline

Sets the flags of the record.

Definition at line 212 of file upscaledb.hpp.

void upscaledb::record::set_size ( uint32_t  size)
inline

Sets the size of the record.

Definition at line 202 of file upscaledb.hpp.

Referenced by run_demo().

Field Documentation

ups_record_t upscaledb::record::_record
private

Definition at line 222 of file upscaledb.hpp.

Referenced by operator=().


The documentation for this class was generated from the following file: