| 872 | }; |
| 873 | |
| 874 | class LogStream : public ostrstream { |
| 875 | public: |
| 876 | LogStream(char *buf, int len, int ctr) |
| 877 | : ostrstream(buf, len), |
| 878 | ctr_(ctr) { |
| 879 | self_ = this; |
| 880 | } |
| 881 | |
| 882 | int ctr() const { return ctr_; } |
| 883 | void set_ctr(int ctr) { ctr_ = ctr; } |
| 884 | LogStream* self() const { return self_; } |
| 885 | |
| 886 | private: |
| 887 | int ctr_; // Counter hack (for the LOG_EVERY_X() macro) |
| 888 | LogStream *self_; // Consistency check hack |
| 889 | }; |
| 890 | |
| 891 | public: |
| 892 | // icc 8 requires this typedef to avoid an internal compiler error. |
nothing calls this directly
no outgoing calls
no test coverage detected