-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhtrie_map.pxd
117 lines (96 loc) · 4.83 KB
/
htrie_map.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# distutils: language=c++
from libcpp cimport bool
from libcpp.string cimport string
from libcpp.utility cimport pair
cdef extern from "htrie_map.h" namespace "tsl" nogil:
cdef cppclass htrie_map[CharT, T]:
cppclass iterator:
T &operator*()
iterator &operator++()
bool operator==(const iterator& lhs, const iterator& rhs)
bool operator!=(const iterator& lhs, const iterator& rhs)
void key(string& key_buffer_out) const
string key() const
T value() const
cppclass const_iterator:
const T &operator*()
const_iterator &operator++()
bool operator==(const const_iterator& lhs, const const_iterator& rhs)
bool operator!=(const const_iterator& lhs, const const_iterator& rhs)
void key(string& key_buffer_out) const
string key() const
T value() const
cppclass prefix_iterator:
const T &operator*()
prefix_iterator &operator++()
bool operator==(const prefix_iterator& lhs, const prefix_iterator& rhs)
bool operator!=(const prefix_iterator& lhs, const prefix_iterator& rhs)
cppclass const_prefix_iterator:
const T &operator*()
const_prefix_iterator &operator++()
bool operator==(const const_prefix_iterator& lhs, const const_prefix_iterator& rhs)
bool operator!=(const const_prefix_iterator& lhs, const const_prefix_iterator& rhs)
htrie_map() except +
iterator begin()
const_iterator const_begin "begin" () const
const_iterator cbegin() const
iterator end()
const_iterator const_end "end" () const
const_iterator cend() const
bool empty() const
size_t size() const
size_t max_size() const
size_t max_key_size() const
void shrink_to_fit()
void clear()
pair[iterator, bool] insert_ks(const CharT* key, size_t key_size, const T &value) except +
pair[iterator, bool] insert(const CharT* key, const T &value) except +
pair[iterator, bool] insert(const string& key, const T &value) except +
iterator erase(const_iterator pos)
iterator erase(const_iterator first, const_iterator last)
size_t erase_ks(const CharT* key, size_t key_size)
size_t erase(const CharT* key)
size_t erase(const string& key)
size_t erase_prefix_ks(const CharT* prefix, size_t prefix_size)
size_t erase_prefix(const CharT* prefix)
size_t erase_prefix(const string& prefix)
void swap(htrie_map &other)
T& at_ks(const CharT* key, size_t key_size) except +
const T& const_at_ks "at_ks" (const CharT* key, size_t key_size) except + # const
T& at(const CharT* key) except +
const T& const_at "at" (const CharT* key) except + # const
T& at(const string& key) except +
const T& const_at "at" (const string& key) except + # const
T &operator[](const CharT* key)
T &operator[](const string& key) # string should be basic_string[CharT]
size_t count_ks(const CharT* key, size_t key_size) const
size_t count(const CharT* key) const
size_t count(const string& key) const
iterator find_ks(const CharT* key, size_t key_size)
const_iterator const_find_ks "find_ks"(const CharT* key, size_t key_size) const
iterator find(const CharT* key)
const_iterator const_find "find" (const CharT* key) const
iterator find(const string& key)
const_iterator const_find "find" (const string& key) const
pair[iterator, iterator] equal_range_ks(const CharT* key, size_t key_size)
pair[const_iterator, const_iterator] const_equal_range_ks "equal_range_ks" (const CharT* key, size_t key_size) const
pair[iterator, iterator] equal_range(const CharT* key)
pair[const_iterator, const_iterator] const_equal_range "equal_range" (const CharT* key) const
pair[iterator, iterator] equal_range(const string& key)
pair[const_iterator, const_iterator] const_equal_range "equal_range" (const string& key) const
pair[prefix_iterator, prefix_iterator] equal_prefix_range_ks(const CharT* prefix, size_t prefix_size)
pair[const_prefix_iterator, const_prefix_iterator] const_equal_prefix_range_ks "equal_prefix_range_ks" (const CharT* prefix, size_t prefix_size) const
pair[prefix_iterator, prefix_iterator] equal_prefix_range(const CharT* prefix)
pair[const_prefix_iterator, const_prefix_iterator] const_equal_prefix_range "equal_prefix_range" (const CharT* prefix) const
pair[prefix_iterator, prefix_iterator] equal_prefix_range(const string& prefix)
pair[const_prefix_iterator, const_prefix_iterator] const_equal_prefix_range "equal_prefix_range" (const string& prefix) const
iterator longest_prefix_ks(const CharT* key, size_t key_size)
const_iterator const_longest_prefix_ks "longest_prefix_ks" (const CharT* key, size_t key_size) const
iterator longest_prefix(const CharT* key)
const_iterator const_longest_prefix "longest_prefix" (const CharT* key) const
iterator longest_prefix(const string& key)
const_iterator const_longest_prefix "longest_prefix" (const string& key) const
float max_load_factor() const
void max_load_factor(float ml)
size_t burst_threshold() const
void burst_threshold(size_t threshold)