author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年11月04日 23:45:07 +0100 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年11月04日 23:45:07 +0100 |
commit | 96439321439d5919d58a3627a06460b3a2c31c4a (patch) | |
tree | 46f441234a18db08a529f02b0ce3afa95007399d /agg-plot/window-cpp.h | |
parent | 1ad1230456c211903c4d1c208fdd3d93e5956879 (diff) | |
download | gsl-shell-96439321439d5919d58a3627a06460b3a2c31c4a.tar.gz |
-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); |