|
Common ODB Runtime Library
|
Classes | |
| struct | callback_data |
Public Types | |
| typedef odb::database | database_type |
| typedef odb::connection | connection_type |
| typedef odb::tracer | tracer_type |
| typedef void(* | callback_type )(unsigned short event, void *key, unsigned long long data) |
Public Member Functions | |
| transaction (transaction_impl *, bool make_current=true) | |
| transaction () | |
| ~transaction () | |
| void | reset (transaction_impl *, bool make_current=true) |
| void | commit () |
| void | rollback () |
| database_type & | database () |
| connection_type & | connection () |
| bool | finalized () const |
| void | tracer (tracer_type &) |
| void | tracer (tracer_type *) |
| tracer_type * | tracer () const |
| void | callback_register (callback_type, void *key, unsigned short event=event_all, unsigned long long data=0, transaction **state=0) |
| void | callback_unregister (void *key) |
| void | callback_update (void *key, unsigned short event, unsigned long long data=0, transaction **state=0) |
| transaction_impl & | implementation () |
Static Public Member Functions | |
| static bool | has_current () |
| static transaction & | current () |
| static void | current (transaction &) |
| static void | reset_current () |
Static Public Attributes | |
| static const unsigned short | event_commit = 0x01 |
| static const unsigned short | event_rollback = 0x02 |
| static const unsigned short | event_all = event_commit | event_rollback |
Protected Member Functions | |
| std::size_t | callback_find (void *key) |
| void | callback_call (unsigned short event) |
Protected Attributes | |
| bool | finalized_ |
| details::unique_ptr < transaction_impl > | impl_ |
| callback_data | stack_callbacks_ [stack_callback_count] |
| std::vector< callback_data > | dyn_callbacks_ |
| std::size_t | free_callback_ |
| std::size_t | callback_count_ |
Static Protected Attributes | |
| static const std::size_t | stack_callback_count = 20 |
| static const std::size_t | max_callback_count = ~(std::size_t (0)) |
Friends | |
| struct | rollback_guard |
| typedef void(* odb::transaction::callback_type)(unsigned short event, void *key, unsigned long long data) |
|
explicit |
| odb::transaction::transaction | ( | ) |
| odb::transaction::~transaction | ( | ) |
| void odb::transaction::reset | ( | transaction_impl * | , |
| bool | make_current = true |
||
| ) |
| void odb::transaction::commit | ( | ) |
| void odb::transaction::rollback | ( | ) |
| database_type& odb::transaction::database | ( | ) |
| connection_type& odb::transaction::connection | ( | ) |
|
inline |
|
static |
|
static |
|
static |
|
static |
| void odb::transaction::tracer | ( | tracer_type & | ) |
| void odb::transaction::tracer | ( | tracer_type * | ) |
| tracer_type* odb::transaction::tracer | ( | ) | const |
| void odb::transaction::callback_register | ( | callback_type | , |
| void * | key, | ||
| unsigned short | event = event_all, |
||
| unsigned long long | data = 0, |
||
| transaction ** | state = 0 |
||
| ) |
| void odb::transaction::callback_unregister | ( | void * | key | ) |
| void odb::transaction::callback_update | ( | void * | key, |
| unsigned short | event, | ||
| unsigned long long | data = 0, |
||
| transaction ** | state = 0 |
||
| ) |
| transaction_impl& odb::transaction::implementation | ( | ) |
|
protected |
|
protected |
|
friend |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.7