2 * Copyright 2012, Stephan Aßmus <superstippi@gmx.de>
3 * Distributed under the terms of the MIT License.
11 EditStack::EditStack()
17 EditStack::~EditStack()
23 EditStack::Push(const UndoableEditRef
& edit
)
25 return fEdits
.Add(edit
);
32 UndoableEditRef
edit(Top());
38 const UndoableEditRef
&
39 EditStack::Top() const
41 return fEdits
.LastItem();
46 EditStack::IsEmpty() const
48 return fEdits
.CountItems() == 0;