Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

UndoableInt Class Reference

Inheritance diagram for UndoableInt:

Undoable List of all members.

Public Member Functions

 UndoableInt (int i)
virtual ~UndoableInt ()
void Set (int i)
int Get (void)
UndoMemento GetMemento (void)

Private Attributes

int fVal

Constructor & Destructor Documentation

UndoableInt::UndoableInt int  i  )  [inline]
 

Definition at line 12 of file test-Undoable.cxx.

References fVal.

00012 : fVal(i) {}

virtual UndoableInt::~UndoableInt  )  [inline, virtual]
 

Definition at line 13 of file test-Undoable.cxx.

00013 {}


Member Function Documentation

int UndoableInt::Get void   )  [inline]
 

Definition at line 15 of file test-Undoable.cxx.

Referenced by Composite::Increment(), Composite::Print(), and test1().

00015 { return fVal; }

UndoMemento UndoableInt::GetMemento void   )  [inline, virtual]
 

Implements Undoable.

Definition at line 18 of file test-Undoable.cxx.

References fVal, Set(), and UndoMemento.

Referenced by Composite::GetMemento().

00019         { return SigC::bind(SigC::slot_class(*this,&UndoableInt::Set),fVal); }

void UndoableInt::Set int  i  )  [inline]
 

Definition at line 14 of file test-Undoable.cxx.

References fVal.

Referenced by GetMemento(), Composite::Increment(), and test1().

00014 { fVal = i; }


Member Data Documentation

int UndoableInt::fVal [private]
 

Definition at line 21 of file test-Undoable.cxx.

Referenced by GetMemento(), Set(), and UndoableInt().


The documentation for this class was generated from the following file:
Generated on Mon Feb 15 11:10:28 2010 for loon by  doxygen 1.3.9.1