lestes::lang::cplus::syn::transaction Class Reference

Inheritance diagram for lestes::lang::cplus::syn::transaction:

Inheritance graph
[legend]
List of all members.

Public Member Functions

const token_list_iterator start_pos_get () const
ulint undo ()
 runs all the undo actions in LIFO (reverse) order, returns number of them
void submit_undo (ptr< transaction > enclosing_tx)
 just hand over own undo list to the enclosing transaction
void add_undo_action (ptr< action > action)

Static Public Member Functions

static ptr< transactioncreate (const token_list_iterator &spos)

Protected Member Functions

 transaction (const token_list_iterator &spos)
void gc_mark ()
 Marks the keystone.

Protected Attributes

srp< action_list_typeundo_list
 list of actions that need to be done when this transaction is rolled back
const token_list_iterator start_pos

Constructor & Destructor Documentation

lestes::lang::cplus::syn::transaction::transaction ( const token_list_iterator spos  )  [inline, protected]


Member Function Documentation

void lestes::lang::cplus::syn::transaction::gc_mark ( void   )  [inline, protected, virtual]

Marks the keystone.

Marks all directly reachable parts of the class. The method must be overriden for each inherited class. It should contain abc.gc_mark() for each field abc of the inherited class and call to gc_mark() of the direct ancestor of the class. Does nothing for keystone, only stops processing of ancestors.

Reimplemented from lestes::std::mem::keystone.

static ptr<transaction> lestes::lang::cplus::syn::transaction::create ( const token_list_iterator spos  )  [inline, static]

const token_list_iterator lestes::lang::cplus::syn::transaction::start_pos_get (  )  const [inline]

ulint lestes::lang::cplus::syn::transaction::undo (  )  [inline]

runs all the undo actions in LIFO (reverse) order, returns number of them

void lestes::lang::cplus::syn::transaction::submit_undo ( ptr< transaction enclosing_tx  )  [inline]

just hand over own undo list to the enclosing transaction

void lestes::lang::cplus::syn::transaction::add_undo_action ( ptr< action action  )  [inline]


Member Data Documentation

srp<action_list_type> lestes::lang::cplus::syn::transaction::undo_list [protected]

list of actions that need to be done when this transaction is rolled back

const token_list_iterator lestes::lang::cplus::syn::transaction::start_pos [protected]


The documentation for this class was generated from the following file:
Generated on Mon Feb 12 18:49:03 2007 for lestes by doxygen 1.5.1-20070107