LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
sc::SparklineList Class Reference

Tracks and gathers all created sparklines and sparkline groups. More...

#include <SparklineList.hxx>

Public Member Functions

 SparklineList ()
 
void addSparkline (std::shared_ptr< Sparkline > const &pSparkline)
 
void removeSparkline (std::shared_ptr< Sparkline > const &pSparkline)
 
std::vector< std::shared_ptr< SparklineGroup > > getSparklineGroups ()
 
std::vector< std::shared_ptr< Sparkline > > getSparklinesFor (std::shared_ptr< SparklineGroup > const &pSparklineGroup)
 

Private Attributes

std::vector< std::weak_ptr< SparklineGroup > > m_aSparklineGroups
 
std::map< std::weak_ptr< SparklineGroup >, std::vector< std::weak_ptr< Sparkline > >, std::owner_less<> > m_aSparklineGroupMap
 

Detailed Description

Tracks and gathers all created sparklines and sparkline groups.

All the collections of sparkline groups and sparklines don't take the ownership of the pointers.

Definition at line 27 of file SparklineList.hxx.

Constructor & Destructor Documentation

◆ SparklineList()

sc::SparklineList::SparklineList ( )
default

Member Function Documentation

◆ addSparkline()

void sc::SparklineList::addSparkline ( std::shared_ptr< Sparkline > const &  pSparkline)

Definition at line 17 of file SparklineList.cxx.

References m_aSparklineGroupMap, and m_aSparklineGroups.

Referenced by ScColumn::CreateSparklineCell().

◆ getSparklineGroups()

std::vector< std::shared_ptr< SparklineGroup > > sc::SparklineList::getSparklineGroups ( )

Definition at line 52 of file SparklineList.cxx.

References m_aSparklineGroups.

◆ getSparklinesFor()

std::vector< std::shared_ptr< Sparkline > > sc::SparklineList::getSparklinesFor ( std::shared_ptr< SparklineGroup > const &  pSparklineGroup)

Definition at line 73 of file SparklineList.cxx.

References m_aSparklineGroupMap.

Referenced by ScGridWindow::UpdateSparklineGroupOverlay().

◆ removeSparkline()

void sc::SparklineList::removeSparkline ( std::shared_ptr< Sparkline > const &  pSparkline)

Definition at line 28 of file SparklineList.cxx.

References m_aSparklineGroupMap.

Member Data Documentation

◆ m_aSparklineGroupMap

std::map<std::weak_ptr<SparklineGroup>, std::vector<std::weak_ptr<Sparkline> >, std::owner_less<> > sc::SparklineList::m_aSparklineGroupMap
private

Definition at line 33 of file SparklineList.hxx.

Referenced by addSparkline(), getSparklinesFor(), and removeSparkline().

◆ m_aSparklineGroups

std::vector<std::weak_ptr<SparklineGroup> > sc::SparklineList::m_aSparklineGroups
private

Definition at line 30 of file SparklineList.hxx.

Referenced by addSparkline(), and getSparklineGroups().


The documentation for this class was generated from the following files: