Design Patterns
Main Page
Namespaces
Classes
Files
File List
row.h
Go to the documentation of this file.
1
// Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2
// book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3
//
4
// Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5
6
#ifndef STRUCTURAL_FLYWEIGHT_ROW_H_
7
#define STRUCTURAL_FLYWEIGHT_ROW_H_
8
9
#include "
glyph_interface.h
"
10
11
namespace
structural
12
{
13
namespace
flyweight
14
{
15
class
Row
:
public
GlyphInterface
16
{
17
public
:
18
~Row
()
override
;
19
20
virtual
void
First
(
GlyphContext
&)
override
;
21
virtual
void
Next
(
GlyphContext
&)
override
;
22
virtual
bool
IsDone
(
GlyphContext
&)
override
;
23
24
virtual
void
SetFont
(
Font
*,
GlyphContext
&)
override
;
25
virtual
Font
*
GetFont
(
GlyphContext
&)
override
;
26
27
virtual
GlyphInterface
*
Current
(
GlyphContext
&)
override
;
28
29
virtual
void
Insert
(
GlyphInterface
*,
GlyphContext
&)
override
;
30
virtual
void
Remove
(
GlyphContext
&)
override
;
31
32
virtual
void
Draw
(
Window
*,
GlyphContext
&)
override
;
33
};
34
}
35
}
36
37
#endif
38
structural
Definition:
shape_interface.h:11
structural::flyweight::Row::First
virtual void First(GlyphContext &) override
Definition:
row.cc:24
structural::flyweight::Row::Remove
virtual void Remove(GlyphContext &) override
Definition:
row.cc:46
structural::flyweight::Row
Definition:
row.h:15
structural::flyweight::Row::GetFont
virtual Font * GetFont(GlyphContext &) override
Definition:
row.cc:17
structural::flyweight::Font
Definition:
font.h:15
glyph_interface.h
structural::flyweight::Row::~Row
~Row() override
Definition:
row.cc:22
structural::flyweight::Row::IsDone
virtual bool IsDone(GlyphContext &) override
Definition:
row.cc:34
structural::flyweight::Row::SetFont
virtual void SetFont(Font *, GlyphContext &) override
Definition:
row.cc:12
structural::flyweight::Row::Draw
virtual void Draw(Window *, GlyphContext &) override
Definition:
row.cc:48
structural::flyweight::GlyphContext
Definition:
glyph_context.h:15
structural::flyweight::GlyphInterface
Definition:
glyph_interface.h:17
structural::flyweight::Row::Next
virtual void Next(GlyphContext &) override
Definition:
row.cc:29
structural::flyweight::Window
Definition:
window.h:13
structural::flyweight::Row::Insert
virtual void Insert(GlyphInterface *, GlyphContext &) override
Definition:
row.cc:44
structural::flyweight::Row::Current
virtual GlyphInterface * Current(GlyphContext &) override
Definition:
row.cc:39
src
structural
src
flyweight
row.h
Generated by
1.8.10