aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/marisa-trie/agent.pxd
blob: bf019673c2c87807d93bec246aac2f4d7f613fb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cimport query, key

cdef extern from "<marisa/agent.h>" namespace "marisa" nogil:
    cdef cppclass Agent:
        Agent() except +

        query.Query &query()
        key.Key &key()

        void set_query(char *str)
        void set_query(char *ptr, int length)
        void set_query(int key_id)

        void set_key(char *str)
        void set_key(char *ptr, int length)
        void set_key(int id)

        void clear()

        void init_state()

        void swap(Agent &rhs)