Design Patterns
Main Page
Namespaces
Classes
Files
File List
column.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_COLUMN_H_
7
#define STRUCTURAL_FLYWEIGHT_COLUMN_H_
8
9
#include "
glyph_context.h
"
10
#include "
window.h
"
11
#include "
glyph_interface.h
"
12
13
namespace
structural
14
{
15
namespace
flyweight
16
{
17
class
Column
:
public
GlyphInterface
18
{
19
public
:
20
~Column
()
override
;
21
22
virtual
void
First
(
GlyphContext
&)
override
;
23
virtual
void
Next
(
GlyphContext
&)
override
;
24
virtual
bool
IsDone
(
GlyphContext
&)
override
;
25
26
virtual
void
SetFont
(
Font
*,
GlyphContext
&)
override
;
27
virtual
Font
*
GetFont
(
GlyphContext
&)
override
;
28
29
virtual
GlyphInterface
*
Current
(
GlyphContext
&)
override
;
30
31
virtual
void
Insert
(
GlyphInterface
*,
GlyphContext
&)
override
;
32
virtual
void
Remove
(
GlyphContext
&)
override
;
33
34
virtual
void
Draw
(
Window
*,
GlyphContext
&)
override
;
35
};
36
}
37
}
38
39
#endif
40
structural::flyweight::Column::~Column
~Column() override
Definition:
column.cc:22
glyph_context.h
structural::flyweight::Column::First
virtual void First(GlyphContext &) override
Definition:
column.cc:24
structural
Definition:
shape_interface.h:11
structural::flyweight::Column::Current
virtual GlyphInterface * Current(GlyphContext &) override
Definition:
column.cc:39
structural::flyweight::Column::GetFont
virtual Font * GetFont(GlyphContext &) override
Definition:
column.cc:17
structural::flyweight::Column::Insert
virtual void Insert(GlyphInterface *, GlyphContext &) override
Definition:
column.cc:44
structural::flyweight::Font
Definition:
font.h:15
structural::flyweight::Column::IsDone
virtual bool IsDone(GlyphContext &) override
Definition:
column.cc:34
structural::flyweight::Column::Remove
virtual void Remove(GlyphContext &) override
Definition:
column.cc:46
structural::flyweight::Column::Next
virtual void Next(GlyphContext &) override
Definition:
column.cc:29
glyph_interface.h
structural::flyweight::Column::Draw
virtual void Draw(Window *, GlyphContext &) override
Definition:
column.cc:48
structural::flyweight::GlyphContext
Definition:
glyph_context.h:15
structural::flyweight::GlyphInterface
Definition:
glyph_interface.h:17
window.h
structural::flyweight::Column
Definition:
column.h:17
structural::flyweight::Column::SetFont
virtual void SetFont(Font *, GlyphContext &) override
Definition:
column.cc:12
structural::flyweight::Window
Definition:
window.h:13
src
structural
src
flyweight
column.h
Generated by
1.8.10