ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sg::ScopeSetter Struct Reference

Functor setting the scope of a sage node to a specified (at Functor construction time) scope. More...

#include <sageFunctors.h>

Collaboration diagram for sg::ScopeSetter:

Public Member Functions

 ScopeSetter (SgScopeStatement &the_scope)
 
template<class ScopedSageNode >
void handle (ScopedSageNode *scopeElem) const
 
void operator() (SgStatement *scopeElem) const
 
void operator() (SgInitializedName *scopeElem) const
 

Private Attributes

SgScopeStatementscope
 

Detailed Description

Functor setting the scope of a sage node to a specified (at Functor construction time) scope.

Definition at line 44 of file sageFunctors.h.

Constructor & Destructor Documentation

sg::ScopeSetter::ScopeSetter ( SgScopeStatement the_scope)
inlineexplicit

Definition at line 47 of file sageFunctors.h.

Member Function Documentation

template<class ScopedSageNode >
void sg::ScopeSetter::handle ( ScopedSageNode *  scopeElem) const
inline

Definition at line 52 of file sageFunctors.h.

References scope.

Referenced by operator()().

void sg::ScopeSetter::operator() ( SgStatement scopeElem) const
inline

Definition at line 59 of file sageFunctors.h.

References handle().

void sg::ScopeSetter::operator() ( SgInitializedName scopeElem) const
inline

Definition at line 60 of file sageFunctors.h.

References handle().

Member Data Documentation

SgScopeStatement& sg::ScopeSetter::scope
private

Definition at line 63 of file sageFunctors.h.

Referenced by handle().


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