Design Pattern Examples
Overview of object-oriented design patterns
Memento.h File Reference

Implementation of the Memento_TextObject class used in the Memento Pattern. More...

#include <memory>
#include <string>
Include dependency graph for Memento.h:
This graph shows which files directly or indirectly include this file:

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__
 

Detailed Description

Implementation of the Memento_TextObject class used in the Memento Pattern.

Definition in file Memento.h.

Macro Definition Documentation

◆ __MEMENTO_H__

#define __MEMENTO_H__

Definition at line 7 of file Memento.h.