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

Detailed Description

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


Constructor & Destructor Documentation

UndoableInt::UndoableInt ( int  i  )  [inline]

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

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.

References fVal.

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, and Set().

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 Get(), GetMemento(), and Set().


The documentation for this class was generated from the following file:

Generated on 21 Jun 2018 for loon by  doxygen 1.6.1