LcsUndoType Struct Reference

Context for undoing the most recent insert into LcsHash. More...

#include <LcsHash.h>

List of all members.

Public Member Functions

 LcsUndoType ()
 Constructor to reset all fields.
void set (LcsUndoState whatInit, uint keyInit, uint origMaxValueSizeInit, LcsHashValueNode *vPtrInit)
 Sets fields.
void reset ()
 Resets fields.

Public Attributes

LcsUndoState what
 Action to be performed by undoInsert().
uint key
 The hash key value of the most recently inserted value.
uint origMaxValueSize
 The previous max value size for the undo to rollback to.
LcsHashValueNodevPtr
 The most recently inserted LcsHashValueNode.


Detailed Description

Context for undoing the most recent insert into LcsHash.

Definition at line 265 of file LcsHash.h.


Constructor & Destructor Documentation

LcsUndoType::LcsUndoType (  )  [inline]

Constructor to reset all fields.

Definition at line 752 of file LcsHash.h.

References reset().

00753 {
00754     reset();
00755 }


Member Function Documentation

void LcsUndoType::set ( LcsUndoState  whatInit,
uint  keyInit,
uint  origMaxValueSizeInit,
LcsHashValueNode vPtrInit 
) [inline]

Sets fields.

Parameters:
[in] whatInit undo action
[in] keyInit key value to undo
[in] origMaxValueSizeInit maxValueSize to roll back to
[in] vPtrInit points to value nodes to undo

Definition at line 757 of file LcsHash.h.

References key, origMaxValueSize, vPtr, and what.

Referenced by LcsHash::insert().

00762 {
00763     what = whatInit;
00764     key = keyInit;
00765     origMaxValueSize = origMaxValueSizeInit;;
00766     vPtr = vPtrInit;
00767 }

void LcsUndoType::reset (  )  [inline]

Resets fields.

Definition at line 769 of file LcsHash.h.

References key, NOTHING, origMaxValueSize, vPtr, and what.

Referenced by LcsUndoType(), and LcsHash::undoInsert().

00770 {
00771     what = NOTHING;
00772     key = 0;
00773     origMaxValueSize = 0;
00774     vPtr = 0;
00775 }


Member Data Documentation

LcsUndoState LcsUndoType::what

Action to be performed by undoInsert().

Definition at line 270 of file LcsHash.h.

Referenced by reset(), set(), and LcsHash::undoInsert().

uint LcsUndoType::key

The hash key value of the most recently inserted value.

Definition at line 275 of file LcsHash.h.

Referenced by reset(), set(), and LcsHash::undoInsert().

uint LcsUndoType::origMaxValueSize

The previous max value size for the undo to rollback to.

Definition at line 280 of file LcsHash.h.

Referenced by reset(), set(), and LcsHash::undoInsert().

LcsHashValueNode* LcsUndoType::vPtr

The most recently inserted LcsHashValueNode.

Definition at line 285 of file LcsHash.h.

Referenced by reset(), set(), and LcsHash::undoInsert().


The documentation for this struct was generated from the following file:
Generated on Mon Jun 22 04:00:38 2009 for Fennel by  doxygen 1.5.1