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

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>
Include dependency graph for Flyweight_Classes.h:
This graph shows which files directly or indirectly include this file:

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 >
 

Detailed Description

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.

Macro Definition Documentation

◆ __FLYWEIGHT_CLASSES_H__

#define __FLYWEIGHT_CLASSES_H__

Definition at line 11 of file Flyweight_Classes.h.