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

#include <Cell.h>

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

Public Member Functions

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

Private Attributes

const long value
 

Detailed Description

Definition at line 109 of file Cell.h.

Constructor & Destructor Documentation

◆ Cell()

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

Definition at line 113 of file Cell.h.

113 : value(value){};

Member Function Documentation

◆ getDoubleVal()

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

Implements souffle::profile::CellInterface.

Definition at line 114 of file Cell.h.

114  {
115  std::cerr << "getting double on long cell\n";
116  throw this;
117  }

◆ getLongVal()

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

Implements souffle::profile::CellInterface.

Definition at line 122 of file Cell.h.

122  {
123  return value;
124  }

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

◆ getStringVal()

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

Implements souffle::profile::CellInterface.

Definition at line 118 of file Cell.h.

118  {
119  std::cerr << "getting string on long cell\n";
120  throw this;
121  }

◆ getTimeVal()

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

Implements souffle::profile::CellInterface.

Definition at line 125 of file Cell.h.

125  {
126  std::cerr << "getting time on long cell\n";
127  throw this;
128  }

◆ toString()

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

Implements souffle::profile::CellInterface.

Definition at line 129 of file Cell.h.

129  {
130  return Tools::formatNum(precision, value);
131  };

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

Here is the call graph for this function:

Field Documentation

◆ value

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

Definition at line 110 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< long >::value
const long value
Definition: Cell.h:110