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

constains all relevant methods for macro import that do not depend on Clang or macro import components. More...

Static Public Member Functions

static OOModel::DeclarationactualContext (Model::Node *node)
 
static void addNodeToDeclaration (Model::Node *node, OOModel::Declaration *declaration)
 
static Model::NodecloneWithMapping (Model::Node *node, NodeToCloneMap &mapping)
 
static OOModel::DeclarationcreateContext (OOModel::Declaration *actualContext)
 
static OOModel::DeclarationfindDeclaration (Model::List *list, const QString &name)
 returns the first Declaration* decl in list with decl->name() == name More...
 
static void removeNodeFromParent (Model::Node *node, bool removeMetaCalls=false)
 
static void removeNodesFromParent (QList< Model::Node * > nodes)
 
static QList< Model::Node * > topLevelNodes (QList< Model::Node * > input)
 
static bool validContext (Model::Node *node)
 

Static Private Member Functions

static void buildMappingInfo (Model::Node *node, QList< Model::Node * > &info)
 
static OOModel::MetaCallExpressioncontainsMetaCall (Model::Node *node)
 
static void useMappingInfo (Model::Node *node, QList< Model::Node * > &info, NodeToCloneMap &mapping)
 

Detailed Description

constains all relevant methods for macro import that do not depend on Clang or macro import components.

Member Function Documentation

◆ actualContext()

OOModel::Declaration * CppImport::NodeHelpers::actualContext ( Model::Node node)
static

◆ addNodeToDeclaration()

void CppImport::NodeHelpers::addNodeToDeclaration ( Model::Node node,
OOModel::Declaration declaration 
)
static

◆ buildMappingInfo()

void CppImport::NodeHelpers::buildMappingInfo ( Model::Node node,
QList< Model::Node * > &  info 
)
staticprivate

◆ cloneWithMapping()

Model::Node * CppImport::NodeHelpers::cloneWithMapping ( Model::Node node,
NodeToCloneMap mapping 
)
static

◆ containsMetaCall()

OOModel::MetaCallExpression * CppImport::NodeHelpers::containsMetaCall ( Model::Node node)
staticprivate

◆ createContext()

OOModel::Declaration * CppImport::NodeHelpers::createContext ( OOModel::Declaration actualContext)
static

◆ findDeclaration()

OOModel::Declaration * CppImport::NodeHelpers::findDeclaration ( Model::List list,
const QString &  name 
)
static

returns the first Declaration* decl in list with decl->name() == name

◆ removeNodeFromParent()

void CppImport::NodeHelpers::removeNodeFromParent ( Model::Node node,
bool  removeMetaCalls = false 
)
static

◆ removeNodesFromParent()

void CppImport::NodeHelpers::removeNodesFromParent ( QList< Model::Node * >  nodes)
static

◆ topLevelNodes()

QList< Model::Node * > CppImport::NodeHelpers::topLevelNodes ( QList< Model::Node * >  input)
static

◆ useMappingInfo()

void CppImport::NodeHelpers::useMappingInfo ( Model::Node node,
QList< Model::Node * > &  info,
NodeToCloneMap mapping 
)
staticprivate

◆ validContext()

bool CppImport::NodeHelpers::validContext ( Model::Node node)
static