Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RTreeMapBase.cxx File Reference
#include <ROOT/RTreeMapBase.hxx>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <unordered_map>
#include <algorithm>
Include dependency graph for RTreeMapBase.cxx:

Functions

static RTreeMapBase::RGBColor ComputeColor (const std::string &str)
 
static uint64_t ComputeFnv (const std::string &str)
 
static float ComputeWorstRatio (const std::vector< RTreeMapBase::Node > &row, float width, float height, uint64_t totalSize, bool horizontalRows)
 
static std::string GetDataStr (uint64_t bytes)
 
static std::vector< std::pair< std::string, uint64_t > > GetDiskOccupation (const std::vector< RTreeMapBase::Node > &nodes)
 
static std::string GetFloatStr (const float &n, const uint8_t &precision)
 
static std::vector< std::pair< RTreeMapBase::Node, RTreeMapBase::Rect > > SquarifyChildren (const std::vector< RTreeMapBase::Node > &children, RTreeMapBase::Rect rect, bool horizontalRows, uint64_t totalSize)
 

Variables

static constexpr float kIndentationOffset = 0.005f
 
static constexpr float kPadTextOffset = 0.004f
 
static constexpr float kTextSizeFactor = 0.009f
 
static constexpr const char * kUnits [] = {"B", "KB", "MB", "GB", "TB", "PB", "EB"}
 

Detailed Description

Author
Patryk Tymoteusz Pilichowski patry.nosp@m.k.ty.nosp@m.moteu.nosp@m.sz.p.nosp@m.ilich.nosp@m.owsk.nosp@m.i@cer.nosp@m.n.ch
Date
2025-08-21
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition in file RTreeMapBase.cxx.

Function Documentation

◆ ComputeColor()

static RTreeMapBase::RGBColor ComputeColor ( const std::string & str)
static

Definition at line 39 of file RTreeMapBase.cxx.

◆ ComputeFnv()

static uint64_t ComputeFnv ( const std::string & str)
static

Definition at line 31 of file RTreeMapBase.cxx.

◆ ComputeWorstRatio()

static float ComputeWorstRatio ( const std::vector< RTreeMapBase::Node > & row,
float width,
float height,
uint64_t totalSize,
bool horizontalRows )
static

Definition at line 79 of file RTreeMapBase.cxx.

◆ GetDataStr()

static std::string GetDataStr ( uint64_t bytes)
static

Definition at line 52 of file RTreeMapBase.cxx.

◆ GetDiskOccupation()

static std::vector< std::pair< std::string, uint64_t > > GetDiskOccupation ( const std::vector< RTreeMapBase::Node > & nodes)
static

Definition at line 60 of file RTreeMapBase.cxx.

◆ GetFloatStr()

static std::string GetFloatStr ( const float & n,
const uint8_t & precision )
static

Definition at line 45 of file RTreeMapBase.cxx.

◆ SquarifyChildren()

static std::vector< std::pair< RTreeMapBase::Node, RTreeMapBase::Rect > > SquarifyChildren ( const std::vector< RTreeMapBase::Node > & children,
RTreeMapBase::Rect rect,
bool horizontalRows,
uint64_t totalSize )
static

Definition at line 101 of file RTreeMapBase.cxx.

Variable Documentation

◆ kIndentationOffset

constexpr float kIndentationOffset = 0.005f
staticconstexpr

Definition at line 24 of file RTreeMapBase.cxx.

◆ kPadTextOffset

constexpr float kPadTextOffset = 0.004f
staticconstexpr

Definition at line 25 of file RTreeMapBase.cxx.

◆ kTextSizeFactor

constexpr float kTextSizeFactor = 0.009f
staticconstexpr

Definition at line 26 of file RTreeMapBase.cxx.

◆ kUnits

constexpr const char* kUnits[] = {"B", "KB", "MB", "GB", "TB", "PB", "EB"}
staticconstexpr

Definition at line 27 of file RTreeMapBase.cxx.