statistics.hh (10373:342348537a53) statistics.hh (10386:c81407818741)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 727 unchanged lines hidden (view full) ---

736
737 void reset() { data()->reset(this->info()); }
738 void prepare() { data()->prepare(this->info()); }
739};
740
741class ProxyInfo : public ScalarInfo
742{
743 public:
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 727 unchanged lines hidden (view full) ---

736
737 void reset() { data()->reset(this->info()); }
738 void prepare() { data()->prepare(this->info()); }
739};
740
741class ProxyInfo : public ScalarInfo
742{
743 public:
744 std::string str() const { return to_string(value()); }
744 std::string str() const { return std::to_string(value()); }
745 size_type size() const { return 1; }
746 bool check() const { return true; }
747 void prepare() { }
748 void reset() { }
749 bool zero() const { return value() == 0; }
750
751 void visit(Output &visitor) { visitor.visit(*this); }
752};

--- 1412 unchanged lines hidden (view full) ---

2165 private:
2166 VResult vresult;
2167
2168 public:
2169 ConstNode(T s) : vresult(1, (Result)s) {}
2170 const VResult &result() const { return vresult; }
2171 Result total() const { return vresult[0]; };
2172 size_type size() const { return 1; }
745 size_type size() const { return 1; }
746 bool check() const { return true; }
747 void prepare() { }
748 void reset() { }
749 bool zero() const { return value() == 0; }
750
751 void visit(Output &visitor) { visitor.visit(*this); }
752};

--- 1412 unchanged lines hidden (view full) ---

2165 private:
2166 VResult vresult;
2167
2168 public:
2169 ConstNode(T s) : vresult(1, (Result)s) {}
2170 const VResult &result() const { return vresult; }
2171 Result total() const { return vresult[0]; };
2172 size_type size() const { return 1; }
2173 std::string str() const { return to_string(vresult[0]); }
2173 std::string str() const { return std::to_string(vresult[0]); }
2174};
2175
2176template <class T>
2177class ConstVectorNode : public Node
2178{
2179 private:
2180 VResult vresult;
2181

--- 13 unchanged lines hidden (view full) ---

2195
2196 size_type size() const { return vresult.size(); }
2197 std::string
2198 str() const
2199 {
2200 size_type size = this->size();
2201 std::string tmp = "(";
2202 for (off_type i = 0; i < size; i++)
2174};
2175
2176template <class T>
2177class ConstVectorNode : public Node
2178{
2179 private:
2180 VResult vresult;
2181

--- 13 unchanged lines hidden (view full) ---

2195
2196 size_type size() const { return vresult.size(); }
2197 std::string
2198 str() const
2199 {
2200 size_type size = this->size();
2201 std::string tmp = "(";
2202 for (off_type i = 0; i < size; i++)
2203 tmp += csprintf("%s ",to_string(vresult[i]));
2203 tmp += csprintf("%s ", std::to_string(vresult[i]));
2204 tmp += ")";
2205 return tmp;
2206 }
2207};
2208
2209template <class Op>
2210struct OpString;
2211

--- 1025 unchanged lines hidden ---
2204 tmp += ")";
2205 return tmp;
2206 }
2207};
2208
2209template <class Op>
2210struct OpString;
2211

--- 1025 unchanged lines hidden ---