AstDisplayInfo Namespace Reference

Returns display information for SgNodes. More...


Enumerations

enum  NodeType {
  ROOT, INCLUDE_ROOT, SRC_FILE, INCLUDE_FILE,
  NAMESPACE, CLASS, FUNCTION, LOOP,
  UNKNOWN
}
 the first 4 entries are only used by beautified ast More...

Functions

NodeType getType (SgNode *)
 Returns "type" of node (class,function,loop,namespace) at Sg*Definitions.
QString getShortNodeNameDesc (SgNode *node)
QString getShortNodeTypeDesc (SgNode *node)
QIcon nodeIcon (SgNode *)
 icon for SgFunctionDeclaration, SgClassDeclaration...
QIcon includedFilesIcon ()
 icon with several include files
QIcon includeFileIcon ()
 icon with one include file
QIcon sourceFileIcon ()
 icon with one source-file


Detailed Description

Returns display information for SgNodes.

Enumeration Type Documentation

enum AstDisplayInfo::NodeType

the first 4 entries are only used by beautified ast

Enumerator:
ROOT 
INCLUDE_ROOT 
SRC_FILE 
INCLUDE_FILE 
NAMESPACE 
CLASS 
FUNCTION 
LOOP 
UNKNOWN 

Definition at line 14 of file AstDisplayInfo.h.


Function Documentation

NodeType AstDisplayInfo::getType ( SgNode *  node  ) 

Returns "type" of node (class,function,loop,namespace) at Sg*Definitions.

Definition at line 8 of file AstDisplayInfo.cpp.

Referenced by DisplayCallGraph::addFunction(), and BAstNode::generationVisit().

Here is the caller graph for this function:

QString AstDisplayInfo::getShortNodeNameDesc ( SgNode *   ) 

Returns a short description of an Sg*Definition for named types (classes, functions etc) it returns the name if there is no adequate name for an SgNode it returns the getShortNodeTypeDesc if node is no definition it returns an empty string

Definition at line 28 of file AstDisplayInfo.cpp.

Referenced by DisplayCallGraph::addFunction(), BAstNode::generationVisit(), and QtAstModel::ModelNode::setInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

QString AstDisplayInfo::getShortNodeTypeDesc ( SgNode *   ) 

returns a description for SgNode-Type if SgNode is for example of type SgClassDefinition it returns "class"

Definition at line 73 of file AstDisplayInfo.cpp.

Referenced by getShortNodeNameDesc().

Here is the caller graph for this function:

QIcon AstDisplayInfo::nodeIcon ( SgNode *  node  ) 

icon for SgFunctionDeclaration, SgClassDeclaration...

Definition at line 98 of file AstDisplayInfo.cpp.

Referenced by QtAstModel::ModelNode::setInfo().

Here is the caller graph for this function:

QIcon AstDisplayInfo::includedFilesIcon (  ) 

icon with several include files

Definition at line 147 of file AstDisplayInfo.cpp.

QIcon AstDisplayInfo::includeFileIcon (  ) 

icon with one include file

Definition at line 152 of file AstDisplayInfo.cpp.

QIcon AstDisplayInfo::sourceFileIcon (  ) 

icon with one source-file

Definition at line 157 of file AstDisplayInfo.cpp.


Generated on Tue Sep 15 14:48:50 2009 for RoseQtWidgets by  doxygen 1.4.7