about summary refs log tree commit diff stats
path: root/data/maps/the_partial/doors.txtpb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-09-12 14:34:10 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-09-12 14:34:10 -0400
commitdc1d615c22237b75ddf75c7dc65e05c53632223e (patch)
treeddee12f2e68129df45db602778da549f9f8fb036 /data/maps/the_partial/doors.txtpb
parent4a5dff2618ef1071f0477f529b7cec22a3dbd340 (diff)
downloadlingo2-archipelago-dc1d615c22237b75ddf75c7dc65e05c53632223e.tar.gz
lingo2-archipelago-dc1d615c22237b75ddf75c7dc65e05c53632223e.tar.bz2
lingo2-archipelago-dc1d615c22237b75ddf75c7dc65e05c53632223e.zip
Indent properly
Diffstat (limited to 'data/maps/the_partial/doors.txtpb')
0 files changed, 0 insertions, 0 deletions
olor: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef HISTOGRAM_H_24094D97
#define HISTOGRAM_H_24094D97

#include <map>
#include <string>

template <class T>
class histogram {
  public:
    void add(const T& inst);
    void compile();
    const T& next() const;
    void print() const;
    
  private:
    std::map<T, int> freqtable;
    std::map<int, T> distribution;
};

#endif /* end of include guard: HISTOGRAM_H_24094D97 */