Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
CppImport::NodeToCloneMap Class Reference

produced when cloning a tree. More...

Public Member Functions

void add (Model::Node *original, Model::Node *clone)
 
Model::Nodeclone (Model::Node *original)
 
QList< Model::Node * > clone (QList< Model::Node * > originals)
 
Model::Nodeoriginal (Model::Node *clone)
 
QList< Model::Node * > original (QList< Model::Node * > clones)
 
void replaceClone (Model::Node *old, Model::Node *replacement)
 

Private Attributes

QHash< Model::Node *, Model::Node * > clones_
 
QHash< Model::Node *, Model::Node * > originals_
 

Detailed Description

produced when cloning a tree.

maps from nodes in the original tree to their cloned versions and back.

Member Function Documentation

◆ add()

void CppImport::NodeToCloneMap::add ( Model::Node original,
Model::Node clone 
)

◆ clone() [1/2]

Model::Node * CppImport::NodeToCloneMap::clone ( Model::Node original)

◆ clone() [2/2]

QList< Model::Node * > CppImport::NodeToCloneMap::clone ( QList< Model::Node * >  originals)

◆ original() [1/2]

Model::Node * CppImport::NodeToCloneMap::original ( Model::Node clone)

◆ original() [2/2]

QList< Model::Node * > CppImport::NodeToCloneMap::original ( QList< Model::Node * >  clones)

◆ replaceClone()

void CppImport::NodeToCloneMap::replaceClone ( Model::Node old,
Model::Node replacement 
)

Member Data Documentation

◆ clones_

QHash<Model::Node*, Model::Node*> CppImport::NodeToCloneMap::clones_
private

◆ originals_

QHash<Model::Node*, Model::Node*> CppImport::NodeToCloneMap::originals_
private