minor
This commit is contained in:
parent
8f59dfbd41
commit
bc7b06bcb5
16
README.md
16
README.md
|
@ -282,12 +282,18 @@ Enumerate() = {
|
|||
|
||||
## API
|
||||
|
||||
`xcdat.hpp` provides
|
||||
Xcdat can be used by including `xcdat.hpp`.
|
||||
|
||||
- `xcdat::trie_7_type`:
|
||||
- `xcdat::trie_8_type`:
|
||||
### Trie dictionary types
|
||||
|
||||
### Dictionary class
|
||||
The two dictionary types are difined.
|
||||
|
||||
- `xcdat::trie_8_type` is the trie dictionary using standard DACs using 8-bit integers for elements.
|
||||
- `xcdat::trie_7_type` is the trie dictionary using pointer-based DACs using 7-bit integers for elements.
|
||||
|
||||
### Trie dictionary class
|
||||
|
||||
The trie dictionary has the following members.
|
||||
|
||||
```c++
|
||||
//! A compressed string dictionary based on an improved double-array trie.
|
||||
|
@ -350,7 +356,7 @@ class trie {
|
|||
//! Get the number of unused DA units.
|
||||
std::uint64_t num_free_units() const;
|
||||
|
||||
//! Get the number of unused DA units.
|
||||
//! Get the length of TAIL vector.
|
||||
std::uint64_t tail_length() const;
|
||||
|
||||
//! Lookup the ID of the keyword.
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
namespace xcdat {
|
||||
|
||||
using trie_7_type = trie<bc_vector_7>;
|
||||
using trie_8_type = trie<bc_vector_8>;
|
||||
using trie_7_type = trie<bc_vector_7>;
|
||||
|
||||
//! Set the continuous memory block to a new trie instance.
|
||||
template <class Trie>
|
||||
|
|
|
@ -97,7 +97,7 @@ class trie {
|
|||
return m_bcvec.num_free_units();
|
||||
}
|
||||
|
||||
//! Get the number of unused DA units.
|
||||
//! Get the length of TAIL vector.
|
||||
inline std::uint64_t tail_length() const {
|
||||
return m_tvec.size();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue