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

#include <upscaledb.hpp>

Public Member Functions

 key (void *data=0, uint16_t size=0, uint32_t flags=0)
 
 key (const key &other)
 
keyoperator= (const key &other)
 
void * get_data () const
 
void set_data (void *data)
 
uint16_t get_size () const
 
void set_size (uint16_t size)
 
template<class T >
void set (T &t)
 
uint32_t get_flags () const
 
void set_flags (uint32_t flags)
 
ups_key_tget_handle ()
 

Private Attributes

ups_key_t _key
 

Detailed Description

A key class.

This class wraps structures of type ups_key_t.

Definition at line 92 of file upscaledb.hpp.

Constructor & Destructor Documentation

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

Constructor

Definition at line 95 of file upscaledb.hpp.

upscaledb::key::key ( const key other)
inline

Copy constructor.

Definition at line 103 of file upscaledb.hpp.

Member Function Documentation

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

Returns the key data.

Definition at line 115 of file upscaledb.hpp.

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

Returns the flags of the key.

Definition at line 142 of file upscaledb.hpp.

ups_key_t* upscaledb::key::get_handle ( )
inline
uint16_t upscaledb::key::get_size ( ) const
inline

Returns the size of the key.

Definition at line 125 of file upscaledb.hpp.

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

Assignment operator.

Definition at line 108 of file upscaledb.hpp.

References _key.

template<class T >
void upscaledb::key::set ( T &  t)
inline

Template assignment

Definition at line 136 of file upscaledb.hpp.

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

Sets the key data.

Definition at line 120 of file upscaledb.hpp.

Referenced by run_demo().

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

Sets the flags of the key.

Definition at line 147 of file upscaledb.hpp.

void upscaledb::key::set_size ( uint16_t  size)
inline

Sets the size of the key.

Definition at line 130 of file upscaledb.hpp.

Referenced by run_demo().

Field Documentation

ups_key_t upscaledb::key::_key
private

Definition at line 157 of file upscaledb.hpp.

Referenced by operator=().


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