forked from pytries/DAWG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_guide.pxd
34 lines (24 loc) · 853 Bytes
/
_guide.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
from _base_types cimport BaseType, SizeType, ValueType, UCharType, CharType
from _guide_unit cimport GuideUnit
from iostream cimport istream, ostream
cdef extern from "../lib/dawgdic/guide.h" namespace "dawgdic":
cdef cppclass Guide:
Guide()
GuideUnit *units()
SizeType size()
SizeType total_size()
SizeType file_size()
# The root index.
BaseType root()
UCharType child(BaseType index)
UCharType sibling(BaseType index)
# Reads a dictionary from an input stream.
bint Read(istream *input)
# Writes a dictionry to an output stream.
bint Write(ostream *output)
# Maps memory with its size.
void Map(void *address)
# Swaps Guides.
void Swap(Guide *Guide)
# Initializes a Guide.
void Clear()