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

#include <sequence.h>

Inheritance diagram for Sequence::Sequence:
Shared::Function

Public Types

enum  Type { Type::Explicit = 0, Type::SingleRecurrence = 1, Type::DoubleRecurrence = 2 }
 

Public Member Functions

 Sequence (const char *text=nullptr, KDColor color=KDColorBlack)
 
 ~Sequence ()
 
Sequenceoperator= (const Sequence &other)
 
Sequenceoperator= (Sequence &&other)=delete
 
 Sequence (const Sequence &other)=delete
 
 Sequence (Sequence &&other)=delete
 
uint32_t checksum () override
 
Type type ()
 
int initialRank () const
 
const char * firstInitialConditionText ()
 
const char * secondInitialConditionText ()
 
Poincare::ExpressionfirstInitialConditionExpression (Poincare::Context *context) const
 
Poincare::ExpressionsecondInitialConditionExpression (Poincare::Context *context) const
 
Poincare::ExpressionLayoutfirstInitialConditionLayout ()
 
Poincare::ExpressionLayoutsecondInitialConditionLayout ()
 
void setType (Type type)
 
void setInitialRank (int rank)
 
void setContent (const char *c) override
 
void setFirstInitialConditionContent (const char *c)
 
void setSecondInitialConditionContent (const char *c)
 
int numberOfElements ()
 
Poincare::ExpressionLayoutnameLayout ()
 
Poincare::ExpressionLayoutdefinitionName ()
 
Poincare::ExpressionLayoutfirstInitialConditionName ()
 
Poincare::ExpressionLayoutsecondInitialConditionName ()
 
bool isDefined () override
 
bool isEmpty () override
 
float evaluateAtAbscissa (float x, Poincare::Context *context) const override
 
double evaluateAtAbscissa (double x, Poincare::Context *context) const override
 
template<typename T >
T approximateToNextRank (int n, SequenceContext *sqctx) const
 
double sumBetweenBounds (double start, double end, Poincare::Context *context) const override
 
void tidy () override
 
- Public Member Functions inherited from Shared::Function
 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
 
const char * text () const
 
const char * name () const
 
KDColor color () const
 
Poincare::Expressionexpression (Poincare::Context *context) const
 
Poincare::ExpressionLayoutlayout ()
 
bool isActive ()
 
void setActive (bool active)
 
void setColor (KDColor m_color)
 

Static Public Attributes

static constexpr int k_initialRankNumberOfDigits = 3
 

Detailed Description

Definition at line 10 of file sequence.h.

Member Enumeration Documentation

◆ Type

Enumerator
Explicit 
SingleRecurrence 
DoubleRecurrence 

Definition at line 12 of file sequence.h.

Constructor & Destructor Documentation

◆ Sequence() [1/3]

Sequence::Sequence::Sequence ( const char *  text = nullptr,
KDColor  color = KDColorBlack 
)

Definition at line 14 of file sequence.cpp.

◆ ~Sequence()

Sequence::Sequence::~Sequence ( )

Definition at line 31 of file sequence.cpp.

◆ Sequence() [2/3]

Sequence::Sequence::Sequence ( const Sequence other)
delete

◆ Sequence() [3/3]

Sequence::Sequence::Sequence ( Sequence &&  other)
delete

Member Function Documentation

◆ approximateToNextRank()

template<typename T >
template float Sequence::Sequence::approximateToNextRank< float > ( int  n,
SequenceContext sqctx 
) const

Definition at line 303 of file sequence.cpp.

◆ checksum()

uint32_t Sequence::Sequence::checksum ( )
overridevirtual

Reimplemented from Shared::Function.

Definition at line 82 of file sequence.cpp.

◆ definitionName()

Poincare::ExpressionLayout * Sequence::Sequence::definitionName ( )

Definition at line 229 of file sequence.cpp.

◆ evaluateAtAbscissa() [1/2]

float Sequence::Sequence::evaluateAtAbscissa ( float  x,
Poincare::Context context 
) const
inlineoverridevirtual

Reimplemented from Shared::Function.

Definition at line 49 of file sequence.h.

◆ evaluateAtAbscissa() [2/2]

double Sequence::Sequence::evaluateAtAbscissa ( double  x,
Poincare::Context context 
) const
inlineoverridevirtual

Reimplemented from Shared::Function.

Definition at line 52 of file sequence.h.

◆ firstInitialConditionExpression()

Poincare::Expression * Sequence::Sequence::firstInitialConditionExpression ( Poincare::Context context) const

Definition at line 150 of file sequence.cpp.

◆ firstInitialConditionLayout()

Poincare::ExpressionLayout * Sequence::Sequence::firstInitialConditionLayout ( )

Definition at line 164 of file sequence.cpp.

◆ firstInitialConditionName()

Poincare::ExpressionLayout * Sequence::Sequence::firstInitialConditionName ( )

Definition at line 244 of file sequence.cpp.

◆ firstInitialConditionText()

const char * Sequence::Sequence::firstInitialConditionText ( )

Definition at line 95 of file sequence.cpp.

◆ initialRank()

int Sequence::Sequence::initialRank ( ) const
inline

Definition at line 25 of file sequence.h.

◆ isDefined()

bool Sequence::Sequence::isDefined ( )
overridevirtual

Reimplemented from Shared::Function.

Definition at line 270 of file sequence.cpp.

◆ isEmpty()

bool Sequence::Sequence::isEmpty ( )
overridevirtual

Reimplemented from Shared::Function.

Definition at line 281 of file sequence.cpp.

◆ nameLayout()

Poincare::ExpressionLayout * Sequence::Sequence::nameLayout ( )

Definition at line 222 of file sequence.cpp.

◆ numberOfElements()

int Sequence::Sequence::numberOfElements ( )

Definition at line 218 of file sequence.cpp.

◆ operator=() [1/2]

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

Definition at line 66 of file sequence.cpp.

◆ operator=() [2/2]

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

◆ secondInitialConditionExpression()

Poincare::Expression * Sequence::Sequence::secondInitialConditionExpression ( Poincare::Context context) const

Definition at line 157 of file sequence.cpp.

◆ secondInitialConditionLayout()

Poincare::ExpressionLayout * Sequence::Sequence::secondInitialConditionLayout ( )

Definition at line 175 of file sequence.cpp.

◆ secondInitialConditionName()

Poincare::ExpressionLayout * Sequence::Sequence::secondInitialConditionName ( )

Definition at line 258 of file sequence.cpp.

◆ secondInitialConditionText()

const char * Sequence::Sequence::secondInitialConditionText ( )

Definition at line 99 of file sequence.cpp.

◆ setContent()

void Sequence::Sequence::setContent ( const char *  c)
overridevirtual

Reimplemented from Shared::Function.

Definition at line 186 of file sequence.cpp.

◆ setFirstInitialConditionContent()

void Sequence::Sequence::setFirstInitialConditionContent ( const char *  c)

Definition at line 190 of file sequence.cpp.

◆ setInitialRank()

void Sequence::Sequence::setInitialRank ( int  rank)

Definition at line 138 of file sequence.cpp.

◆ setSecondInitialConditionContent()

void Sequence::Sequence::setSecondInitialConditionContent ( const char *  c)

Definition at line 202 of file sequence.cpp.

◆ setType()

void Sequence::Sequence::setType ( Type  type)

Definition at line 107 of file sequence.cpp.

◆ sumBetweenBounds()

double Sequence::Sequence::sumBetweenBounds ( double  start,
double  end,
Poincare::Context context 
) const
overridevirtual

Implements Shared::Function.

Definition at line 360 of file sequence.cpp.

◆ tidy()

void Sequence::Sequence::tidy ( )
overridevirtual

Reimplemented from Shared::Function.

Definition at line 376 of file sequence.cpp.

◆ type()

Sequence::Type Sequence::Sequence::type ( )

Definition at line 103 of file sequence.cpp.

Member Data Documentation

◆ k_initialRankNumberOfDigits

constexpr int Sequence::Sequence::k_initialRankNumberOfDigits = 3
static

Definition at line 58 of file sequence.h.


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