#include <TagTree.h>
|
| | TagTree (uint16_t leavesWidth, uint16_t leavesHeight) |
| | TagTree constructor.
|
| | ~TagTree ()=default |
| constexpr T | getUninitializedValue () const noexcept |
| void | reset () |
| | Reset a tag tree (set all leaves to 0).
|
| void | set (uint64_t leafno, T value) |
| | Set the value of a leaf of a tag tree.
|
| bool | encode (t1_t2::BitIO *bio, uint64_t leafno, T threshold) |
| | Encode the value of a leaf of the tag tree up to a given threshold.
|
| void | decode (t1_t2::BitIO *bio, uint64_t leafno, T threshold, T *value) |
| | Decode the value of a leaf of the tag tree up to a given threshold.
|
◆ TagTree()
template<typename T>
| grk::TagTree< T >::TagTree |
( |
uint16_t | leavesWidth, |
|
|
uint16_t | leavesHeight ) |
|
inline |
TagTree constructor.
- Parameters
-
| leavesWidth | Width of the array of leaves of the tree |
| leavesHeight | Height of the array of leaves of the tree |
- Returns
- a new tag tree if successful, otherwise nullptr
◆ ~TagTree()
◆ buildTree()
◆ decode()
Decode the value of a leaf of the tag tree up to a given threshold.
- Parameters
-
| bio | Pointer to a BIO handle |
| leafno | Number that identifies the leaf to decode |
| threshold | Threshold to use when decoding value of the leaf |
| value | the node's value |
◆ encode()
Encode the value of a leaf of the tag tree up to a given threshold.
- Parameters
-
| bio | BIO handle |
| leafno | leaf to compress |
| threshold | Threshold to use when encoding value of the leaf |
- Returns
- true if successful, otherwise false
◆ getUninitializedValue()
◆ reset()
◆ set()
Set the value of a leaf of a tag tree.
- Parameters
-
| leafno | leaf to modify |
| value | new value of leaf |
◆ leafCache_
◆ leavesHeight_
◆ leavesWidth_
◆ nodes_
◆ parents_
The documentation for this class was generated from the following file: