-rw-r--r-- | agg-plot/window-cpp.h | 5 |
diff --git a/agg-plot/window-cpp.h b/agg-plot/window-cpp.h index 515b7fda..564a4160 100644 --- a/agg-plot/window-cpp.h +++ b/agg-plot/window-cpp.h @@ -60,6 +60,9 @@ private: static ref *ref_lookup (ref::node *p, int slot_id); + template <class Function> + void plot_apply_rec(Function& f, ref::node* n); + ref::node* m_tree; public: @@ -73,6 +76,8 @@ public: if (m_tree) delete m_tree; }; + template <class Function> void plot_apply(Function& f) { this->plot_apply_rec(f, m_tree); } + bool split(const char *spec); int attach(sg_plot *plot, const char *spec); void draw_slot(int slot_id, bool update_req); |