Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

nci/suif/suif2b/utils/cloning_utils.h File Reference

Some support for cloning. More...

#include "iokernel/cast.h"
#include "suifkernel/suif_env.h"
#include "basicnodes/basic_forwarders.h"
#include "basicnodes/basic.h"
#include "suifnodes/suif_forwarders.h"

Go to the source code of this file.

Functions

template<class T> T* deep_suif_clone (T *obj, SuifEnv *s = 0)
Statement* clone_statement (SuifEnv *env,SymbolTable *table,const Statement *stat)
 Clone a statement or statement list Sets up all the parameters to handle labels correctly. More...


Detailed Description

Some support for cloning.

A template that makes cloning easier A statement cloner


Function Documentation

Statement * clone_statement ( SuifEnv * env,
SymbolTable * table,
const Statement * stat)

Clone a statement or statement list Sets up all the parameters to handle labels correctly.

Parameters:
suif   environment to clone in
symbol   table to put created labels into
statement   to clone

template<class T>
T * deep_suif_clone (
T * obj,
SuifEnv * s = 0)


Generated at Mon Jul 31 13:42:39 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000