vrq
Public Member Functions

CElement Class Reference

An element of compilation passed to and from plugins. More...

#include <cbackend.h>

List of all members.

Public Member Functions

 CElement (const char *filename, int filenameValid, CNode *code)
 Constructor for class.
const char * Filename ()
 Access method for filename tagging this compilation unit.
CNodeCode ()
 Access method for parse tree for this compilation unit.
void Code (CNode *code)
 Method to set parse tree for this compilation unit.

Detailed Description

An element of compilation passed to and from plugins.

Each element contains a parse tree and optionally a filename. The filename may represent the input file for the compilation unit or may have been synthetically generated by a plugin. The dump plugin is configurable so that all elements may be dumped to a single file (using -o <filename>) or dumped to a directory using the tagged filenames (using -dir <directory>).


Constructor & Destructor Documentation

CElement::CElement ( const char *  filename,
int  filenameValid,
CNode code 
) [inline]

Constructor for class.

Parameters:
filename a filename tagging the compilation unit.
filenameValid non-zero when filename is valid.
code a pointer to the parse tree for the compilation unit.

Member Function Documentation

CNode* CElement::Code (  )  [inline]

Access method for parse tree for this compilation unit.

Returns:
Returns pointer to parse tree.
void CElement::Code ( CNode code  )  [inline]

Method to set parse tree for this compilation unit.

Parameters:
code a pointer to parse tree.
const char* CElement::Filename (  )  [inline]

Access method for filename tagging this compilation unit.

Returns:
Returns pointer to filename, NULL is returned if filename is not valid.

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