App::ExpressionVisitor Class Referenceabstract

#include <Expression.h>

Public Member Functions

virtual void aboutToChange ()
 
virtual int changed () const
 
virtual App::PropertyLinkBasegetPropertyLink ()
 
virtual void reset ()
 
virtual void visit (Expression &e)=0
 
virtual ~ExpressionVisitor ()
 

Protected Member Functions

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

◆ ~ExpressionVisitor()

virtual App::ExpressionVisitor::~ExpressionVisitor ( )
virtual

Member Function Documentation

◆ aboutToChange()

virtual void App::ExpressionVisitor::aboutToChange ( )
virtual

Reimplemented in App::ExpressionModifier< P >.

◆ adjustLinks()

bool ExpressionVisitor::adjustLinks ( Expression e,
const std::set< App::DocumentObject * > &  inList 
)
protected

◆ changed()

virtual int App::ExpressionVisitor::changed ( ) const
virtual

Reimplemented in App::ExpressionModifier< P >.

◆ collectReplacement()

void ExpressionVisitor::collectReplacement ( Expression e,
std::map< ObjectIdentifier, ObjectIdentifier > &  paths,
const App::DocumentObject parent,
App::DocumentObject oldObj,
App::DocumentObject newObj 
) const
protected

◆ getIdentifiers()

void ExpressionVisitor::getIdentifiers ( Expression e,
std::map< App::ObjectIdentifier, bool > &  ids 
)
protected

◆ getPropertyLink()

virtual App::PropertyLinkBase * App::ExpressionVisitor::getPropertyLink ( )
virtual

Reimplemented in App::ExpressionModifier< P >.

◆ importSubNames()

void ExpressionVisitor::importSubNames ( Expression e,
const ObjectIdentifier::SubNameMap subNameMap 
)
protected

◆ moveCells()

void ExpressionVisitor::moveCells ( Expression e,
const CellAddress address,
int  rowCount,
int  colCount 
)
protected

◆ offsetCells()

void ExpressionVisitor::offsetCells ( Expression e,
int  rowOffset,
int  colOffset 
)
protected

◆ relabeledDocument()

bool ExpressionVisitor::relabeledDocument ( Expression e,
const std::string &  oldName,
const std::string &  newName 
)
protected

◆ renameObjectIdentifier()

bool ExpressionVisitor::renameObjectIdentifier ( Expression e,
const std::map< ObjectIdentifier, ObjectIdentifier > &  paths,
const ObjectIdentifier path 
)
protected

◆ reset()

virtual void App::ExpressionVisitor::reset ( )
virtual

◆ updateElementReference()

bool ExpressionVisitor::updateElementReference ( Expression e,
App::DocumentObject feature,
bool  reverse 
)
protected

◆ updateLabelReference()

void ExpressionVisitor::updateLabelReference ( Expression e,
App::DocumentObject obj,
const std::string &  ref,
const char *  newLabel 
)
protected

◆ visit()


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