Implementation of the Memento_TextObject class used in the Memento Pattern. More...
#include <memory>
#include <string>
Go to the source code of this file.
Classes | |
struct | IMemento |
Represents a single memento, a single snapshot of the state of the Memento_TextObject class as represented by the private class Memento_TextObject.Memento. More... | |
class | Memento_TextObject |
Container for a string. Need to use a class that allows the text to be changed while the container (this class) remains constant. This way, operations can be applied to the text and the container's contents change but not the container (strings are immutable in C#; this dances around that problem). More... | |
class | Memento_TextObject::Memento |
Represents a single memento (snapshot) of the text state before an operation is applied. The operation becomes the name of the memento for display purposes. More... | |
Namespaces | |
namespace | DesignPatternExamples_cpp |
The namespace containing all Design Pattern Examples implemented in C++. | |
Macros | |
#define | __MEMENTO_H__ |
Implementation of the Memento_TextObject class used in the Memento Pattern.
Definition in file Memento.h.