rc_transaction Class Reference

#include <rc_reconfigurable.h>

List of all members.


Detailed Description

This class represents an open transaction.

The existence of this class represents an open transaction. The associated rc_reconfigurable's transaction is increased by one. The count is decreased in the destructor. rc_transaction can be used as a temporary object.

begin() and end() are provided to allow the use of rc_transaction in cases where it is not used as a temporary object.

Remarks:
Objects of this class may also be used in a non-reconfigurable context. The transaction will be simply ignored in this case and therefore has no effect.
See also:
rc_reconfigurable, rc_reconfigurable::rc_begin_transaction(), rc_reconfigurable::rc_end_transaction()

Definition at line 941 of file rc_reconfigurable.h.


Public Member Functions

 rc_transaction (rc_reconfigurable *reconf)
 Constructor.
void begin ()
 Begin transaction.
void end ()
 End transaction.
bool has_ended () const
 Has the transaction already been ended?
 ~rc_transaction ()
 Destructor.

Private Member Functions

 rc_transaction (const rc_transaction &orig)
 (disabled)
rc_transactionoperator= (const rc_transaction &orig)
 (disabled)

Private Attributes

rc_reconfigurablereconf
 The associated reconfigurable context.
bool p_has_ended
 The transaction ended flag.

Constructor & Destructor Documentation

rc_transaction ( rc_reconfigurable reconf  )  [inline, explicit]

Constructor.

Parameters:
reconf the reconfigurable the transaction shall be associated to

Definition at line 997 of file rc_reconfigurable.h.

~rc_transaction (  ) 

Destructor.

Definition at line 780 of file rc_reconfigurable.cpp.

rc_transaction ( const rc_transaction orig  )  [private]

(disabled)


Member Function Documentation

void begin (  )  [inline]

Begin transaction.

Remarks:
Is not cumulative: At most one transaction can be begun.

Definition at line 1006 of file rc_reconfigurable.h.

void end (  )  [inline]

End transaction.

Remarks:
Is not cumulative: Only a transaction previously begun by this object can be ended.

Definition at line 1015 of file rc_reconfigurable.h.

bool has_ended (  )  const [inline]

Has the transaction already been ended?

Definition at line 963 of file rc_reconfigurable.h.

rc_transaction& operator= ( const rc_transaction orig  )  [private]

(disabled)


Member Data Documentation

rc_reconfigurable* reconf [private]

The associated reconfigurable context.

Definition at line 979 of file rc_reconfigurable.h.

Referenced by rc_transaction::begin(), rc_transaction::end(), ReChannel::rc_get_reconfigurable_context(), ReChannel::rc_register_resettable(), and rc_transaction::~rc_transaction().

bool p_has_ended [private]

The transaction ended flag.

Definition at line 983 of file rc_reconfigurable.h.

Referenced by rc_transaction::begin(), rc_transaction::end(), rc_transaction::has_ended(), and rc_transaction::~rc_transaction().


The documentation for this class was generated from the following files:
Generated on Tue Jan 1 23:14:14 2008 for ReChannel by  doxygen 1.5.3