ReplaceObjectExpressionVisitor Class Reference

Public Member Functions

 ReplaceObjectExpressionVisitor (const DocumentObject *parent, DocumentObject *oldObj, DocumentObject *newObj)
void visit (Expression &e)
- Public Member Functions inherited from App::ExpressionVisitor
virtual void aboutToChange ()
virtual int changed () const
virtual App::PropertyLinkBasegetPropertyLink ()
virtual void reset ()
virtual void visit (Expression &e)=0
virtual ~ExpressionVisitor ()

Public Attributes

bool collect = true
ObjectIdentifier dummy
const DocumentObjectparent
std::map< ObjectIdentifier, ObjectIdentifierpaths

Additional Inherited Members

- Protected Member Functions inherited from App::ExpressionVisitor
bool adjustLinks (Expression &e, const std::set< App::DocumentObject * > &inList)
void collectReplacement (Expression &e, std::map< ObjectIdentifier, ObjectIdentifier > &, const App::DocumentObject *parent, App::DocumentObject *oldObj, App::DocumentObject *newObj) const
void getIdentifiers (Expression &e, std::map< App::ObjectIdentifier, bool > &)
void importSubNames (Expression &e, const ObjectIdentifier::SubNameMap &subNameMap)
void moveCells (Expression &e, const CellAddress &address, int rowCount, int colCount)
void offsetCells (Expression &e, int rowOffset, int colOffset)
bool relabeledDocument (Expression &e, const std::string &oldName, const std::string &newName)
bool renameObjectIdentifier (Expression &e, const std::map< ObjectIdentifier, ObjectIdentifier > &, const ObjectIdentifier &)
bool updateElementReference (Expression &e, App::DocumentObject *feature, bool reverse)
void updateLabelReference (Expression &e, App::DocumentObject *obj, const std::string &ref, const char *newLabel)

Constructor & Destructor Documentation

◆ ReplaceObjectExpressionVisitor()

ReplaceObjectExpressionVisitor::ReplaceObjectExpressionVisitor ( const DocumentObject parent,
DocumentObject oldObj,
DocumentObject newObj 

Member Function Documentation

◆ visit()

void ReplaceObjectExpressionVisitor::visit ( Expression e)

Member Data Documentation

◆ collect

bool ReplaceObjectExpressionVisitor::collect = true

◆ dummy

ObjectIdentifier ReplaceObjectExpressionVisitor::dummy

◆ newObj

DocumentObject* ReplaceObjectExpressionVisitor::newObj

◆ oldObj

DocumentObject* ReplaceObjectExpressionVisitor::oldObj

◆ parent

◆ paths

std::map<ObjectIdentifier, ObjectIdentifier> ReplaceObjectExpressionVisitor::paths

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