34a35
> #include <set>
176a178,181
> void
> Info::enable()
> {
> }
177a183,213
> void
> VectorInfoBase::enable()
> {
> size_type s = size();
> if (subnames.size() < s)
> subnames.resize(s);
> if (subdescs.size() < s)
> subdescs.resize(s);
> }
>
> void
> VectorDistInfoBase::enable()
> {
> size_type s = size();
> if (subnames.size() < s)
> subnames.resize(s);
> if (subdescs.size() < s)
> subdescs.resize(s);
> }
>
> void
> Vector2dInfoBase::enable()
> {
> if (subnames.size() < x)
> subnames.resize(x);
> if (subdescs.size() < x)
> subdescs.resize(x);
> if (y_subnames.size() < y)
> y_subnames.resize(y);
> }
>
247,251d282
< void
< Formula::update()
< {
< }
<
259c290
< check()
---
> enable()
280,285d310
< if (i == end)
< return;
<
< iter_t last = i;
< ++i;
<
287,288c312,315
< if ((*i)->name == (*last)->name)
< panic("same name used twice! name=%s\n", (*i)->name);
---
> Info *info = *i;
> info->enable();
> }
> }
290c317,325
< last = i;
---
> void
> prepare()
> {
> list<Info *>::iterator i = statsList().begin();
> list<Info *>::iterator end = statsList().end();
> while (i != end) {
> Info *info = *i;
> info->prepare();
> ++i;