Tag tree.
More...
#include <TagTree.h>
|
| TagTree (uint32_t leavesWidth, uint32_t leavesHeight) |
| Create a tag tree. More...
|
|
| ~TagTree () |
|
constexpr T | getUninitializedValue (void) |
|
void | reset () |
| Reset a tag tree (set all leaves to 0) More...
|
|
void | setvalue (uint64_t leafno, T value) |
| Set the value of a leaf of a tag tree. More...
|
|
bool | compress (BitIO *bio, uint64_t leafno, T threshold) |
| Encode the value of a leaf of the tag tree up to a given threshold. More...
|
|
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. More...
|
|
template<typename T>
class grk::TagTree< T >
Tag tree.
◆ TagTree()
◆ ~TagTree()
◆ compress()
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 compressing value of the leaf |
- Returns
- true if successful, otherwise false
References grk::TagTree< T >::nodes, and grk::BitIO::write().
◆ decodeValue()
template<typename T >
void grk::TagTree< T >::decodeValue |
( |
BitIO * |
bio, |
|
|
uint64_t |
leafno, |
|
|
T |
threshold, |
|
|
T * |
value |
|
) |
| |
|
inline |
◆ getUninitializedValue()
template<typename T >
constexpr T grk::TagTree< T >::getUninitializedValue |
( |
void |
| ) |
|
|
inlineconstexpr |
◆ reset()
◆ setvalue()
template<typename T >
void grk::TagTree< T >::setvalue |
( |
uint64_t |
leafno, |
|
|
T |
value |
|
) |
| |
|
inline |
Set the value of a leaf of a tag tree.
- Parameters
-
leafno | leaf to modify |
value | new value of leaf |
References grk::TagTree< T >::nodes.
◆ leavesHeight_
◆ leavesWidth_
◆ nodeCount
◆ nodes
The documentation for this class was generated from the following file: