|
| Trie () |
|
void | update_direct (int node, int id) |
|
void | update_child (int node, int child, int id) |
|
void | add (const string &str, int str_index, int node_index, int id) |
|
void | add (const string &str, int id) |
|
void | add (const string &str) |
| 文字列 str を追加する
|
|
void | query (const string &str, const function< void(int)> &f, int str_index, int node_index) |
|
void | query (const string &str, const function< void(int)> &f) |
| strをprefixとして持つ全ての文字列に対し、見つかった文字列のインデックスそれぞれに対してfを実行する
|
|
int | count () const |
| 文字列の総数
|
|
int | size () const |
| ノードの総数
|
|
| Trie (int len) |
|
void | insert (const string &s) |
|
int | count (const string &s) |
|
void | erase (const string &s) |
|
template<int char_size, int margin>
struct Trie< char_size, margin >
Trie
- テンプレート引数
-
char_size | アルファベットのサイズ |
margin | 0にあたる文字 |
aho.hpp の 19 行目に定義があります。