Seamly2D
Code documentation
VFormula Class Reference

#include <vformula.h>

Collaboration diagram for VFormula:

Public Member Functions

 VFormula ()
 
 VFormula (const QString &formula, const VContainer *container)
 
VFormulaoperator= (const VFormula &formula)
 
 VFormula (const VFormula &formula)
 
bool operator== (const VFormula &formula) const
 
bool operator!= (const VFormula &formula) const
 
QString GetFormula (FormulaType type=FormulaType::ToUser) const
 
void SetFormula (const QString &value, FormulaType type=FormulaType::ToUser)
 
QString getStringValue () const
 
qreal getDoubleValue () const
 
bool getCheckZero () const
 
void setCheckZero (bool value)
 
const VContainergetData () const
 
void setData (const VContainer *value)
 
quint32 getToolId () const
 
void setToolId (const quint32 &value)
 
QString getPostfix () const
 
void setPostfix (const QString &value)
 
bool error () const
 
void Eval ()
 

Static Public Member Functions

static int FormulaTypeId ()
 

Private Attributes

QString formula
 
QString value
 
bool checkZero
 
const VContainerdata
 
quint32 toolId
 
QString postfix
 
bool _error
 
qreal dValue
 

Detailed Description

Definition at line 64 of file vformula.h.

Constructor & Destructor Documentation

◆ VFormula() [1/3]

VFormula::VFormula ( )

Definition at line 70 of file vformula.cpp.

◆ VFormula() [2/3]

VFormula::VFormula ( const QString &  formula,
const VContainer container 
)

Definition at line 76 of file vformula.cpp.

References Eval().

◆ VFormula() [3/3]

VFormula::VFormula ( const VFormula formula)

Definition at line 109 of file vformula.cpp.

Member Function Documentation

◆ error()

◆ Eval()

◆ FormulaTypeId()

int VFormula::FormulaTypeId ( )
static

Definition at line 244 of file vformula.cpp.

Referenced by VFormulaProperty::SetFormula().

◆ getCheckZero()

bool VFormula::getCheckZero ( ) const

Definition at line 178 of file vformula.cpp.

References checkZero.

Referenced by VFormulaPropertyEditor::onToolButtonClicked(), and operator=().

◆ getData()

const VContainer * VFormula::getData ( ) const

Definition at line 194 of file vformula.cpp.

References data.

Referenced by VFormulaPropertyEditor::onToolButtonClicked(), and operator=().

◆ getDoubleValue()

◆ GetFormula()

◆ getPostfix()

QString VFormula::getPostfix ( ) const

Definition at line 222 of file vformula.cpp.

References postfix.

Referenced by VFormulaPropertyEditor::onToolButtonClicked(), and operator=().

◆ getStringValue()

QString VFormula::getStringValue ( ) const

◆ getToolId()

quint32 VFormula::getToolId ( ) const

Definition at line 210 of file vformula.cpp.

References toolId.

Referenced by VFormulaPropertyEditor::onToolButtonClicked(), and operator=().

◆ operator!=()

bool VFormula::operator!= ( const VFormula formula) const

Definition at line 129 of file vformula.cpp.

References formula, and operator==().

◆ operator=()

VFormula & VFormula::operator= ( const VFormula formula)

◆ operator==()

bool VFormula::operator== ( const VFormula formula) const

Definition at line 116 of file vformula.cpp.

References dValue, formula, getDoubleValue(), and VFuzzyComparePossibleNulls().

Referenced by operator!=().

◆ setCheckZero()

◆ setData()

void VFormula::setData ( const VContainer value)

Definition at line 200 of file vformula.cpp.

References data, Eval(), and value.

◆ SetFormula()

void VFormula::SetFormula ( const QString &  value,
FormulaType  type = FormulaType::ToUser 
)

◆ setPostfix()

◆ setToolId()

Member Data Documentation

◆ _error

bool VFormula::_error
private

Definition at line 105 of file vformula.h.

Referenced by error(), Eval(), and operator=().

◆ checkZero

bool VFormula::checkZero
private

Definition at line 101 of file vformula.h.

Referenced by Eval(), getCheckZero(), operator=(), and setCheckZero().

◆ data

const VContainer* VFormula::data
private

Definition at line 102 of file vformula.h.

Referenced by Eval(), getData(), operator=(), and setData().

◆ dValue

qreal VFormula::dValue
private

Definition at line 106 of file vformula.h.

Referenced by Eval(), getDoubleValue(), operator=(), and operator==().

◆ formula

QString VFormula::formula
private

Definition at line 99 of file vformula.h.

Referenced by Eval(), GetFormula(), operator!=(), operator=(), operator==(), and SetFormula().

◆ postfix

QString VFormula::postfix
private

Definition at line 104 of file vformula.h.

Referenced by Eval(), getPostfix(), operator=(), and setPostfix().

◆ toolId

quint32 VFormula::toolId
private

Definition at line 103 of file vformula.h.

Referenced by getToolId(), operator=(), and setToolId().

◆ value


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