Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RTreeMapBase.cxx File Reference
#include <ROOT/RTreeMapBase.hxx>
#include <cmath>
#include <iomanip>
#include <sstream>
#include <unordered_map>
#include <algorithm>

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()

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

Definition at line 38 of file RTreeMapBase.cxx.

◆ ComputeFnv()

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

Definition at line 30 of file RTreeMapBase.cxx.

◆ ComputeWorstRatio()

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

Definition at line 78 of file RTreeMapBase.cxx.

◆ GetDataStr()

std::string GetDataStr ( uint64_t bytes)
static

Definition at line 51 of file RTreeMapBase.cxx.

◆ GetDiskOccupation()

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

Definition at line 59 of file RTreeMapBase.cxx.

◆ GetFloatStr()

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

Definition at line 44 of file RTreeMapBase.cxx.

◆ SquarifyChildren()

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 100 of file RTreeMapBase.cxx.

Variable Documentation

◆ kIndentationOffset

float kIndentationOffset = 0.005f
staticconstexpr

Definition at line 23 of file RTreeMapBase.cxx.

◆ kPadTextOffset

float kPadTextOffset = 0.004f
staticconstexpr

Definition at line 24 of file RTreeMapBase.cxx.

◆ kTextSizeFactor

float kTextSizeFactor = 0.009f
staticconstexpr

Definition at line 25 of file RTreeMapBase.cxx.

◆ kUnits

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

Definition at line 26 of file RTreeMapBase.cxx.