souffle  2.0.2-371-g6315b36
Public Member Functions | Private Attributes
souffle::profile::Cell< double > Class Reference

#include <Cell.h>

Inheritance diagram for souffle::profile::Cell< double >:
Inheritance graph
Collaboration diagram for souffle::profile::Cell< double >:
Collaboration graph

Public Member Functions

 Cell (double value)
 
double getDoubleVal () const override
 
long getLongVal () const override
 
std::string getStringVal () const override
 
std::chrono::microseconds getTimeVal () const override
 
std::string toString (int) const override
 
- Public Member Functions inherited from souffle::profile::CellInterface
virtual ~CellInterface ()=default
 

Private Attributes

const double value
 

Detailed Description

Definition at line 57 of file Cell.h.

Constructor & Destructor Documentation

◆ Cell()

souffle::profile::Cell< double >::Cell ( double  value)
inline

Definition at line 61 of file Cell.h.

61 : value(value){};

Member Function Documentation

◆ getDoubleVal()

double souffle::profile::Cell< double >::getDoubleVal ( ) const
inlineoverridevirtual

Implements souffle::profile::CellInterface.

Definition at line 62 of file Cell.h.

62  {
63  return value;
64  }

References souffle::profile::Cell< T >::value.

◆ getLongVal()

long souffle::profile::Cell< double >::getLongVal ( ) const
inlineoverridevirtual

Implements souffle::profile::CellInterface.

Definition at line 65 of file Cell.h.

65  {
66  std::cerr << "getting long on double cell\n";
67  throw this;
68  }

◆ getStringVal()

std::string souffle::profile::Cell< double >::getStringVal ( ) const
inlineoverridevirtual

Implements souffle::profile::CellInterface.

Definition at line 69 of file Cell.h.

69  {
70  std::cerr << "getting string on double cell\n";
71  throw this;
72  }

◆ getTimeVal()

std::chrono::microseconds souffle::profile::Cell< double >::getTimeVal ( ) const
inlineoverridevirtual

Implements souffle::profile::CellInterface.

Definition at line 73 of file Cell.h.

73  {
74  std::cerr << "getting time on double cell\n";
75  throw this;
76  }

◆ toString()

std::string souffle::profile::Cell< double >::toString ( int  ) const
inlineoverridevirtual

Implements souffle::profile::CellInterface.

Definition at line 77 of file Cell.h.

77  {
78  return Tools::formatNum(value);
79  }

References souffle::profile::Tools::formatNum(), and souffle::profile::Cell< T >::value.

Here is the call graph for this function:

Field Documentation

◆ value

const double souffle::profile::Cell< double >::value
private

Definition at line 58 of file Cell.h.


The documentation for this class was generated from the following file:
souffle::profile::Tools::formatNum
std::string formatNum(double amount)
Definition: StringUtils.h:40
souffle::profile::Cell< double >::value
const double value
Definition: Cell.h:58