BigUndoable Class Reference

Inheritance diagram for BigUndoable:
Undoable

List of all members.

Classes

struct  MyState

Public Member Functions

 BigUndoable (int i, float f)
 ~BigUndoable ()
void SetState (MyState ms)
int GetInt ()
float GetFloat ()
void IncState ()
UndoMemento GetMemento (void)

Private Attributes

MyState fState

Detailed Description

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


Constructor & Destructor Documentation

BigUndoable::BigUndoable ( int  i,
float  f 
) [inline]

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

References BigUndoable::MyState::fFloat, BigUndoable::MyState::fInt, and fState.

00036 {fState.fInt = i; fState.fFloat = f;}

BigUndoable::~BigUndoable (  )  [inline]

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

00037 {}


Member Function Documentation

float BigUndoable::GetFloat (  )  [inline]

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

References BigUndoable::MyState::fFloat, and fState.

Referenced by test1().

00041 { return fState.fFloat; }

int BigUndoable::GetInt (  )  [inline]

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

References BigUndoable::MyState::fInt, and fState.

Referenced by test1().

00040 { return fState.fInt; }

UndoMemento BigUndoable::GetMemento ( void   )  [inline, virtual]

Implements Undoable.

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

References fState, and SetState().

00045         { return SigC::bind(SigC::slot_class(*this,&BigUndoable::SetState),fState); }

void BigUndoable::IncState (  )  [inline]

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

References BigUndoable::MyState::fFloat, BigUndoable::MyState::fInt, and fState.

Referenced by test1().

00042 { ++fState.fInt; ++fState.fFloat; }

void BigUndoable::SetState ( MyState  ms  )  [inline]

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

References fState.

Referenced by GetMemento().

00039 { fState = ms; }


Member Data Documentation

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

Referenced by BigUndoable(), GetFloat(), GetInt(), GetMemento(), IncState(), and SetState().


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

Generated on 15 Jul 2018 for loon by  doxygen 1.6.1