Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Shared::Function Class Referenceabstract

#include <function.h>

Inheritance diagram for Shared::Function:
Graph::CartesianFunction Sequence::Sequence

Public Member Functions

 Function (const char *name=nullptr, KDColor color=KDColorBlack)
 
virtual ~Function ()
 
Functionoperator= (const Function &other)
 
Functionoperator= (Function &&other)=delete
 
 Function (const Function &other)=delete
 
 Function (Function &&other)=delete
 
virtual uint32_t checksum ()
 
const char * text () const
 
const char * name () const
 
KDColor color () const
 
Poincare::Expressionexpression (Poincare::Context *context) const
 
Poincare::ExpressionLayoutlayout ()
 
virtual bool isDefined ()
 
bool isActive ()
 
void setActive (bool active)
 
virtual bool isEmpty ()
 
virtual void setContent (const char *c)
 
void setColor (KDColor m_color)
 
virtual float evaluateAtAbscissa (float x, Poincare::Context *context) const
 
virtual double evaluateAtAbscissa (double x, Poincare::Context *context) const
 
virtual double sumBetweenBounds (double start, double end, Poincare::Context *context) const =0
 
virtual void tidy ()
 

Detailed Description

Definition at line 10 of file function.h.

Constructor & Destructor Documentation

◆ Function() [1/3]

Shared::Function::Function ( const char *  name = nullptr,
KDColor  color = KDColorBlack 
)

Definition at line 10 of file function.cpp.

◆ ~Function()

Shared::Function::~Function ( )
virtual

Definition at line 53 of file function.cpp.

◆ Function() [2/3]

Shared::Function::Function ( const Function other)
delete

◆ Function() [3/3]

Shared::Function::Function ( Function &&  other)
delete

Member Function Documentation

◆ checksum()

uint32_t Shared::Function::checksum ( )
virtual

Reimplemented in Sequence::Sequence.

Definition at line 29 of file function.cpp.

◆ color()

KDColor Shared::Function::color ( ) const
inline

Definition at line 21 of file function.h.

◆ evaluateAtAbscissa() [1/2]

virtual float Shared::Function::evaluateAtAbscissa ( float  x,
Poincare::Context context 
) const
inlinevirtual

Reimplemented in Sequence::Sequence.

Definition at line 30 of file function.h.

◆ evaluateAtAbscissa() [2/2]

virtual double Shared::Function::evaluateAtAbscissa ( double  x,
Poincare::Context context 
) const
inlinevirtual

Reimplemented in Sequence::Sequence.

Definition at line 33 of file function.h.

◆ expression()

Poincare::Expression * Shared::Function::expression ( Poincare::Context context) const

Definition at line 72 of file function.cpp.

◆ isActive()

bool Shared::Function::isActive ( )

Definition at line 94 of file function.cpp.

◆ isDefined()

bool Shared::Function::isDefined ( )
virtual

Reimplemented in Sequence::Sequence.

Definition at line 90 of file function.cpp.

◆ isEmpty()

bool Shared::Function::isEmpty ( )
virtual

Reimplemented in Sequence::Sequence.

Definition at line 102 of file function.cpp.

◆ layout()

Poincare::ExpressionLayout * Shared::Function::layout ( )

Definition at line 79 of file function.cpp.

◆ name()

const char * Shared::Function::name ( ) const

Definition at line 68 of file function.cpp.

◆ operator=() [1/2]

Function & Shared::Function::operator= ( const Function other)

Definition at line 20 of file function.cpp.

◆ operator=() [2/2]

Function& Shared::Function::operator= ( Function &&  other)
delete

◆ setActive()

void Shared::Function::setActive ( bool  active)

Definition at line 98 of file function.cpp.

◆ setColor()

void Shared::Function::setColor ( KDColor  m_color)

Definition at line 49 of file function.cpp.

◆ setContent()

void Shared::Function::setContent ( const char *  c)
virtual

Reimplemented in Sequence::Sequence.

Definition at line 37 of file function.cpp.

◆ sumBetweenBounds()

virtual double Shared::Function::sumBetweenBounds ( double  start,
double  end,
Poincare::Context context 
) const
pure virtual

◆ text()

const char * Shared::Function::text ( ) const

Definition at line 64 of file function.cpp.

◆ tidy()

void Shared::Function::tidy ( )
virtual

Reimplemented in Sequence::Sequence.

Definition at line 115 of file function.cpp.


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