Declaration of the Flyweight_Context struct, and the Flyweight_Class, BigResource, and BigResourceManager classes used in the Flyweight Pattern. More...
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
struct | Flyweight_Context |
Represents the context for an instance of the Flyweight_Class. In this case, the context includes position and velocity. More... | |
class | Flyweight_Class |
Associates a context with a big resource. More... | |
class | BigResource |
Represents some big resource. In this case, a text "image" rendered as a list of strings. each entry in the list is the same width. The height of the "image" is the number of entries in the list. This image is provided by the user. More... | |
class | BigResourceManager |
Represents a manager for big resources. Also provides the class factory for the Flyweight_Class instances that are associated with a particular big resource. More... | |
Namespaces | |
namespace | DesignPatternExamples_cpp |
The namespace containing all Design Pattern Examples implemented in C++. | |
Macros | |
#define | __FLYWEIGHT_CLASSES_H__ |
Typedefs | |
using | FlyweightClassList = std::vector< Flyweight_Class::unique_ptr_t > |
Declaration of the Flyweight_Context struct, and the Flyweight_Class, BigResource, and BigResourceManager classes used in the Flyweight Pattern.
Definition in file Flyweight_Classes.h.
#define __FLYWEIGHT_CLASSES_H__ |
Definition at line 11 of file Flyweight_Classes.h.