|
ulib
1.0
S.W. Lee's essential C++ library
|
#include <ucounter.h>
Classes | |
| class | _str_cnt |
| class | _str_cnt_less |
Public Member Functions | |
| CUCounter () | |
| unsigned long | GetNumItem () |
| unsigned long | GetTotalCount () |
| void | AddItem (char *item, unsigned long num=1) |
| void | AddItem (long item, unsigned long num=1) |
| bool | GetCount (char *item, unsigned long &ret) |
| void | Print (FILE *fp, char mode[]="IC", char sort='I') |
Public Attributes | |
| std::map< std::string, unsigned long > | str_cnt_map |
| ulib::CUCounter::CUCounter | ( | ) |
| void ulib::CUCounter::AddItem | ( | char * | item, |
| unsigned long | num = 1 |
||
| ) |
References str_cnt_map.
Referenced by AddItem().
| void ulib::CUCounter::AddItem | ( | long | item, |
| unsigned long | num = 1 |
||
| ) |
References AddItem().
| bool ulib::CUCounter::GetCount | ( | char * | item, |
| unsigned long & | ret | ||
| ) |
References str_cnt_map.
| unsigned long ulib::CUCounter::GetNumItem | ( | ) |
References str_cnt_map.
| unsigned long ulib::CUCounter::GetTotalCount | ( | ) |
Referenced by Print().
| void ulib::CUCounter::Print | ( | FILE * | fp, |
| char | mode[] = "IC", |
||
| char | sort = 'I' |
||
| ) |
References GetTotalCount(), and str_cnt_map.
| std::map<std::string, unsigned long> ulib::CUCounter::str_cnt_map |
Referenced by AddItem(), GetCount(), GetNumItem(), and Print().
1.8.1.2