ROSE
0.9.6a
|
Class holding stat ic data and functions supporting File I/O. More...
#include <AST_FILE_IO.h>
Classes | |
class | MemoryCheckingTraversalForAstFileIO |
Public Types | |
typedef AstAttribute *(AstAttribute::* | CONSTRUCTOR )(void) |
Public Member Functions | |
template<class TYPE > | |
void | registerAttribute () |
Static Public Member Functions | |
static void | startUp (SgProject *root) |
static unsigned long | getSizeOfMemoryPool (const int position) |
static unsigned long | getSizeOfMemoryPoolUpToAst (AstData *astInPool, const int position) |
static unsigned long | getAccumulatedPoolSizeOfNewAst (const int position) |
static unsigned long | getAccumulatedPoolSizeOfAst (AstData *astInPool, const int position) |
static unsigned long | getPoolSizeOfNewAst (const int sgVariant) |
static unsigned long | getTotalNumberOfNodesOfAstInMemoryPool () |
static unsigned long | getTotalNumberOfNodesOfNewAst () |
static bool | areFreepointersContainingGlobalIndices () |
static unsigned long | getGlobalIndexFromSgClassPointer (SgNode *pointer) |
static SgNode * | getSgClassPointerFromGlobalIndex (unsigned long globalIndex) |
static void | compressAstInMemoryPool () |
static void | resetValidAstAfterWriting () |
static void | clearAllMemoryPools () |
static void | deleteStaticData () |
static void | deleteStoredAsts () |
static void | setStaticDataOfAst (AstData *astInPool) |
static int | getNumberOfAsts () |
static void | addNewAst (AstData *newAst) |
static void | extendMemoryPoolsForRebuildingAST () |
static void | writeASTToStream (std::ostream &out) |
static void | writeASTToFile (std::string fileName) |
static std::string | writeASTToString () |
static SgProject * | readASTFromStream (std::istream &in) |
static SgProject * | readASTFromFile (std::string fileName) |
static SgProject * | readASTFromString (const std::string &s) |
static void | printFileMaps () |
static void | printListOfPoolSizes () |
static void | printListOfPoolSizesOfAst (int index) |
static AstData * | getAst (int index) |
static AstData * | getAstWithRoot (SgProject *root) |
template<class TYPE > | |
static void | registerAttribute () |
static const std::map < std::string, CONSTRUCTOR > & | getRegisteredAttributes () |
static void | reset () |
static void | display (const std::string &label) |
Private Types | |
enum | { totalNumberOfIRNodes = 783 } |
Static Private Member Functions | |
static unsigned long | binarySearch (unsigned long globalIndex, int start=0, int end=totalNumberOfIRNodes) |
static unsigned long | linearSearch (unsigned long globalIndex) |
static SgNode * | getPointerFromGlobalIndex (unsigned long globalIndex) |
Static Private Attributes | |
static std::map< std::string, CONSTRUCTOR > | registeredAttributes |
static bool | freepointersOfCurrentAstAreSetToGlobalIndices |
static unsigned long | listOfMemoryPoolSizes [totalNumberOfIRNodes+1] |
static std::vector< AstData * > | vectorOfASTs |
static AstData * | actualRebuildAst |
Class holding stat ic data and functions supporting File I/O.
Test of the AST File I/O mechanism include:
Definition at line 18 of file AST_FILE_IO.h.
typedef AstAttribute*(AstAttribute::* AST_FILE_IO::CONSTRUCTOR)(void) |
Definition at line 39 of file AST_FILE_IO.h.
|
private |
Enumerator | |
---|---|
totalNumberOfIRNodes |
Definition at line 44 of file AST_FILE_IO.h.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
Definition at line 117 of file AST_FILE_IO.h.
References registeredAttributes.
|
static |
|
static |
|
inline |
Definition at line 107 of file AST_FILE_IO.h.
References name, and registeredAttributes.
|
staticprivate |
Definition at line 47 of file AST_FILE_IO.h.
Referenced by getRegisteredAttributes(), and registerAttribute().
|
staticprivate |
Definition at line 48 of file AST_FILE_IO.h.
|
staticprivate |
Definition at line 49 of file AST_FILE_IO.h.
|
staticprivate |
Definition at line 52 of file AST_FILE_IO.h.
|
staticprivate |
Definition at line 53 of file AST_FILE_IO.h.