|
Grok 15.1.0
|
Tag tree. More...
#include <TagTree.h>
Public Member Functions | |
| TagTree (uint32_t leavesWidth, uint32_t leavesHeight) | |
| Create a tag tree. | |
| ~TagTree () | |
| constexpr T | getUninitializedValue (void) |
| void | reset () |
| Reset a tag tree (set all leaves to 0) | |
| void | setvalue (uint64_t leafno, T value) |
| Set the value of a leaf of a tag tree. | |
| bool | compress (BitIO *bio, uint64_t leafno, T threshold) |
| Encode the value of a leaf of the tag tree up to a given threshold. | |
| void | decodeValue (BitIO *bio, uint64_t leafno, T threshold, T *value) |
| Decompress the value of a leaf of the tag tree up to a given threshold. | |
Private Attributes | |
| uint32_t | leavesWidth_ |
| uint32_t | leavesHeight_ |
| uint64_t | nodeCount |
| TagTreeNode< T > * | nodes |
Tag tree.
|
inline |
Create a tag tree.
| leavesWidth_ | Width of the array of leaves of the tree |
| leavesHeight_ | Height of the array of leaves of the tree |
|
inline |
|
inline |
Encode the value of a leaf of the tag tree up to a given threshold.
| bio | BIO handle |
| leafno | leaf to compress |
| threshold | Threshold to use when compressing value of the leaf |
|
inline |
Decompress the value of a leaf of the tag tree up to a given threshold.
| bio | Pointer to a BIO handle |
| leafno | Number that identifies the leaf to decompress |
| threshold | Threshold to use when decoding value of the leaf |
| value | the node's value |
|
inlineconstexpr |
Referenced by grk::TagTree< uint8_t >::decodeValue(), and grk::TagTree< uint8_t >::reset().
|
inline |
Reset a tag tree (set all leaves to 0)
Referenced by grk::TagTree< uint8_t >::TagTree().
|
inline |
Set the value of a leaf of a tag tree.
| leafno | leaf to modify |
| value | new value of leaf |
|
private |
|
private |
|
private |
|
private |