ROSE 0.11.145.147
Public Member Functions | Protected Attributes | List of all members
SgCapturingCopy< CopyType > Class Template Reference

Description

template<class CopyType>
class SgCapturingCopy< CopyType >

Supporting template class for "capturing" copies of the AST.

This class allows for retrieval of the clone of arbitrary source nodes underneath the copied node.

Definition at line 99 of file sageCopy.h.

#include <sageInterface/sageCopy.h>

Inheritance diagram for SgCapturingCopy< CopyType >:
Inheritance graph
[legend]
Collaboration diagram for SgCapturingCopy< CopyType >:
Collaboration graph
[legend]

Public Member Functions

 SgCapturingCopy (std::vector< SgNode * > origList, const CopyType &base=CopyType())
 
SgNodecopyAst (const SgNode *n)
 
const std::vector< SgNode * > & get_copyList ()
 

Protected Attributes

std::vector< SgNode * > origList
 
std::vector< SgNode * > copyList
 

Constructor & Destructor Documentation

◆ SgCapturingCopy()

template<class CopyType >
SgCapturingCopy< CopyType >::SgCapturingCopy ( std::vector< SgNode * >  origList,
const CopyType &  base = CopyType() 
)
inline

Definition at line 105 of file sageCopy.h.

◆ ~SgCapturingCopy()

template<class CopyType >
virtual SgCapturingCopy< CopyType >::~SgCapturingCopy ( )
inlinevirtual

Definition at line 109 of file sageCopy.h.

Member Function Documentation

◆ copyAst()

template<class CopyType >
SgNode * SgCapturingCopy< CopyType >::copyAst ( const SgNode n)
inline

Definition at line 110 of file sageCopy.h.

◆ get_copyList()

template<class CopyType >
const std::vector< SgNode * > & SgCapturingCopy< CopyType >::get_copyList ( )
inline

Definition at line 123 of file sageCopy.h.

Member Data Documentation

◆ origList

template<class CopyType >
std::vector<SgNode *> SgCapturingCopy< CopyType >::origList
protected

Definition at line 102 of file sageCopy.h.

◆ copyList

template<class CopyType >
std::vector<SgNode *> SgCapturingCopy< CopyType >::copyList
protected

Definition at line 103 of file sageCopy.h.


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