Skip to content

Rose

Namespaces

Name

Description

BitOps

Bit operations on unsigned integers.

Builder

Cmdline

FileSystem

Functions for operating on files in a filesystem.

Frontend

KeepGoing

MemPool

StringUtility

Functions for operating on strings.

Unique

Types

Name

Description

Logger

A nested logging mechanism to facilitate debbuging of tree traversal.

Options

PluginAction

Registry

A global registry used in conjunction with static constructors to make pluggable components (like targets or garbage collectors) "just work" when linked with an executable.

Registry<PluginAction>

RegistryTraits

Traits for registry entries. If using other than SimpleRegistryEntry, it is necessary to define an alternate traits class.

RegistryTraits<PluginAction>

SimpleRegistryEntry

A simple registry entry which provides only a name, description, and no‐argument constructor.

iterator_range

A range adaptor for a pair of iterators.

MemoryPoolTraversalFilter

PluginRegistry

Functions

Name

Description

concatenate
SgName concatenate(SgName const& X, SgName const& Y);

containsString
int containsString(std::string const& masterString, std::string const& targetString);

filterInputFile
void filterInputFile(std::string const inputFileName, std::string const outputFileName);

getColumnNumber
int getColumnNumber(SgLocatedNode* locatedNodePointer);

getFileName
std::string getFileName(SgLocatedNode* locatedNodePointer);

getFileNameByTraversalBackToFileNode
std::string getFileNameByTraversalBackToFileNode(SgNode const* astNode);

getFileNameWithoutPath
std::string getFileNameWithoutPath(SgStatement* statementPointer);

get the sourceDirectory directory

getLineNumber
int getLineNumber(SgLocatedNode* locatedNodePointer);

getMemoryPoolTraversalFilter
MemoryPoolTraversalFilter getMemoryPoolTraversalFilter();

getNextStatement
SgStatement* getNextStatement(SgStatement* targetStatement);

getPathFromFileName
std::string getPathFromFileName(std::string fileNameWithPath);

get the filename from the full filename

getPreviousStatement
SgStatement* getPreviousStatement(SgStatement* targetStatement, bool climbOutScope = true);

Functions to move to SgStatement object in SAGE III later

getSourceDirectory
std::string getSourceDirectory(std::string fileNameWithPath);

get the current directory

getWorkingDirectory
std::string getWorkingDirectory();

isPartOfTransformation
bool isPartOfTransformation(SgLocatedNode* locatedNodePointer);

make_range
template<typename T> iterator_range<T> make_range(std::pair<T, T> p);

Convenience function for iterating over sub‐ranges.

obtainAndExecuteActions
int obtainAndExecuteActions(SgProject* n);

processPluginCommandLine
void processPluginCommandLine(std::vector<std::string>& input_argv);

setMemoryPoolTraversalFilter
void setMemoryPoolTraversalFilter(MemoryPoolTraversalFilter filter);

shouldSkipMemoryPoolTraversal
bool shouldSkipMemoryPoolTraversal(SgNode* node);

usage
void usage();

utility_stripPathFromFileName
std::string utility_stripPathFromFileName(std::string const& fileNameWithPath);