Design Patterns
glyph_context.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_GLYPH_CONTEXT_H_
7 #define STRUCTURAL_FLYWEIGHT_GLYPH_CONTEXT_H_
8 
9 #include "btree.h"
10 
11 namespace structural
12 {
13 namespace flyweight
14 {
16 {
17  public:
18  GlyphContext();
19  virtual ~GlyphContext();
20 
21  virtual void First();
22 
23  virtual void Next(int step);
24  virtual void Next();
25 
26  virtual bool IsDone();
27 
28  virtual void Insert(int quantity);
29  virtual void Insert();
30 
31  virtual Font *GetFont();
32 
33  virtual void SetFont(Font*);
34  virtual void SetFont(Font*, int span);
35 
36  private:
37  int index_;
38  BTree* fonts_;
39 };
40 }
41 }
42 
43 #endif
44 
virtual void Insert()
Definition: glyph_context.cc:52
Definition: shape_interface.h:11
virtual void Next()
Definition: glyph_context.cc:32
Definition: btree.h:17
Definition: font.h:15
GlyphContext()
Definition: glyph_context.cc:12
virtual ~GlyphContext()
Definition: glyph_context.cc:17
virtual Font * GetFont()
Definition: glyph_context.cc:57
Definition: glyph_context.h:15
virtual void SetFont(Font *)
Definition: glyph_context.cc:62
virtual bool IsDone()
Definition: glyph_context.cc:37
virtual void First()
Definition: glyph_context.cc:22