#include <ExpressionParser.h>
Public Member Functions | |
ConstantExpression (const App::DocumentObject *_owner=0, const char *_name="", const Base::Quantity &_quantity=Base::Quantity()) | |
std::string | getName () const |
bool | isNumber () const |
Public Member Functions inherited from App::NumberExpression | |
bool | isInteger (long *v=0) const |
void | negate () |
Negate the stored value. More... | |
NumberExpression (const App::DocumentObject *_owner=0, const Base::Quantity &quantity=Base::Quantity()) | |
virtual Expression * | simplify () const override |
Simplify the expression. More... | |
Public Member Functions inherited from App::UnitExpression | |
const Base::Quantity & | getQuantity () const |
double | getScaler () const |
const Base::Unit & | getUnit () const |
const std::string | getUnitString () const |
double | getValue () const |
void | setQuantity (const Base::Quantity &_quantity) |
void | setUnit (const Base::Quantity &_quantity) |
Set unit information. More... | |
UnitExpression (const App::DocumentObject *_owner=0, const Base::Quantity &_quantity=Base::Quantity(), const std::string &_unitStr=std::string()) | |
~UnitExpression () | |
Public Member Functions inherited from App::Expression | |
virtual void | addComponent (Component *component) |
bool | adjustLinks (const std::set< App::DocumentObject * > &inList) |
Expression * | copy () const |
Expression * | eval () const |
Expression (const App::DocumentObject *_owner) | |
void | getDepObjects (std::set< App::DocumentObject * > &, std::vector< std::string > *labels=0) const |
std::set< App::DocumentObject * > | getDepObjects (std::vector< std::string > *labels=0) const |
ExpressionDeps | getDeps () const |
void | getDeps (ExpressionDeps &deps) const |
std::set< App::ObjectIdentifier > | getIdentifiers () const |
void | getIdentifiers (std::set< App::ObjectIdentifier > &) const |
App::DocumentObject * | getOwner () const |
Py::Object | getPyValue () const |
boost::any | getValueAsAny () const |
bool | hasComponent () const |
ExpressionPtr | importSubNames (const std::map< std::string, std::string > &nameMap) const |
bool | isSame (const Expression &other) const |
virtual bool | isTouched () const |
virtual int | priority () const |
ExpressionPtr | replaceObject (const App::DocumentObject *parent, App::DocumentObject *oldObj, App::DocumentObject *newObj) const |
std::string | toString (bool persistent=false, bool checkPriority=false, int indent=0) const |
void | toString (std::ostream &os, bool persistent=false, bool checkPriority=false, int indent=0) const |
ExpressionPtr | updateLabelReference (App::DocumentObject *obj, const std::string &ref, const char *newLabel) const |
void | visit (ExpressionVisitor &v) |
virtual | ~Expression () |
Public Member Functions inherited from Base::BaseClass | |
BaseClass () | |
Construction. More... | |
virtual PyObject * | getPyObject (void) |
This method returns the Python wrapper for a C++ object. More... | |
virtual Type | getTypeId (void) const |
bool | isDerivedFrom (const Type type) const |
virtual void | setPyObject (PyObject *) |
virtual | ~BaseClass () |
Destruction. More... | |
Protected Attributes | |
const char * | name |
Protected Attributes inherited from App::UnitExpression | |
PyObject * | cache = 0 |
Protected Attributes inherited from App::Expression | |
ComponentList | components |
App::DocumentObject * | owner |
The document object used to access unqualified variables (i.e local scope) More... | |
Additional Inherited Members | |
Public Types inherited from App::Expression | |
typedef std::vector< Component * > | ComponentList |
Static Public Member Functions inherited from App::Expression | |
static Component * | createComponent (const std::string &n) |
static Component * | createComponent (Expression *e1, Expression *e2=0, Expression *e3=0, bool isRange=false) |
static Expression * | parse (const App::DocumentObject *owner, const std::string &buffer) |
Static Public Member Functions inherited from Base::BaseClass | |
static void * | create (void) |
static Type | getClassTypeId (void) |
static void | init (void) |
Public Attributes inherited from App::Expression | |
std::string | comment |
friend | ExpressionVisitor |
Static Protected Member Functions inherited from Base::BaseClass | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
Constructor & Destructor Documentation
◆ ConstantExpression()
ConstantExpression::ConstantExpression | ( | const App::DocumentObject * | _owner = 0 , |
const char * | _name = "" , |
||
const Base::Quantity & | _quantity = Base::Quantity() |
||
) |
Member Function Documentation
◆ getName()
std::string App::ConstantExpression::getName | ( | ) | const |
◆ isNumber()
bool ConstantExpression::isNumber | ( | ) | const |
Member Data Documentation
◆ name
|
protected |
Referenced by prototype.Node::addtofreecad(), drafttaskpanels.task_polararray.TaskPanelPolarArray::create_object(), drafttaskpanels.task_orthoarray.TaskPanelOrthoArray::create_object(), drafttaskpanels.task_circulararray.TaskPanelCircularArray::create_object(), addonmanager_macro.Macro::filename(), gzip_utf8.GzipFile::filename(), ifc4.ifcapproval::hasidentifierorname(), femsolver.elmer.sifio.Section::keys(), automotive_design.si_unit::named_unit_dimensions(), Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction::output(), prototype.Node::pprint(), prototype.Node::pprint2(), draftguitools.gui_pointarray.PointArray::proceed(), draftguitools.gui_patharray.PathArray::proceed(), PathScripts.PathSetupSheetGui.OpTaskPanel::propertyGroup(), PathScripts.PathSetupSheetGui.OpTaskPanel::propertyName(), drafttaskpanels.task_orthoarray.TaskPanelOrthoArray::reject(), drafttaskpanels.task_polararray.TaskPanelPolarArray::reject(), drafttaskpanels.task_circulararray.TaskPanelCircularArray::reject(), ifc2x3.ifcexternalreference::wr1(), ifc4.ifcexternalreference::wr1(), ifc2x3.ifcdocumentreference::wr1(), ifc4.ifcdocumentreference::wr1(), and automotive_design.general_property_association::wr2().
The documentation for this class was generated from the following files:
- src/App/ExpressionParser.h
- src/App/Expression.cpp