#include <map>
#include <vector>
+#include <ostream>
// invariant: row[j].id == j
static LookupTable<HttpHdrCcType>::Record CcAttrs[] = {
id, name, count, xdiv(count, dump_stat->ccParsedCount));
}
+std::ostream &
+operator<< (std::ostream &s, HttpHdrCcType c)
+{
+ const unsigned char ic = static_cast<int>(c);
+ if (c >= HttpHdrCcType::CC_PUBLIC && c < HttpHdrCcType::CC_ENUM_END)
+ s << CcAttrs[ic].name << '[' << ic << ']' ;
+ else
+ s << "*invalid hdrcc* [" << ic << ']';
+ return s;
+}
+
#if !_USE_INLINE_
#include "HttpHdrCc.cci"
#endif
#include "dlink.h"
#include "mem/forward.h"
#include "SquidString.h"
+#include <iosfwd>
class Packable;
void httpHdrCcUpdateStats(const HttpHdrCc * cc, StatHist * hist);
void httpHdrCcStatDumper(StoreEntry * sentry, int idx, double val, double size, int count);
+std::ostream&
+operator<< (std::ostream &, HttpHdrCcType);
+
#if _USE_INLINE_
#include "HttpHdrCc.cci"
#endif