App::ConditionalExpression Class Reference
#include <ExpressionParser.h>
Public Member Functions | |
ConditionalExpression (const App::DocumentObject *_owner=0, Expression *_condition=0, Expression *_trueExpr=0, Expression *_falseExpr=0) | |
virtual bool isTouched () const override | |
virtual int priority () const override | |
virtual Expression * simplify () const override | |
virtual ~ConditionalExpression () | |
![]() | |
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 | |
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 () | |
![]() | |
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 | |
Expression * condition | |
Condition. More... | |
Expression * falseExpr | |
Expression if abs(condition) is < 0.5. More... | |
Expression * trueExpr | |
Expression if abs(condition) is > 0.5. More... | |
![]() | |
ComponentList components | |
App::DocumentObject * owner | |
The document object used to access unqualified variables (i.e local scope) More... | |
Additional Inherited Members | |
![]() | |
typedef std::vector< Component * > ComponentList | |
![]() | |
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 void * create (void) | |
static Type getClassTypeId (void) | |
static void init (void) | |
![]() | |
std::string comment | |
friend ExpressionVisitor | |
![]() | |
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) | |
Constructor & Destructor Documentation
◆ ConditionalExpression()
ConditionalExpression::ConditionalExpression | ( | const App::DocumentObject * | _owner = 0 , |
Expression * | _condition = 0 , |
||
Expression * | _trueExpr = 0 , |
||
Expression * | _falseExpr = 0 |
||
) |
◆ ~ConditionalExpression()
|
virtual |
Member Function Documentation
◆ isTouched()
|
overridevirtual |
Reimplemented from App::Expression.
◆ priority()
|
overridevirtual |
Reimplemented from App::Expression.
◆ simplify()
|
overridevirtual |
Implements App::Expression.
References App::Expression::owner.
Member Data Documentation
◆ condition
|
protected |
Condition.
◆ falseExpr
|
protected |
Expression if abs(condition) is < 0.5.
◆ trueExpr
|
protected |
Expression if abs(condition) is > 0.5.
The documentation for this class was generated from the following files:
- src/App/ExpressionParser.h
- src/App/Expression.cpp