Create a directory with C++ generic functions - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/window.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年03月26日 23:07:49 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年03月26日 23:07:49 +0200
commit7c09c1f9527ea7ab8accef1c9d68d9a251c2bb8d (patch)
tree1f02e61df5a6eae90fa09b2ed3823db154e8cd25 /agg-plot/window.cpp
parent822de113f7d3b9f7bbd0a80159808e0fa3dcdc51 (diff)
downloadgsl-shell-7c09c1f9527ea7ab8accef1c9d68d9a251c2bb8d.tar.gz
Create a directory with C++ generic functions
Diffstat (limited to 'agg-plot/window.cpp')
-rw-r--r--agg-plot/window.cpp 12
1 files changed, 6 insertions, 6 deletions
diff --git a/agg-plot/window.cpp b/agg-plot/window.cpp
index 6880c79a..4a412b7b 100644
--- a/agg-plot/window.cpp
+++ b/agg-plot/window.cpp
@@ -64,14 +64,14 @@ int window::ref::calculate(window::ref::node* t, const bmatrix& m, int id)
r->matrix = m;
}
- int nb = list::length(t->tree());
+ int nb = list<ref::node*>::length(t->tree());
if (nb > 0)
{
double frac = 1 / (double) nb;
direction_e dir;
- ref::node::list *ls = t->tree(dir);
+ list<ref::node*> *ls = t->tree(dir);
if (ls)
{
bmatrix lm;
@@ -117,7 +117,7 @@ window::ref::save_image (agg::rendering_buffer& win_buf,
void
window::draw_rec(ref::node *n)
{
- ref::node::list *ls;
+ list<ref::node*> *ls;
for (ls = n->tree(); ls != NULL; ls = ls->next())
draw_rec(ls->content());
@@ -130,7 +130,7 @@ window::draw_rec(ref::node *n)
window::ref* window::ref_lookup (ref::node *p, int slot_id)
{
- ref::node::list *t = p->tree();
+ list<ref::node*> *t = p->tree();
for (/* */; t; t = t->next())
{
ref *ref = window::ref_lookup(t->content(), slot_id);
@@ -274,7 +274,7 @@ window::on_resize(int sx, int sy)
void
window::cleanup_tree_rec (lua_State *L, int window_index, ref::node* n)
{
- for (ref::node::list *ls = n->tree(); ls != NULL; ls = ls->next())
+ for (list<ref::node*> *ls = n->tree(); ls != NULL; ls = ls->next())
cleanup_tree_rec(L, window_index, ls->content());
ref *ref = n->content();
@@ -335,7 +335,7 @@ int window::attach(sg_plot* plot, const char *spec)
for (ptr = next_int (spec, k); ptr; ptr = next_int (ptr, k))
{
- ref::node::list* list = n->tree();
+ list<ref::node*>* list = n->tree();
if (! list)
return -1;
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月19日 21:28:22 +0000

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