1.9
Public Types | Public Member Functions | List of all members
ChartItemArray Class Reference

Public Types

using DataArray = std::deque< std::pair< double, double > >
 
using StringDataArray = std::deque< std::pair< double, std::string > >
 

Public Member Functions

 ChartItemArray ()
 
 ~ChartItemArray ()=default
 
bool add (const double &data, const double &data1)
 
bool add (const double &data, const std::string &data1)
 
void clear ()
 
void data (DataArray &data)
 
void data (StringDataArray &data)
 
DataArray get_data ()
 
DataArray get_data () const
 
StringDataArray get_sdata ()
 
StringDataArray get_sdata () const
 
EGT_NODISCARD bool IsStringArray () const
 

Member Typedef Documentation

◆ DataArray

using DataArray = std::deque<std::pair<double, double> >

◆ StringDataArray

using StringDataArray = std::deque<std::pair<double, std::string> >

Constructor & Destructor Documentation

◆ ChartItemArray()

ChartItemArray ( )
inline

◆ ~ChartItemArray()

~ChartItemArray ( )
default

Member Function Documentation

◆ add() [1/2]

bool add ( const double &  data,
const double &  data1 
)
inline

both m_sdata and m_data cannot exist together

◆ add() [2/2]

bool add ( const double &  data,
const std::string &  data1 
)
inline

both m_sdata and m_data cannot exist together

◆ clear()

void clear ( )
inline

◆ data() [1/2]

void data ( DataArray data)
inline

◆ data() [2/2]

void data ( StringDataArray data)
inline

◆ get_data() [1/2]

DataArray get_data ( )
inline

◆ get_data() [2/2]

DataArray get_data ( ) const
inline

◆ get_sdata() [1/2]

StringDataArray get_sdata ( )
inline

◆ get_sdata() [2/2]

StringDataArray get_sdata ( ) const
inline

◆ IsStringArray()

EGT_NODISCARD bool IsStringArray ( ) const
inline