Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Calculation::Calculation Class Reference

#include <calculation.h>

Public Member Functions

 Calculation ()
 
 ~Calculation ()
 
Calculationoperator= (const Calculation &other)
 
 Calculation (const Calculation &other)=delete
 
 Calculation (Calculation &&other)=delete
 
Calculationoperator= (Calculation &&other)=delete
 
void reset ()
 
void setContent (const char *c, Poincare::Context *context, Poincare::Expression *ansExpression)
 
const char * inputText ()
 
const char * exactOutputText ()
 
const char * approximateOutputText ()
 
Poincare::Expressioninput ()
 
Poincare::ExpressionLayoutinputLayout ()
 
Poincare::ExpressionapproximateOutput (Poincare::Context *context)
 
Poincare::ExpressionexactOutput (Poincare::Context *context)
 
Poincare::ExpressionLayoutexactOutputLayout (Poincare::Context *context)
 
Poincare::ExpressionLayoutapproximateOutputLayout (Poincare::Context *context)
 
bool isEmpty ()
 
void tidy ()
 
bool shouldDisplayApproximateOutput (Poincare::Context *context)
 
bool exactAndApproximateDisplayedOutputsAreEqual (Poincare::Context *context)
 

Static Public Attributes

static constexpr int k_printedExpressionSize = 2*::TextField::maxBufferSize()
 

Detailed Description

Definition at line 11 of file calculation.h.

Constructor & Destructor Documentation

◆ Calculation() [1/3]

Calculation::Calculation::Calculation ( )

Definition at line 9 of file calculation.cpp.

◆ ~Calculation()

Calculation::Calculation::~Calculation ( )

Definition at line 22 of file calculation.cpp.

◆ Calculation() [2/3]

Calculation::Calculation::Calculation ( const Calculation other)
delete

◆ Calculation() [3/3]

Calculation::Calculation::Calculation ( Calculation &&  other)
delete

Member Function Documentation

◆ approximateOutput()

Expression * Calculation::Calculation::approximateOutput ( Poincare::Context context)

Definition at line 163 of file calculation.cpp.

◆ approximateOutputLayout()

ExpressionLayout * Calculation::Calculation::approximateOutputLayout ( Poincare::Context context)

Definition at line 178 of file calculation.cpp.

◆ approximateOutputText()

const char * Calculation::Calculation::approximateOutputText ( )

Definition at line 88 of file calculation.cpp.

◆ exactAndApproximateDisplayedOutputsAreEqual()

bool Calculation::Calculation::exactAndApproximateDisplayedOutputsAreEqual ( Poincare::Context context)

Definition at line 195 of file calculation.cpp.

◆ exactOutput()

Expression * Calculation::Calculation::exactOutput ( Poincare::Context context)

Definition at line 147 of file calculation.cpp.

◆ exactOutputLayout()

ExpressionLayout * Calculation::Calculation::exactOutputLayout ( Poincare::Context context)

Definition at line 156 of file calculation.cpp.

◆ exactOutputText()

const char * Calculation::Calculation::exactOutputText ( )

Definition at line 84 of file calculation.cpp.

◆ input()

Expression * Calculation::Calculation::input ( )

Definition at line 92 of file calculation.cpp.

◆ inputLayout()

ExpressionLayout * Calculation::Calculation::inputLayout ( )

Definition at line 99 of file calculation.cpp.

◆ inputText()

const char * Calculation::Calculation::inputText ( )

Definition at line 80 of file calculation.cpp.

◆ isEmpty()

bool Calculation::Calculation::isEmpty ( )

Definition at line 106 of file calculation.cpp.

◆ operator=() [1/2]

Calculation & Calculation::Calculation::operator= ( const Calculation other)

Definition at line 49 of file calculation.cpp.

◆ operator=() [2/2]

Calculation& Calculation::Calculation::operator= ( Calculation &&  other)
delete

◆ reset()

void Calculation::Calculation::reset ( )

Definition at line 60 of file calculation.cpp.

◆ setContent()

void Calculation::Calculation::setContent ( const char *  c,
Poincare::Context context,
Poincare::Expression ansExpression 
)

Definition at line 67 of file calculation.cpp.

◆ shouldDisplayApproximateOutput()

bool Calculation::Calculation::shouldDisplayApproximateOutput ( Poincare::Context context)

Definition at line 185 of file calculation.cpp.

◆ tidy()

void Calculation::Calculation::tidy ( )

Definition at line 120 of file calculation.cpp.

Member Data Documentation

◆ k_printedExpressionSize

constexpr int Calculation::Calculation::k_printedExpressionSize = 2*::TextField::maxBufferSize()
static

Definition at line 35 of file calculation.h.


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