From 7c09c1f9527ea7ab8accef1c9d68d9a251c2bb8d Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: 2012年3月26日 23:07:49 +0200 Subject: Create a directory with C++ generic functions --- agg-plot/plot.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'agg-plot/plot.h') diff --git a/agg-plot/plot.h b/agg-plot/plot.h index 539b29c0..1bda3c8c 100644 --- a/agg-plot/plot.h +++ b/agg-plot/plot.h @@ -24,7 +24,7 @@ #include #include "utils.h" -#include "my_list.h" +#include "list.h" #include "strpp.h" #include "canvas.h" #include "units.h" @@ -92,7 +92,7 @@ class plot { }; public: - typedef pod_list iterator; + typedef list iterator; typedef virtual_canvas canvas_type; enum axis_e { x_axis, y_axis }; @@ -276,7 +276,7 @@ protected: item_list *m_current_layer; agg::trans_affine m_trans; - pod_list *m_drawing_queue; + list *m_drawing_queue; bool m_clip_flag; @@ -326,21 +326,21 @@ template void plot::add(VS* vs, agg::rgba8& color, bool outline) { item d(vs, color, outline); - pod_list *new_node = new pod_list(d); - m_drawing_queue = pod_list::push_back(m_drawing_queue, new_node); + list *new_node = new list(d); + m_drawing_queue = list::push_back(m_drawing_queue, new_node); RM::acquire(vs); } template void plot::push_drawing_queue() { - for (pod_list *c = m_drawing_queue; c != 0; c = c->next()) + for (list *c = m_drawing_queue; c != 0; c = c->next()) { m_current_layer->add(c->content()); } while (m_drawing_queue) - m_drawing_queue = list::pop(m_drawing_queue); + m_drawing_queue = list::pop(m_drawing_queue); } template @@ -350,7 +350,7 @@ void plot::clear_drawing_queue() { item& d = m_drawing_queue->content(); RM::dispose(d.vs); - m_drawing_queue = list::pop(m_drawing_queue); + m_drawing_queue = list::pop(m_drawing_queue); } } -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /